CVE-2021-45958

MEDIUM
Published Jan 1, 20224y ago · Modified Jun 17, 20262w ago
5.5 CVSS 3.1
Medium
Find Similar
Published Jan 1, 2022 4y ago
Last Modified Jun 17, 2026 2w ago

Description

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.

CVSS Details

Base Score
5.5
Exploitability
1.8
Impact
3.6
Vector string
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Attack Vector Local
Attack Complexity Low
Privileges Required None
User Interaction Required
Scope Unchanged
Confidentiality None
Integrity None
Availability High

Threat Intelligence

No active exploitation signals — not in CISA KEV and no EPSS score yet.

Exploit & Patch Status
Public Exploit Known
Patch Available

Weaknesses 1

CWE-787 Out-of-bounds Write Memory Safety

Affected Products 5

VendorProductVersionRange
ultrajson_projectultrajson* <5.2.0
debiandebian_linux9.0any
fedoraprojectfedora35any
fedoraprojectfedora36any
fedoraprojectfedora37any

References 10

  • bugs.chromium.org https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36009
    ExploitIssue TrackingThird Party Advisory
  • github.com https://github.com/google/oss-fuzz-vulns/blob/main/vulns/ujson/OSV-2021-955.yaml
    ExploitThird Party Advisory
  • github.com https://github.com/ultrajson/ultrajson/issues/501
    ExploitIssue TrackingThird Party Advisory
  • github.com https://github.com/ultrajson/ultrajson/issues/502#issuecomment-1031747284
    Issue TrackingPatchThird Party Advisory
  • github.com https://github.com/ultrajson/ultrajson/pull/504
    PatchThird Party Advisory
  • lists.debian.org https://lists.debian.org/debian-lts-announce/2022/02/msg00023.html
    Mailing ListThird Party Advisory
  • lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CN7W3GOXALINKFUUE7ICQIC2EF5HNKUQ/
  • lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2/
  • lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O6JUWQTJLA2CMG4CJN7DCUVSOXLZIIXL/
  • lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ULX35TSWLBBIMEH44MUORPXYYRZKEDC6/

Remediation

  • github.com https://github.com/ultrajson/ultrajson/issues/502#issuecomment-1031747284
    Issue TrackingPatchThird Party Advisory
  • github.com https://github.com/ultrajson/ultrajson/pull/504
    PatchThird Party Advisory