CVE & CISA-KEV Catalog

CVE-2022-31116

HIGHEPSS 82th pctl
7.5
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
ujsonDebian
Fixed in:5.4.0-1CVE-2022-31116
Fixed in:5.4.0-1CVE-2022-31116
Fixed in:5.4.0-1CVE-2022-31116
python-ujsonUbuntu
Fixed in:1.33-1ubuntu0.1~esm2USN-6629-1
Fixed in:1.35-2ubuntu0.1~esm1USN-6629-1
python3-ujsonUbuntu
Fixed in:1.33-1ubuntu0.1~esm2USN-6629-1
Fixed in:1.35-2ubuntu0.1~esm1USN-6629-1
Fixed in:1.35-4ubuntu0.1+esm1USN-6629-3
Fixed in:5.1.0-1ubuntu0.1~esm1USN-6629-1
ujsonUbuntu
Fixed in:1.33-1ubuntu0.1~esm2USN-6629-1
Fixed in:1.35-2ubuntu0.1~esm1USN-6629-1
Fixed in:1.35-4ubuntu0.1+esm1USN-6629-3
Fixed in:5.1.0-1ubuntu0.1~esm1USN-6629-1

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

2.30%probability of exploitation in 30 days
82ndpercentile

Elevated risk: more likely to be exploited than 82% of all known CVEs.

References

Related Vulnerabilities

Other CWE-670 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-9425High7.517%-Fix
CVE-2019-9946High7.53.1%-Fix
CVE-2024-32896High7.83.0%KEV-
CVE-2019-17192Critical9.82.7%--
CVE-2026-38361High7.52.6%--
CVE-2020-1914Critical9.82.5%-Fix

Common questions

How do I fix CVE-2022-31116?

Published advisories record a fix for 4 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2022-31116 being actively exploited?

Not that we know of. CVE-2022-31116 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 2.3% is the estimated probability that it will be exploited in the next 30 days. That is higher than 82% of all scored CVEs.

How severe is CVE-2022-31116?

CVE-2022-31116 has a CVSS v3 base score of 7.5, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2022-31116 affect?

Published advisories record a fix for ujson (Debian), python-ujson (Ubuntu), python3-ujson (Ubuntu), ujson (Ubuntu). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2022-31116
CVE-2022-31116 severity badge

Markdown

[![CVE-2022-31116](https://tridentstack.com/cve/badge/CVE-2022-31116.svg)](https://tridentstack.com/cve/CVE-2022-31116)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-31116"><img src="https://tridentstack.com/cve/badge/CVE-2022-31116.svg" alt="CVE-2022-31116"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.