Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. Newtonsoft.Json
  4. ›
  5. GMS-2022-2616

GMS-2022-2616: Improper Handling of Exceptional Conditions in Newtonsoft.Json

June 22, 2022 (updated December 8, 2022)

Newtonsoft.Json prior to version 13.0.1 is vulnerable to Insecure Defaults due to improper handling of StackOverFlow exception (SOE) whenever nested expressions are being processed. Exploiting this vulnerability results in Denial Of Service (DoS), and it is exploitable when an attacker sends 5 requests that cause SOE in time frame of 5 minutes. This vulnerability affects Internet Information Services (IIS) Applications.

References

  • alephsecurity.com/2018/10/22/StackOverflowException/
  • alephsecurity.com/vulns/aleph-2018004
  • github.com/JamesNK/Newtonsoft.Json/commit/7e77bbe1beccceac4fc7b174b53abfefac278b66
  • github.com/JamesNK/Newtonsoft.Json/issues/2457
  • github.com/JamesNK/Newtonsoft.Json/pull/2462
  • github.com/advisories/GHSA-5crp-9r3c-p9vr
  • security.snyk.io/vuln/SNYK-DOTNET-NEWTONSOFTJSON-2774678

Code Behaviors & Features

Detect and mitigate GMS-2022-2616 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 13.0.1

Fixed versions

  • 13.0.1

Solution

Upgrade to version 13.0.1 or above.

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

nuget/Newtonsoft.Json/GMS-2022-2616.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:05 +0000.