CVE-2022-31117
Fixed in a distro release EPSS 2%CVSS 5.9
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.
Products: ultrajson
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| PyPI | ujson | 5.4.0 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Debian 12 | ujson | 5.4.0-1 |
| Debian 13 | ujson | 5.4.0-1 |
| Debian 14 | ujson | 5.4.0-1 |
| Red Hat openstack 16.1 | python-ujson | 0:2.0.3-3.el8ost |
| Red Hat openstack 16.1 | python-ujson-debugsource | 0:2.0.3-3.el8ost |
| Red Hat openstack 16.1 | python3-ujson | 0:2.0.3-3.el8ost |
| Red Hat openstack 16.1 | python3-ujson-debuginfo | 0:2.0.3-3.el8ost |
| Red Hat openstack 16.2 | python-ujson | 0:2.0.3-3.el8ost |
| Red Hat openstack 16.2 | python-ujson-debugsource | 0:2.0.3-3.el8ost |
| Red Hat openstack 16.2 | python3-ujson | 0:2.0.3-3.el8ost |
| Red Hat openstack 16.2 | python3-ujson-debuginfo | 0:2.0.3-3.el8ost |
| SUSE Linux Enterprise Module for Development Tools 15 SP3 | python-ujson | 1.35-150100.3.5.1 |
| SUSE Linux Enterprise Module for Development Tools 15 SP4 | python-ujson | 1.35-150100.3.5.1 |
| SUSE Linux Enterprise Module for Package Hub 15 SP3 | python-ujson | 1.35-150100.3.5.1 |
| SUSE Linux Enterprise Module for Package Hub 15 SP4 | python-ujson | 1.35-150100.3.5.1 |
| Ubuntu 14.04 LTS | pandas | no fix |
| Ubuntu 16.04 LTS | collada2gltf | no fix |
| Ubuntu 16.04 LTS | pandas | no fix |
| Ubuntu 18.04 LTS | collada2gltf | no fix |
| Ubuntu 18.04 LTS | pandas | no fix |
| Ubuntu 20.04 LTS | pandas | no fix |
| Ubuntu 22.04 LTS | collada2gltf | no fix |
| Ubuntu 22.04 LTS | pandas | no fix |
| Ubuntu 24.04 LTS | pandas | no fix |
| Ubuntu 25.10 | pandas | no fix |
| Ubuntu 26.04 LTS | pandas | no fix |
| Ubuntu 26.10 | pandas | no fix |
| Ubuntu Pro 16.04 LTS | ujson | 1.33-1ubuntu0.1~esm2 |
| Ubuntu Pro 18.04 LTS | ujson | 1.35-2ubuntu0.1~esm1 |
| Ubuntu Pro 20.04 LTS | ujson | 1.35-4ubuntu0.1+esm1 |
| Ubuntu Pro 22.04 LTS | ujson | 5.1.0-1ubuntu0.1~esm1 |
| openSUSE Leap 15.3 | python-ujson | 1.35-150100.3.5.1 |
| openSUSE Leap 15.4 | python-ujson | 1.35-150100.3.5.1 |
| openSUSE Tumbleweed | python-ujson | 5.10.0-1.5 |