CVE-2022-31116
Fixed in a distro release EPSS 3%CVSS 7.5
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 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 |