7.5
CWE
674
Advisory Published
Advisory Published
Updated

CVE-2023-1370: Stack exhaustion in json-smart leads to denial of service when parsing malformed JSON

First published: Mon Mar 13 2023(Updated: )

[Json-smart](<a href="https://netplex.github.io/json-smart/">https://netplex.github.io/json-smart/</a>) is a performance focused, JSON processor lib. When reaching a ‘[‘ or ‘{‘ character in the JSON input, the code parses an array or an object respectively. It was discovered that the code does not have any limit to the nesting of such arrays or objects. Since the parsing of nested arrays and objects is done recursively, nesting too many of them can cause a stack exhaustion (stack overflow) and crash the software. <a href="https://github.com/advisories/GHSA-493p-pfq6-5258">https://github.com/advisories/GHSA-493p-pfq6-5258</a> <a href="https://research.jfrog.com/vulnerabilities/stack-exhaustion-in-json-smart-leads-to-denial-of-service-when-parsing-malformed-json-xray-427633/">https://research.jfrog.com/vulnerabilities/stack-exhaustion-in-json-smart-leads-to-denial-of-service-when-parsing-malformed-json-xray-427633/</a> <a href="https://github.com/netplex/json-smart-v2/commit/5b3205d051952d3100aa0db1535f6ba6226bd87a">https://github.com/netplex/json-smart-v2/commit/5b3205d051952d3100aa0db1535f6ba6226bd87a</a> <a href="https://github.com/netplex/json-smart-v2/commit/e2791ae506a57491bc856b439d706c81e45adcf8">https://github.com/netplex/json-smart-v2/commit/e2791ae506a57491bc856b439d706c81e45adcf8</a>

Credit: reefs@jfrog.com reefs@jfrog.com reefs@jfrog.com

Affected SoftwareAffected VersionHow to fix
redhat/jenkins<2-plugins-0:4.11.1686831822-1.el8
2-plugins-0:4.11.1686831822-1.el8
redhat/jenkins<2-plugins-0:4.12.1686649756-1.el8
2-plugins-0:4.12.1686649756-1.el8
redhat/jenkins<0:2.401.1.1686680404-3.el8
0:2.401.1.1686680404-3.el8
redhat/jenkins<2-plugins-0:4.10.1684982411-1.el8
2-plugins-0:4.10.1684982411-1.el8
Json-smart Project Json-smart=2.4.9
redhat/json-smart<2.4.9
2.4.9
redhat/json-smart<2.4.10
2.4.10
Json-smart Project Json-smart<2.4.9
maven/net.minidev:json-smart<2.4.9
2.4.9
IBM Cognos Analytics<=11.2.x
IBM Cognos Analytics<=11.1.x

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • What is CVE-2023-1370?

    CVE-2023-1370 is a vulnerability in net.minidev:json-smart that allows for a denial of service attack by exploiting a StackOverflowError when parsing a deeply nested JSON array or object.

  • How does CVE-2023-1370 impact affected systems?

    CVE-2023-1370 can lead to a denial of service condition in systems running vulnerable versions of net.minidev:json-smart when parsing deeply nested JSON arrays or objects.

  • What is the severity of CVE-2023-1370?

    CVE-2023-1370 has a severity score of 7 out of 10, indicating a high severity vulnerability.

  • What is the affected software?

    The affected software includes net.minidev:json-smart versions up to 2.4.9 and certain versions of json-smart and jenkins.

  • How do I fix CVE-2023-1370?

    To fix CVE-2023-1370, update to version 2.4.9 of net.minidev:json-smart, version 2.4.10 of json-smart, or the specified patched versions of jenkins.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203