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.

Subscriptions

Vendors Products
Debian Linux Subscribe
Fedoraproject Subscribe
Ultrajson Project Subscribe
Ultrajson Subscribe

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-2929-1 ujson security update
EUVD EUVD EUVD-2022-0348 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.
Github GHSA Github GHSA GHSA-fh56-85cw-5pq6 UltraJSON vulnerable to Out-of-bounds Write
Ubuntu USN Ubuntu USN USN-6629-1 UltraJSON vulnerabilities
Ubuntu USN Ubuntu USN USN-6629-2 UltraJSON vulnerability
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Sun, 13 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.00287}

epss

{'score': 0.00239}


cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2024-08-04T04:54:31.071Z

Reserved: 2021-12-31T00:00:00.000Z

Link: CVE-2021-45958

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2022-01-01T00:15:08.813

Modified: 2024-11-21T06:33:22.023

Link: CVE-2021-45958

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses