Vulnerability advisory

CVE-2024-21907

Improper Handling of Exceptional Conditions in Newtonsoft.Json

Published Updated OSV record ↗

Also known as GHSA-5crp-9r3c-p9vr

Severity
  • CVSS 3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/jamesnk/newtonsoft.json ↗
All commits before ae9fe44e1323e91bcbd185ca1a14099fba7c021fae9fe44e1323e91bcbd185ca1a14099fba7c021f
Not specified7e77bbe1beccceac4fc7b174b53abfefac278b66
Also listed as affected (56)
  • 12.0.3
  • 12.0.2
  • 12.0.1
  • 9.0.1
  • 11.0.2
  • 11.0.1
  • 10.0.3
  • 10.0.2
  • 10.0.1
  • 8.0.3
  • 8.0.2
  • 8.0.1
  • 7.0.1
  • 6.0.8
  • 6.0.7
  • 6.0.6
  • 6.0.5
  • 6.0.4
  • 6.0.3
  • 6.0.1
  • 5.0.8
  • 5.0.7
  • 5.0.6
  • 5.0.5
  • 5.0.4
  • 5.0.3
  • 4.5.11
  • 4.5.10
  • 4.5.8
  • 4.5.7
  • 4.5.6
  • 4.5.5
  • 4.5.4
  • 4.5.3
  • 4.0.8
  • 4.0.7
  • 4.0.6
  • 4.0.5
  • 4.0.4
  • 4.0.3
  • 4.0.2
  • 4.0.1
  • 3.5.8
  • 3.5.7
  • 3.5.6
  • 3.5.5
  • 3.5.4
  • 3.5.3
  • 3.5.2
  • 3.5.1
  • 3.0.1
  • 2.0.4
  • 2.0.3
  • 2.0.2
  • 2.0.1
  • 1.3.1

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.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools