Security mailing lists by PureSourceCode

CVE-2021-45958

MEDIUM 5.5CVSS 3.1

UltraJSON vulnerable to Out-of-bounds Write

UltraJSON (aka ujson) through 5.1.0 has a stack-based buffer overflow in Buffer_AppendIndentUnchecked (called from encode). Exploitation can, for example, use a large amount of indentation.

Published
1 Jan 2022
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-787
Also known as
GHSA-fh56-85cw-5pq6PYSEC-2022-25
Sources
NVDJSONOSV GHSA-fh56-85cw-5pq6JSONOSV PYSEC-2022-25JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:N/I:N/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD ultrajson_project ultrajson
cpe:2.3:a:ultrajson_project:ultrajson:*:*:*:*:*:python:*:*
< 5.2.0 5.2.0
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
= 9.0
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
= 35
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
= 36
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
= 37
OSV PyPI ujson >= 1.34, < 5.2.0 5.2.0
OSV PyPI ujson >= 4.0.2, < 5.1.0 5.1.0

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 1 Jan 2022)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 1 Jan 2022)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 21 Jan 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.