Ubuntu CVE Tracker
UBUNTU-CVE-2021-45958
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:14.04:LTS | pandas | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | ujson | All versions before 1.33-1ubuntu0.1~esm2 (fixed in 1.33-1ubuntu0.1~esm2) |
| Ubuntu:16.04:LTS | pandas | All versions, no fix listed |
| Ubuntu:18.04:LTS | pandas | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | ujson | All versions before 1.35-2ubuntu0.1~esm1 (fixed in 1.35-2ubuntu0.1~esm1) |
| Ubuntu:20.04:LTS | ujson | All versions before 1.35-4ubuntu0.1 (fixed in 1.35-4ubuntu0.1) |
| Ubuntu:20.04:LTS | pandas | All versions, no fix listed |
| Ubuntu:22.04:LTS | pandas | All versions, no fix listed |
| Ubuntu:Pro:22.04:LTS | ujson | All versions before 5.1.0-1ubuntu0.1~esm1 (fixed in 5.1.0-1ubuntu0.1~esm1) |
| Ubuntu:24.04:LTS | pandas | All versions, no fix listed |
| Ubuntu:25.10 | pandas | All versions, no fix listed |
| Ubuntu:26.10 | pandas | All versions, no fix listed |
| Ubuntu:26.04:LTS | pandas | All versions, no fix listed |
References
- https://ubuntu.com/security/CVE-2021-45958
- 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://ubuntu.com/security/notices/USN-6629-1
- https://ubuntu.com/security/notices/USN-6629-2
- https://www.cve.org/CVERecord?id=CVE-2021-45958