p PatchFirst

PatchFirst · Aktuelle Sicherheitslücken

Sicherheitslücken in ujson

In den letzten 30 Tagen veröffentlichte Sicherheitslücken für ujson: 0. Davon im KEV-Katalog: 0.

Sicherheitslücken filtern
Filter zurücksetzen

Sicherheitslücken: 9

  1. CVE-2026-54911

    Mittel · CVSS 6.5EPSS 0,37%Korrektur verfügbar

    UltraJSON: Malformed/Truncated UTF-8 Accepted and Silently Rewritten in ujson.dumps()

    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.

    • Auf 5.13.0 aktualisieren
    Veröffentlicht Aktualisiert
  2. CVE-2026-44660

    Hoch · CVSS 8.7EPSS 0,42%Korrektur verfügbar

    UltraJSON: Memory Leak in ujson.dump() on Write Failure

    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.

    • Auf 5.12.1 aktualisieren
    Veröffentlicht Aktualisiert
  3. CVE-2026-32875

    Hoch · CVSS 7.5EPSS 0,48%Korrektur verfügbar

    UltraJSON has an integer overflow handling large indent leads to buffer overflow or infinite loop

    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

    • Auf 5.12.0 aktualisieren
    Veröffentlicht Aktualisiert
  4. CVE-2026-32874

    Hoch · CVSS 7.5EPSS 0,5%Korrektur verfügbar

    UltraJSON has a Memory Leak parsing large integers allows DoS

    UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Versions 5.4.0 through 5.11.0 contain an accumulating memory leak in JSON parsing large (outside of the range [-2^63, 2^64 - 1]) integers. The leaked memory is a copy of the string form of the integer plus an additional NULL byte. The leak occurs irrespective of whether the integer parses successfully or is rejected due to having more than sys.get_int_max_str_digits() digits, meaning that any sized leak per malicious JSON can be achieved provided that there is no limit on the overall size of the payload. Any service that calls ujson.load()/ujson.load

    • Auf 5.12.0 aktualisieren
    Veröffentlicht Aktualisiert
  5. CVE-2022-31116

    Hoch · CVSS 7.5EPSS 2,54%Korrektur verfügbar

    Incorrect handling of invalid surrogate pair characters in ujson

    UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Affected versions were found to improperly decode certain characters. JSON strings that contain escaped surrogate characters not part of a proper surrogate pair were decoded incorrectly. Besides corrupting strings, this allowed for potential key confusion and value overwriting in dictionaries. All users parsing JSON from untrusted sources are vulnerable. From version 5.4.0, UltraJSON decodes lone surrogates in the same way as the standard library's `json` module does, preserving them in the parsed output. Users are advised to upgrade. There are no kn

    • Auf 5.4.0 aktualisieren
    Veröffentlicht Aktualisiert
  6. CVE-2022-31117

    Mittel · CVSS 5.9EPSS 1,88%Korrektur verfügbar

    Double free of buffer during string decoding in ujson

    UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. In versions prior to 5.4.0 an error occurring while reallocating a buffer for string decoding can cause the buffer to get freed twice. Due to how UltraJSON uses the internal decoder, this double free is impossible to trigger from Python. This issue has been resolved in version 5.4.0 and all users should upgrade to UltraJSON 5.4.0. There are no known workarounds for this issue.

    • Auf 5.4.0 aktualisieren
    Veröffentlicht Aktualisiert
  7. OSV-2021-1809

    Nicht bewertetKeine Korrektur veröffentlicht

    Heap-buffer-overflow in ujson.cpython-38-x86_64-linux-gnu.so

    OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=44973 ``` Crash type: Heap-buffer-overflow WRITE 1 Crash state: ujson.cpython-38-x86_64-linux-gnu.so ujson.cpython-38-x86_64-linux-gnu.so ujson.cpython-38-x86_64-linux-gnu.so ```

    Veröffentlicht Aktualisiert
  8. OSV-2021-955

    Nicht bewertetKeine Korrektur veröffentlicht

    Stack-buffer-overflow in Buffer_AppendIndentUnchecked

    OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36009 ``` Crash type: Stack-buffer-overflow WRITE 1 Crash state: Buffer_AppendIndentUnchecked encode encode ```

    Veröffentlicht Aktualisiert

Prüfen Sie Ihren Server

Gleichen Sie Ihren installierten Stack und seine Versionen mit den aktuellen Sicherheitsmeldungen ab.

Prüfen Sie Ihren Server →