Read the docs
TI-2021-20961 Aliases CVE-2021-45958GHSA-fh56-85cw-5pq6

UltraJSON (aka ujson) through 5.1.0 has a stack-based buffer overflow in…

Priority LOW 28CWE-787Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-787 and the CVSS impact.

Summary

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.

Why it matters now

EPSS 0.01667 76th percentileScored 2026-11-08
Public exploit Yes 3 exploit referencesTagged by NVD
Fix Fixed ujson (PyPI): 5.2.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
—ujson (PyPI)1.34 to before 5.2.05.2.0Patch availableGHSA-fh56-85cw-5pq6
  • — Vendor— Affected all versions Fixed in — No fix listed CNA
  • ujson (PyPI) Vendor— Affected 1.34 to before 5.2.0 Fixed in 5.2.0 Patch available GHSA-fh56-85cw-5pq6

CPE configurations NVD · 5

CPEVersionsRoleVendor
cpe:2.3:a:ultrajson_project:ultrajson:*:*:*:*:*:python:*:*before 5.2.0Vulnerableultrajson
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*9.0VulnerableDebian
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*35VulnerableFedoraproject
cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*36VulnerableFedoraproject
cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*37VulnerableFedoraproject
  • cpe:2.3:a:ultrajson_project:ultrajson:*:*:*:*:*:python:*:* Versions before 5.2.0 Vulnerable ·ultrajson
  • cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
  • cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
  • cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Versions 36 Vulnerable ·Fedoraproject
  • cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* Versions 37 Vulnerable ·Fedoraproject

Remediation

  • Fix · GHSA-fh56-85cw-5pq6 ujson (PyPI) Fixed in 5.2.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-45958
  2. 2026-10-03 Alias added: GHSA-fh56-85cw-5pq6

References

Sources