Skip to main content
← All vulnerabilities
CVE-2022-31117PYSEC-2026-1056GHSA-FM67-CV37-96FF

Double free of buffer during string decoding in ujson

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.4.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • ultrajson ultrajson

    fixed in 5.4.0

  • ujsonPyPI

    fixed in 5.4.0

References 4

GitHub · ultrajson/ultrajson

lists.fedoraproject.org