{"id":"UBUNTU-CVE-2024-21907","details":"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.","modified":"2026-04-22T14:39:31.785076Z","published":"2024-01-03T16:15:00Z","upstream":["CVE-2024-21907"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-21907"},{"type":"REPORT","url":"https://github.com/JamesNK/Newtonsoft.Json/issues/2457"},{"type":"REPORT","url":"https://github.com/JamesNK/Newtonsoft.Json/pull/2462"},{"type":"REPORT","url":"https://github.com/JamesNK/Newtonsoft.Json/commit/7e77bbe1beccceac4fc7b174b53abfefac278b66"},{"type":"REPORT","url":"https://alephsecurity.com/2018/10/22/StackOverflowException/"},{"type":"REPORT","url":"https://alephsecurity.com/vulns/aleph-2018004"},{"type":"REPORT","url":"https://security.snyk.io/vuln/SNYK-DOTNET-NEWTONSOFTJSON-2774678"},{"type":"REPORT","url":"https://github.com/advisories/GHSA-5crp-9r3c-p9vr"},{"type":"REPORT","url":"https://vulncheck.com/advisories/vc-advisory-GHSA-5crp-9r3c-p9vr"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-21907"}],"affected":[{"package":{"name":"newtonsoft-json","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/newtonsoft-json@6.0.8+dfsg-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.0r6+dfsg-1","5.0r6+dfsg-1ubuntu1","6.0.8+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnewtonsoft-json5.0-cil","binary_version":"6.0.8+dfsg-1"},{"binary_name":"monodoc-newtonsoft-json-manual","binary_version":"6.0.8+dfsg-1"},{"binary_name":"nupkg-newtonsoft.json.6.0.8","binary_version":"6.0.8+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21907.json"}},{"package":{"name":"newtonsoft-json","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/newtonsoft-json@6.0.8+dfsg-1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.0.8+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnewtonsoft-json5.0-cil","binary_version":"6.0.8+dfsg-1"},{"binary_name":"monodoc-newtonsoft-json-manual","binary_version":"6.0.8+dfsg-1"},{"binary_name":"nupkg-newtonsoft.json.6.0.8","binary_version":"6.0.8+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21907.json"}},{"package":{"name":"newtonsoft-json","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/newtonsoft-json@6.0.8+dfsg-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.0.8+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnewtonsoft-json5.0-cil","binary_version":"6.0.8+dfsg-1"},{"binary_name":"monodoc-newtonsoft-json-manual","binary_version":"6.0.8+dfsg-1"},{"binary_name":"nupkg-newtonsoft.json.6.0.8","binary_version":"6.0.8+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21907.json"}},{"package":{"name":"newtonsoft-json","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/newtonsoft-json@6.0.8+dfsg-1.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.0.8+dfsg-1.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnewtonsoft-json5.0-cil","binary_version":"6.0.8+dfsg-1.1"},{"binary_name":"monodoc-newtonsoft-json-manual","binary_version":"6.0.8+dfsg-1.1"},{"binary_name":"nupkg-newtonsoft.json.6.0.8","binary_version":"6.0.8+dfsg-1.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21907.json"}},{"package":{"name":"newtonsoft-json","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/newtonsoft-json@6.0.8+dfsg-1.2?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.0.8+dfsg-1.1","6.0.8+dfsg-1.2"],"ecosystem_specific":{"binaries":[{"binary_name":"libnewtonsoft-json5.0-cil","binary_version":"6.0.8+dfsg-1.2"},{"binary_name":"monodoc-newtonsoft-json-manual","binary_version":"6.0.8+dfsg-1.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21907.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}