GHSA-fm67-cv37-96ff

Suggest an improvement
Source
https://github.com/advisories/GHSA-fm67-cv37-96ff
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-fm67-cv37-96ff/GHSA-fm67-cv37-96ff.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-fm67-cv37-96ff
Aliases
Published
2022-07-05T21:05:59Z
Modified
2024-02-21T05:24:17.827327Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Potential double free of buffer during string decoding
Details

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: * Open an issue in UltraJSON

Database specific
{
    "nvd_published_at": "2022-07-05T18:15:00Z",
    "cwe_ids": [
        "CWE-415"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2022-07-05T21:05:59Z"
}
References

Affected packages

PyPI / ujson

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.4.0

Affected versions

1.*

1.4
1.6
1.8
1.9
1.15
1.18
1.19
1.21
1.22
1.23
1.30
1.33
1.34
1.35

2.*

2.0.0
2.0.1
2.0.2
2.0.3

3.*

3.0.0
3.1.0
3.2.0

4.*

4.0.0
4.0.1
4.0.2
4.1.0
4.2.0
4.3.0

5.*

5.0.0
5.1.0
5.2.0
5.3.0