SecurityContext

CVE-2021-45958: UltraJSON - Buffer Overflow

  • Cve: CVE-2021-45958
  • Name: UltraJSON - Buffer Overflow
  • Description: UltraJSON (aka ujson) through 5.1.0 has a stack-based buffer overflow in Buffer_AppendIndentUnchecked (called from encode). Exploitation can, for example, use a large amount of indentation.
  • Impact: Successful exploitation can lead to denial of service or remote code execution.
  • Remediation: Update to the latest version of UltraJSON (ujson).
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: denial_of_service, remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.5
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
  • Epss score: 0.01667
  • Epss percentile: 0.77361
  • Assignee: [email protected]
  • Published at: 2022-01-01T00:15:08Z
  • Age in days: 1788
  • Modified at: 2026-06-17T04:14:19Z
  • Patch available: yes
  • Public exploits total: 3
  • References total: 10
  • Products total: 3
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-45958
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-787Out-of-bounds Write

Public exploits

Same in every row:

  • Source: nvd
  • Added date: 2022-01-01
Url
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36009
https://github.com/google/oss-fuzz-vulns/blob/main/vulns/ujson/OSV-2021-955.yaml
https://github.com/ultrajson/ultrajson/issues/501

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/ultrajson/ultrajson/issues/502#issuecomment-1031747284Issue Tracking, Patch, Third Party Advisory
https://github.com/ultrajson/ultrajson/pull/504Patch, Third Party Advisory
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36009Exploit, Issue Tracking, Third Party Advisory
https://github.com/google/oss-fuzz-vulns/blob/main/vulns/ujson/OSV-2021-955.yamlExploit, Third Party Advisory
https://github.com/ultrajson/ultrajson/issues/501Exploit, Issue Tracking, Third Party Advisory
https://lists.debian.org/debian-lts-announce/2022/02/msg00023.htmlMailing List, Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CN7W3GOXALINKFUUE7ICQIC2EF5HNKUQ/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O6JUWQTJLA2CMG4CJN7DCUVSOXLZIIXL/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ULX35TSWLBBIMEH44MUORPXYYRZKEDC6/

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
ultrajson_project:ultrajson< 5.2.0/v1/products/ultrajson_project/ultrajson
debian:debian_linux= 9.0/v1/products/debian/debian_linux
fedoraproject:fedora= 37, = 36, = 35/v1/products/fedoraproject/fedora

Projects

RepositoryLink kindsIndexedUrl
ultrajson/ultrajsonfix, issues, package, pullyes/v1/repositories/ultrajson/ultrajson

Index

  • Repositories: 67
  • Repositories high signal: 29
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 3
  • Public exploit first date: 2022-01-01
  • Exposed hosts: 4739835
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports