CVE catalog

CVE-2021-45958

ujson: CVE-2021-45958

[CVE catalog]

Severity
Medium · CVSS 5.5CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.67% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianujsonsid5.13.0-1fixed
Debianujsonforky5.13.0-1fixed
Debianujsontrixie5.10.0-1fixed
Debianujsonbookworm5.7.0-1fixed
Ubuntuujsonpro4.0.2-1vulnerable
Ubuntuujsonpro4.0.2-1build1vulnerable
Ubuntuujsonpro4.2.0-1vulnerable
Ubuntuujsonpro5.1.0-1vulnerable
Ubuntuujsonpro5.1.0-1build1vulnerable
Ubuntuujsonpro5.1.0-1ubuntu0.1~esm1fixed
Ubuntuujson20.041.35-3build1vulnerable
Ubuntuujson20.041.35-3build2vulnerable
Ubuntuujson20.041.35-4vulnerable
Ubuntuujson20.041.35-4build1vulnerable
Ubuntuujson20.041.35-4ubuntu0.1fixed
Opensusepython-ujsontumbleweed5.10.0-1.5fixed
Susepython-ujsonlinux enterprise module for development tools 15 sp41.35-150100.3.8.1fixed
Susepython-ujsonlinux enterprise module for package hub 15 sp41.35-150100.3.8.1fixed
Susepython-ujsonlinux enterprise real time 15 sp31.35-150100.3.8.1fixed
Opensusepython-ujsonleap 15.41.35-150100.3.8.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianujsonsourcesid5.2.0-1not yet assignedNot reported[1005140]
Debianujsonsourceforky5.2.0-1not yet assignedNot reported[1005140]
Debianujsonsourcetrixie5.2.0-1not yet assignedNot reported[1005140]
Debianujsonsourcebookworm5.2.0-1not yet assignedNot reported[1005140]
Ubuntuujsondebpro5.1.0-1ubuntu0.1~esm1Not reportedUSN-6629-1Not reported
Ubuntuujsondeb20.041.35-4ubuntu0.1Not reportedUSN-6629-2Not reported
Opensusepython-ujsonrpmtumbleweed5.10.0-1.5Not reportedOPENSUSE-SU-2025:15107-1Not reported
Susepython-ujsonrpmlinux enterprise module for development tools 15 sp41.35-150100.3.8.1Not reportedSUSE-SU-2023:2134-1Not reported
Susepython-ujsonrpmlinux enterprise module for package hub 15 sp41.35-150100.3.8.1Not reportedSUSE-SU-2023:2134-1Not reported
Susepython-ujsonrpmlinux enterprise real time 15 sp31.35-150100.3.8.1Not reportedSUSE-SU-2023:2134-1Not reported
Opensusepython-ujsonrpmleap 15.41.35-150100.3.8.1Not reportedSUSE-SU-2023:2134-1Not reported

[Debian bug #1005140]

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • Source package: [python-ujson]

    Details (1)
    • 5.13.0-1.3 · x86_64 · tumbleweed

      Unknown · Fixed: 5.10.0-1.5

      Version impact unknown

      dsa · python-ujson · opensuse · tumbleweed

  • Source package: [python-ujson]

    Details (1)
    • 5.13.0-1.3 · x86_64 · tumbleweed

      Unknown · Fixed: 5.10.0-1.5

      Version impact unknown

      dsa · python-ujson · opensuse · tumbleweed

[Debian 12 (Bookworm)]

  • Source package: [ujson]

    Details (2)
    • 5.7.0-1 · amd64 · bookworm

      Fixed · Fixed: 5.2.0-1

      dsa · ujson · debian · bookworm; dsa · ujson · debian · 12

    • 5.7.0-1 · arm64 · bookworm

      Fixed · Fixed: 5.2.0-1

      dsa · ujson · debian · bookworm; dsa · ujson · debian · 12

[Debian 13 (Trixie)]

  • Source package: [ujson]

    Details (2)
    • 5.10.0-1+b4 · amd64 · trixie

      Fixed · Fixed: 5.2.0-1

      dsa · ujson · debian · 13

    • 5.10.0-1+b4 · arm64 · trixie

      Fixed · Fixed: 5.2.0-1

      dsa · ujson · debian · 13

Observed:

References