Advisory

GHSA-fh56-85cw-5pq6

Also known as: CVE-2021-45958, PYSEC-2022-25

Summary

UltraJSON vulnerable to Out-of-bounds Write

Details

UltraJSON (aka ujson) 1.34 through 5.1.0 has a stack-based buffer overflow in Buffer_AppendIndentUnchecked (called from encode).

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-01-21 23:27 UTC
Modified
2024-11-18 23:02 UTC

Affected packages and fixes

ujson

PyPI · All systems

Affected

  • introduced 1.34, fixed 5.2.0 (ecosystem)

Fixed versions

5.2.0

Fix

  • Fixed version 5.2.0
    pip install --upgrade ujson==5.2.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences