ADVISORIES

Vulnerability

CVE-2021-45958

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.

16 advisories report this vulnerability, across 7 ecosystems.

Advisories

  • ALPINE-CVE-2021-45958

    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.

    CVE-2021-45958 Alpine Updated 3 November 2026
  • ALPINE-EDGE-CVE-2021-45958
    CVE-2021-45958 Alpine Updated 18 November 2026
  • DEBIAN-CVE-2021-45958

    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.

    CVE-2021-45958 Debian Updated 23 October 2026
  • DLA-2929-1

    ujson - security update

    CVE-2021-45958 Debian Updated 20 November 2026
  • GHSA-fh56-85cw-5pq6

    UltraJSON vulnerable to Out-of-bounds Write

    Moderate CVE-2021-45958 PyPI Updated 18 November 2024
  • OESA-2026-3606

    python-ujson security update

    High CVE-2021-45958CVE-2022-31116CVE-2022-31117CVE-2026-44660 openEuler Updated 5 September 2026
  • OESA-2026-3607

    python-ujson security update

    High CVE-2021-45958CVE-2026-32875CVE-2026-44660CVE-2026-54911 openEuler Updated 5 September 2026
  • OESA-2026-3608

    python-ujson security update

    High CVE-2021-45958CVE-2026-32875CVE-2026-44660CVE-2026-54911 openEuler Updated 5 September 2026
  • OESA-2026-3720

    python-ujson security update

    High CVE-2021-45958CVE-2026-32875CVE-2026-44660CVE-2026-54911 openEuler Updated 13 September 2026
  • PYSEC-2022-25

    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.

    CVE-2021-45958 PyPI Updated 8 November 2023
  • SUSE-SU-2023:2134-1

    Security update for python-ujson

    CVE-2021-45958 SUSEopenSUSE Updated 2 May 2025
  • SUSEVEX-CVE-2021-45958

    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.

    Moderate CVE-2021-45958 SUSE Updated 17 October 2026
  • UBUNTU-CVE-2021-45958

    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.

    CVE-2021-45958 Ubuntu Updated 17 October 2026
  • USN-6629-1

    ujson vulnerabilities

    CVE-2021-45958CVE-2022-31116CVE-2022-31117 Ubuntu Updated 25 June 2026
  • USN-6629-2

    ujson vulnerability

    CVE-2021-45958 Ubuntu Updated 27 April 2026
  • openSUSE-SU-2025:15107-1

    python311-ujson-5.10.0-1.5 on GA media

    CVE-2021-45958CVE-2022-31116CVE-2022-31117 openSUSE Updated 4 February 2026

References