Skip to content
OpenAdvisories
High SUSE-SU-2022:2673-1 2 CVEs

Security update for python-ujson

Published Aug 4, 2022 · Updated Feb 4, 2026

Summary

This update for python-ujson fixes the following issues:

- CVE-2022-31116: Fixed improper decoding of escaped surrogate characters (bsc#1201255).
- CVE-2022-31117: Fixed a double free while reallocating a buffer for string decoding (bsc#1201254).

Fixed packages 6

ReleasePackageFixed in
openSUSE · Leap 15.3 python-ujson 1.35-150100.3.5.1
openSUSE · Leap 15.4 python-ujson 1.35-150100.3.5.1
SUSE · SLES 15 SP3 Linux Enterprise Module for Development Tools 15 SP3 python-ujson 1.35-150100.3.5.1
SUSE · SLES 15 SP4 Linux Enterprise Module for Development Tools 15 SP4 python-ujson 1.35-150100.3.5.1
SUSE · SLES 15 SP3 Linux Enterprise Module for Package Hub 15 SP3 python-ujson 1.35-150100.3.5.1
SUSE · SLES 15 SP4 Linux Enterprise Module for Package Hub 15 SP4 python-ujson 1.35-150100.3.5.1

Vulnerabilities 2

  • High 7.5

    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…

  • Medium 5.9

    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 …

References

  • report
    https://bugzilla.suse.com/1201254
  • report
    https://bugzilla.suse.com/1201255
  • web
    https://www.suse.com/security/cve/CVE-2022-31116
  • web
    https://www.suse.com/security/cve/CVE-2022-31117