ubuntu-cve-2021-45958
Vulnerability from osv_ubuntu
Published
2022-01-01 00:15
Modified
2026-05-20 14:53
Summary
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.
Severity
5.5 (Medium)
N/A (UNKNOWN)
References
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-pandas",
"binary_version": "0.13.1-2ubuntu2"
},
{
"binary_name": "python-pandas-lib",
"binary_version": "0.13.1-2ubuntu2"
},
{
"binary_name": "python3-pandas",
"binary_version": "0.13.1-2ubuntu2"
},
{
"binary_name": "python3-pandas-lib",
"binary_version": "0.13.1-2ubuntu2"
}
]
},
"package": {
"ecosystem": "Ubuntu:14.04:LTS",
"name": "pandas",
"purl": "pkg:deb/ubuntu/pandas@0.13.1-2ubuntu2?arch=source\u0026distro=trusty"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.12.0-2ubuntu1",
"0.13.1-2ubuntu1",
"0.13.1-2ubuntu2"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "python-ujson",
"binary_version": "1.33-1ubuntu0.1~esm2"
},
{
"binary_name": "python3-ujson",
"binary_version": "1.33-1ubuntu0.1~esm2"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "ujson",
"purl": "pkg:deb/ubuntu/ujson@1.33-1ubuntu0.1~esm2?arch=source\u0026distro=esm-apps/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.33-1ubuntu0.1~esm2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.33-1",
"1.33-1build1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-pandas",
"binary_version": "0.17.1-3ubuntu2"
},
{
"binary_name": "python-pandas-lib",
"binary_version": "0.17.1-3ubuntu2"
},
{
"binary_name": "python3-pandas",
"binary_version": "0.17.1-3ubuntu2"
},
{
"binary_name": "python3-pandas-lib",
"binary_version": "0.17.1-3ubuntu2"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "pandas",
"purl": "pkg:deb/ubuntu/pandas@0.17.1-3ubuntu2?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.15.0-2",
"0.15.0-2ubuntu1",
"0.15.0-2ubuntu2",
"0.17.1-3ubuntu2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-pandas",
"binary_version": "0.22.0-4ubuntu1"
},
{
"binary_name": "python-pandas-lib",
"binary_version": "0.22.0-4ubuntu1"
},
{
"binary_name": "python3-pandas",
"binary_version": "0.22.0-4ubuntu1"
},
{
"binary_name": "python3-pandas-lib",
"binary_version": "0.22.0-4ubuntu1"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "pandas",
"purl": "pkg:deb/ubuntu/pandas@0.22.0-4ubuntu1?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.19.2-5.1ubuntu4",
"0.22.0-2ubuntu1",
"0.22.0-3",
"0.22.0-4",
"0.22.0-4ubuntu1"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "python-ujson",
"binary_version": "1.35-2ubuntu0.1~esm1"
},
{
"binary_name": "python3-ujson",
"binary_version": "1.35-2ubuntu0.1~esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "ujson",
"purl": "pkg:deb/ubuntu/ujson@1.35-2ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.35-2ubuntu0.1~esm1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.35-1build2",
"1.35-2"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "python3-ujson",
"binary_version": "1.35-4ubuntu0.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "ujson",
"purl": "pkg:deb/ubuntu/ujson@1.35-4ubuntu0.1?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.35-4ubuntu0.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.35-3build1",
"1.35-3build2",
"1.35-4",
"1.35-4build1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pandas",
"binary_version": "0.25.3+dfsg-7"
},
{
"binary_name": "python3-pandas-lib",
"binary_version": "0.25.3+dfsg-7"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "pandas",
"purl": "pkg:deb/ubuntu/pandas@0.25.3+dfsg-7?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.23.3+dfsg-4ubuntu1",
"0.23.3+dfsg-4ubuntu5",
"0.23.3+dfsg-4ubuntu6",
"0.25.3+dfsg-4",
"0.25.3+dfsg-4build1",
"0.25.3+dfsg-7"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pandas",
"binary_version": "1.3.5+dfsg-3"
},
{
"binary_name": "python3-pandas-lib",
"binary_version": "1.3.5+dfsg-3"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "pandas",
"purl": "pkg:deb/ubuntu/pandas@1.3.5+dfsg-3?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.1.5+dfsg-2",
"1.1.5+dfsg-2ubuntu1",
"1.3.5+dfsg-2",
"1.3.5+dfsg-2ubuntu1",
"1.3.5+dfsg-3"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "python3-ujson",
"binary_version": "5.1.0-1ubuntu0.1~esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:22.04:LTS",
"name": "ujson",
"purl": "pkg:deb/ubuntu/ujson@5.1.0-1ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "5.1.0-1ubuntu0.1~esm1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.0.2-1",
"4.0.2-1build1",
"4.2.0-1",
"5.1.0-1",
"5.1.0-1build1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pandas",
"binary_version": "2.1.4+dfsg-7"
},
{
"binary_name": "python3-pandas-lib",
"binary_version": "2.1.4+dfsg-7"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "pandas",
"purl": "pkg:deb/ubuntu/pandas@2.1.4+dfsg-7?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.5.3+dfsg-6",
"1.5.3+dfsg-6ubuntu1",
"1.5.3+dfsg-7ubuntu1",
"1.5.3+dfsg-10",
"2.1.4+dfsg-4ubuntu2",
"2.1.4+dfsg-7"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pandas",
"binary_version": "2.2.3+dfsg-9"
},
{
"binary_name": "python3-pandas-lib",
"binary_version": "2.2.3+dfsg-9"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "pandas",
"purl": "pkg:deb/ubuntu/pandas@2.2.3+dfsg-9?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.2.3+dfsg-8build1",
"2.2.3+dfsg-9"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pandas",
"binary_version": "2.3.3+dfsg-3ubuntu1"
},
{
"binary_name": "python3-pandas-lib",
"binary_version": "2.3.3+dfsg-3ubuntu1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "pandas",
"purl": "pkg:deb/ubuntu/pandas@2.3.3+dfsg-3ubuntu1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.2.3+dfsg-9",
"2.3.3+dfsg-1ubuntu1",
"2.3.3+dfsg-3",
"2.3.3+dfsg-3ubuntu1"
]
}
],
"aliases": [],
"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.",
"id": "UBUNTU-CVE-2021-45958",
"modified": "2026-05-20T14:53:39Z",
"published": "2022-01-01T00:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2021-45958"
},
{
"type": "REPORT",
"url": "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36009"
},
{
"type": "REPORT",
"url": "https://github.com/google/oss-fuzz-vulns/blob/main/vulns/ujson/OSV-2021-955.yaml"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-6629-1"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-6629-2"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2021-45958"
}
],
"related": [
"USN-6629-1",
"USN-6629-2"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2021-45958"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…