OESA-2026-3608

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2026-3608
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2026-3608.json
JSON Data
https://api.osv.dev/v1/vulns/OESA-2026-3608
Upstream
Published
2026-09-05T15:03:07Z
Modified
2026-09-05T15:16:22.436261367Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
python-ujson security update
Details

UltraJSON

Security Fix(es):

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.(CVE-2021-45958)

UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Versions 5.10 through 5.11.0 are vulnerable to buffer overflow or infinite loop through large indent handling. ujson.dumps() crashes the Python interpreter (segmentation fault) when the product of the indent parameter and the nested depth of the input exceeds INT32_MAX. It can also get stuck in an infinite loop if the indent is a large negative number. Both are caused by an integer overflow/underflow whilst calculating how much memory to reserve for indentation. And both can be used to achieve denial of service. To be vulnerable, a service must call ujson.dump()/ujson.dumps()/ujson.encode() whilst giving untrusted users control over the indent parameter and not restrict that indentation to reasonably small non-negative values. A service may also be vulnerable to the infinite loop if it uses a fixed negative indent. An underflow always occurs for any negative indent when the input data is at least one level nested but, for small negative indents, the underflow is usually accidentally rectified by another overflow. This issue has been fixed in version 5.12.0.(CVE-2026-32875)

UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Prior to 5.12.1, when ujson.dump() writes to a file-like object and the write operation raises an exception, the serialized JSON string object is not decremented, leaking memory. Each failed write operation leaks the full size of the serialized payload. This vulnerability is fixed in 5.12.1.(CVE-2026-44660)

UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Prior to 5.13.0, ujson.dumps() (or ujson.dump() or ujson.encode()) have a reject_bytes=False option. When set, they may accept malformed or truncated UTF-8 byte sequences, silently rewriting them into different Unicode characters instead of rejecting them. This leads to input validation bypass and data integrity issues. This vulnerability is fixed in 5.13.0.(CVE-2026-54911)

Database specific
{
    "severity": "High"
}
References

Affected packages

openEuler:24.03-LTS-SP3 / python-ujson

Package

Name
python-ujson
Purl
pkg:rpm/openEuler/python-ujson&distro=openEuler-24.03-LTS-SP3

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.1.0-7.oe2403sp3

Ecosystem specific

{
    "src": [
        "python-ujson-5.1.0-7.oe2403sp3.src.rpm"
    ],
    "x86_64": [
        "python-ujson-debuginfo-5.1.0-7.oe2403sp3.x86_64.rpm",
        "python-ujson-debugsource-5.1.0-7.oe2403sp3.x86_64.rpm",
        "python3-ujson-5.1.0-7.oe2403sp3.x86_64.rpm"
    ],
    "aarch64": [
        "python-ujson-debuginfo-5.1.0-7.oe2403sp3.aarch64.rpm",
        "python-ujson-debugsource-5.1.0-7.oe2403sp3.aarch64.rpm",
        "python3-ujson-5.1.0-7.oe2403sp3.aarch64.rpm"
    ],
    "noarch": [
        "python-ujson-help-5.1.0-7.oe2403sp3.noarch.rpm"
    ]
}

Database specific

source
"https://repo.openeuler.org/security/data/osv/OESA-2026-3608.json"