Patchwire CVEs, their patch status, and feeds to follow them

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.

Published 2022-07-05 · CVE record · OSV

Products: ultrajson

Fixed upstream

EcosystemPackageFixed in
PyPIujson5.4.0

Distro releases

ReleasePackageFixed in
Debian 12ujson5.4.0-1
Debian 13ujson5.4.0-1
Debian 14ujson5.4.0-1
Red Hat openstack 16.1python-ujson0:2.0.3-3.el8ost
Red Hat openstack 16.1python-ujson-debugsource0:2.0.3-3.el8ost
Red Hat openstack 16.1python3-ujson0:2.0.3-3.el8ost
Red Hat openstack 16.1python3-ujson-debuginfo0:2.0.3-3.el8ost
Red Hat openstack 16.2python-ujson0:2.0.3-3.el8ost
Red Hat openstack 16.2python-ujson-debugsource0:2.0.3-3.el8ost
Red Hat openstack 16.2python3-ujson0:2.0.3-3.el8ost
Red Hat openstack 16.2python3-ujson-debuginfo0:2.0.3-3.el8ost
SUSE Linux Enterprise Module for Development Tools 15 SP3python-ujson1.35-150100.3.5.1
SUSE Linux Enterprise Module for Development Tools 15 SP4python-ujson1.35-150100.3.5.1
SUSE Linux Enterprise Module for Package Hub 15 SP3python-ujson1.35-150100.3.5.1
SUSE Linux Enterprise Module for Package Hub 15 SP4python-ujson1.35-150100.3.5.1
Ubuntu 14.04 LTSpandasno fix
Ubuntu 16.04 LTScollada2gltfno fix
Ubuntu 16.04 LTSpandasno fix
Ubuntu 18.04 LTScollada2gltfno fix
Ubuntu 18.04 LTSpandasno fix
Ubuntu 20.04 LTSpandasno fix
Ubuntu 22.04 LTScollada2gltfno fix
Ubuntu 22.04 LTSpandasno fix
Ubuntu 24.04 LTSpandasno fix
Ubuntu 25.10pandasno fix
Ubuntu 26.04 LTSpandasno fix
Ubuntu 26.10pandasno fix
Ubuntu Pro 16.04 LTSujson1.33-1ubuntu0.1~esm2
Ubuntu Pro 18.04 LTSujson1.35-2ubuntu0.1~esm1
Ubuntu Pro 20.04 LTSujson1.35-4ubuntu0.1+esm1
Ubuntu Pro 22.04 LTSujson5.1.0-1ubuntu0.1~esm1
openSUSE Leap 15.3python-ujson1.35-150100.3.5.1
openSUSE Leap 15.4python-ujson1.35-150100.3.5.1
openSUSE Tumbleweedpython-ujson5.10.0-1.5