Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1mbTY3LWN2MzctOTZmZs4AAtG1

Potential double free of buffer during string decoding

Impact

What kind of vulnerability is it? Who is impacted?

When an error occurs while reallocating the buffer for string decoding, the buffer gets freed twice.

Due to how UltraJSON uses the internal decoder, this double free is impossible to trigger from Python.

Patches

Has the problem been patched? What versions should users upgrade to?

Users should upgrade to UltraJSON 5.4.0.

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

There is no workaround.

For more information

If you have any questions or comments about this advisory:

Permalink: https://github.com/advisories/GHSA-fm67-cv37-96ff
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1mbTY3LWN2MzctOTZmZs4AAtG1
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: almost 2 years ago
Updated: over 1 year ago


CVSS Score: 5.9
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Identifiers: GHSA-fm67-cv37-96ff, CVE-2022-31117
References: Repository: https://github.com/ultrajson/ultrajson
Blast Radius: 25.1

Affected Packages

pypi:ujson
Dependent packages: 520
Dependent repositories: 18,137
Downloads: 11,230,061 last month
Affected Version Ranges: < 5.4.0
Fixed in: 5.4.0
All affected versions: 2.0.0, 2.0.1, 2.0.2, 2.0.3, 3.0.0, 3.1.0, 3.2.0, 4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.2.0, 4.3.0, 5.0.0, 5.1.0, 5.2.0, 5.3.0
All unaffected versions: 5.4.0, 5.5.0, 5.6.0, 5.7.0, 5.8.0, 5.9.0