Skip to content

CVE-2023-5072 - Denial of Service in JSON-Java versions up to and including 20230618. #789

Closed

Description

@elrob

Activity

  1. johnjaylward commented on Oct 13, 2023

    @johnjaylward
    Contributor

    Relates to #758, #759, #771, #772

  2. stleary commented on Oct 13, 2023

    @stleary
    Owner

    @elrob Thanks for letting us know. As @johnjaylward posted, it seems to me that both vulnerabilities have been addressed and it is only necessary to cut a new release. I don't think any additional code changes are needed.

  3. timob9 commented on Oct 13, 2023

    @timob9

    @stleary can you already tell when the new release with the fix will be created?
    Thank you very much!

  4. stleary commented on Oct 13, 2023

    @stleary
    Owner

    Yes, the new release will come out later today.

  5. Bhavitha-Chava commented on Oct 14, 2023

    @Bhavitha-Chava

    Hi @stleary, Could you pls let me know when we can expect the release? Is there a lower version that we can use to avoid hitting this vulnerability

  6. added a commit that references this issue on Oct 14, 2023
  7. stleary commented on Oct 14, 2023

    @stleary
    Owner

    Release 20231013 is available, and is the earliest version that fixes the vulnerability. Have patience, it can take some time before it appears in the Maven repo.

  8. lhazlewood commented on Oct 15, 2023

    @lhazlewood

    @stleary was it strictly necessary to require JDK 8 for this release? 20230618 was still JDK 7 compatible, but 20231013 is not.

  9. stleary commented on Oct 15, 2023

    @stleary
    Owner

    @lhazlewood It was not strictly necessary.
    How important is this to you?
    What version of Java do you use?
    Can you upgrade to Java 8?

  10. stleary commented on Oct 15, 2023

    @stleary
    Owner

    @elrob @TimoBuechert Release 20231013 is now available in the Maven public repository.

  11. lhazlewood commented on Oct 15, 2023

    @lhazlewood

    @stleary I maintain a library that is used with both Java and Android, and we support JDK 7 (at the moment) mostly for Android's purposes (which uses org.json APIs). That requirement for us is going away shortly however, and I did find a workaround using maven profiles to default to 20231013, with an override to 20230618 when compiling on JDK 7 for the time being.

  12. PayBas commented on Oct 16, 2023

    @PayBas

    Haven't tested it thoroughly yet, but our main issue is that 20231013 seems to be included in the vulnerable versions in our Nexus Lifecycle tool:
    image

    Not sure if it's an administration error, or if they feel that 20231013 doesn't actually fix the vulnerability.

    I'll try to contact SonaType to see whats up.

    Update: opened support ticket:

    https://nvd.nist.gov/vuln/detail/CVE-2023-5072 is marked as: "JSON-Java versions up to and including 20230618"
    The developers assert that is has been resolved in version 20231013 #789

    But Nexus IQ/Lifecycle says:
    Recommendation
    There is no non-vulnerable upgrade path for this component/package. We recommend investigating alternative > components or a potential mitigating control.
    Version Affected
    [20070829,20231013]

    Any reason why SonaType would mark this specific version as vulnerable?

    Update 2: apparently there's a dedicated place to submit corrections. So I've done so.
    https://ossindex.sonatype.org/component/pkg:maven/org.json/json@20231013 will hopefully no longer be marked as vulnerable soon.

  13. stleary commented on Oct 16, 2023

    @stleary
    Owner

    @PayBas Thanks for checking. Perhaps they found a different way to recreate the problem.

  14. lhazlewood commented on Oct 16, 2023

    @lhazlewood

    If there is to be another release for this, would it be possible to build with JDK 7? My maven profile workaround didn't work as I expected. If not, I'll understand, but I thought I'd ask in case it wasn't too difficult a request to entertain.

  15. 8 remaining items

  16. stleary commented on Oct 17, 2023

    @stleary
    Owner

    @johnjaylward Your idea sounds like a good approach and probably the least disruptive of the options. What do you think this would look like in the Maven repo?

  17. johnjaylward commented on Oct 17, 2023

    @johnjaylward
    Contributor

    Should add the point releases under the java 8 releases

    in Maven it should show:

    1. 20231013 (java 8+)
    2. 20230618.001 (java6+ with latest security fixes)
    3. 20230618 (java 6+ without security fixes)

    Screenshot_20231017_181330_Firefox

  18. nathan454 commented on Oct 25, 2023

    @nathan454

    @stleary , here is an example of what the PR would look like if we created the java6 branch in this repo

    johnjaylward#2

    @stleary When can we expect backport for 20230618 ? I think @johnjaylward approach sounds ok

  19. stleary commented on Oct 25, 2023

    @stleary
    Owner

    @nathan454 Are you working on the same project as @lhazlewood, or is this a new request?

  20. nathan454 commented on Oct 25, 2023

    @nathan454

    @nathan454 Are you working on the same project as @lhazlewood, or is this a new request?

    new request
    I'm also using this version and I support a library that needs to maintain support for java 7

  21. johnjaylward commented on Oct 25, 2023

    @johnjaylward
    Contributor

    @nathan454 Are you working on the same project as @lhazlewood, or is this a new request?

    new request I'm also using this version and I support a library that needs to maintain support for java 7

    Why is there a requirement for Java 7? Is this for older Android support, or some other reason?

  22. alenamor7 commented on Nov 8, 2023

    @alenamor7

    Hi @johnjaylward,
    please correct me if I'm wrong: CVE-2023-5072 is fixed in the 20230618.001 version, but is not fixed in the newest 20231013 version? We still have a vulnerablity in the project even though the newest 20231013 version is used. Thanks

  23. johnjaylward commented on Nov 8, 2023

    @johnjaylward
    Contributor

    20231013 should be the fixed version. we decided to NOT point release 20230618 at this time.

  24. stleary commented on Nov 8, 2023

    @stleary
    Owner

    @johnjaylward I have been thinking about that. Now that Hacktoberfest is over, is there any reason why we could not do a point release of 20231013 that is compiled with Java7?

  25. johnjaylward commented on Nov 8, 2023

    @johnjaylward
    Contributor

    I don't see an issue with it. Would just need to update the deployment yml to compile to java7

  26. stleary commented on Jan 19, 2025

    @stleary
    Owner

    Closing due to issue resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions