Back
CVE-2021-45958UltraJSON (aka ujson) through 5.1.0 has a stack-based buffer overflow in Buffer_AppendIndentUnchecked (called from encode). Exploitation…
- 5.5MediumCVSS base score
- 1.7%Exploitation in 30 daysEPSS · top 23% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By mitre
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 1.7% · top 23% of all CVEs (16 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
References
References10
- https://github.com/google/oss-fuzz-vulns/blob/main/vulns/ujson/OSV-2021-955.yaml (opens in a new tab)x_refsource_MISCx_transferred
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36009 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/ultrajson/ultrajson/issues/502#issuecomment-1031747284 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/ultrajson/ultrajson/issues/501 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/ultrajson/ultrajson/pull/504 (opens in a new tab)x_refsource_CONFIRMx_transferred
- [debian-lts-announce] 20220226 [SECURITY] [DLA 2929-1] ujson security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- FEDORA-2022-dbf6e00ba8 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2022-569b6b45e2 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2022-d1452fd421 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2022-33e816bc37 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-0348 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-fh56-85cw-5pq6 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-45958)Record last updated .