CVEfocus › CVE database › CVE-2021-45958

CVE-2021-45958

CVSS 5.5 MediumEPSS 1.7% (higher than 77% of CVEs)Published 2021-12-31Updated 2024-08-04Assigner: mitre

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.

What to do

Fixed builds are available from Alpine, Debian, PyPI, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

14Fixed
3Fix pending
3Under investigation
6Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10pandasFix pendingUBUNTU-CVE-2021-45958
Ubuntu 26.04pandasUnder investigationUBUNTU-CVE-2021-45958
Ubuntu 26.04ujsonNot affected
vulnerable_code_not_present
Ubuntu 25.10pandasWill not fix
the embedded ujson code in pandas, eventhough containing similar content as the upstream ujson code, seems to have diverged from the ujson upstream project…
UBUNTU-CVE-2021-45958
Ubuntu 25.10ujsonNot affected
vulnerable_code_not_present
Ubuntu 24.04pandasUnder investigationUBUNTU-CVE-2021-45958
Ubuntu 22.04pandasUnder investigationUBUNTU-CVE-2021-45958
Ubuntu 22.04ujsonFix pending5.1.0-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-45958
Ubuntu 20.04pandasWill not fix
the embedded ujson code in pandas, eventhough containing similar content as the upstream ujson code, seems to have diverged from the ujson upstream project…
UBUNTU-CVE-2021-45958
Ubuntu 20.04ujsonFixed1.35-4ubuntu0.1UBUNTU-CVE-2021-45958
Ubuntu 18.04pandasWill not fix
the embedded ujson code in pandas, eventhough containing similar content as the upstream ujson code, seems to have diverged from the ujson upstream project…
UBUNTU-CVE-2021-45958
Ubuntu 18.04ujsonFix pending1.35-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-45958
Ubuntu 16.04pandasWill not fix
the embedded ujson code in pandas, eventhough containing similar content as the upstream ujson code, seems to have diverged from the ujson upstream project…
UBUNTU-CVE-2021-45958
Ubuntu 16.04ujsonWill not fix
the embedded ujson code in pandas, eventhough containing similar content as the upstream ujson code, seems to have diverged from the ujson upstream project…
1.33-1ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2021-45958
Ubuntu 14.04pandasWill not fix
the embedded ujson code in pandas, eventhough containing similar content as the upstream ujson code, seems to have diverged from the ujson upstream project…
UBUNTU-CVE-2021-45958
Debian 14ujsonFixed5.2.0-1DEBIAN-CVE-2021-45958
Debian 13ujsonFixed5.2.0-1DEBIAN-CVE-2021-45958
Debian 12ujsonFixed5.2.0-1DEBIAN-CVE-2021-45958
Alpine Linux 3.24py3-ujsonFixed5.2.0-r0ALPINE-CVE-2021-45958
Alpine Linux 3.23py3-ujsonFixed5.2.0-r0ALPINE-CVE-2021-45958
Alpine Linux 3.22py3-ujsonFixed5.2.0-r0ALPINE-CVE-2021-45958
Alpine Linux 3.21py3-ujsonFixed5.2.0-r0ALPINE-CVE-2021-45958
Alpine Linux 3.20py3-ujsonFixed5.2.0-r0ALPINE-CVE-2021-45958
Alpine Linux 3.19py3-ujsonFixed5.2.0-r0ALPINE-CVE-2021-45958
Alpine Linux 3.18py3-ujsonFixed5.2.0-r0ALPINE-CVE-2021-45958
Alpine Linux 3.17py3-ujsonFixed5.2.0-r0ALPINE-CVE-2021-45958
Alpine Linux 3.16py3-ujsonFixed5.2.0-r0ALPINE-CVE-2021-45958
PyPI libraryujsonFixed5.2.0PYSEC-2022-25

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.