Json.net: Improper Handling of Exceptional Conditions
CVE-2024-21907 is a high-severity improper handling of exceptional conditions vulnerability in Json.net from Newtonsoft, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists version 13.0.1 as the first without the flaw, so updating Json.net to that release or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 32.9% chance of exploitation within 30 days, which is in the top 1.62% of all scored CVEs.
EPSS places it among the vulnerabilities most likely to be exploited soon.
What to do
- Update Json.net to 13.0.1 or a later version.
- Read the advisory on github.com for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Newtonsoft | Json.net | before 13.0.1 | 13.0.1 |
Version data comes from NVD's product matching. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- NoneNo data is disclosed.
- Integrity
- NoneNothing can be modified.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.5 | High | NVD |
| CVSS 3.1 | 7.5 | High | CISA (ADP) |
Official description
Newtonsoft.Json before version 13.0.1 is affected by a mishandling of exceptional conditions vulnerability. Crafted data that is passed to the JsonConvert.DeserializeObject method may trigger a StackOverflow exception resulting in denial of service. Depending on the usage of the library, an unauthenticated and remote attacker may be able to cause the denial of service condition.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Handling of Exceptional Conditions
The product does not handle or incorrectly handles an exceptional condition.
More Improper Handling of Exceptional Conditions vulnerabilities (CWE-755)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: poc, automatable: yes, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- github.com/advisories/GHSA-5crp-9r3c-p9vrThird Party Advisory
Patches and release notes
Third-party and government advisories
- vulncheck.com/advisories/vc-advisory-GHSA-5crp-9r3c-p9vrThird Party Advisory
Technical write-ups (may include proof of concept)
- alephsecurity.com/2018/10/22/StackOverflowException/Exploit
- alephsecurity.com/vulns/aleph-2018004Exploit
- github.com/JamesNK/Newtonsoft.Json/issues/2457Exploit, Issue Tracking, Third Party Advisory
- security.snyk.io/vuln/SNYK-DOTNET-NEWTONSOFTJSON-2774678Exploit, Third Party Advisory
Recent Improper Handling of Exceptional Conditions vulnerabilities
- 7.5 High severity
- 8.8 High severity
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
Spotted an error? Tell us.