Advisory

PYSEC-2022-25

Also known as: CVE-2021-45958, GHSA-fh56-85cw-5pq6

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2022-01-01 00:15 UTC
Modified
2023-11-08 04:07 UTC

Affected packages and fixes

ujson

PyPI · All systems

Affected

  • introduced 4.0.2, fixed 5.1.0 (ecosystem)

Fixed versions

5.1.0

Fix

  • Fixed version 5.1.0
    pip install --upgrade ujson==5.1.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: PyPA Advisory Database · CC BY 4.0

Sources & licences