# OSV-2021-1809 - Heap-buffer-overflow in ujson.cpython-38-x86_64-linux-gnu.so

Source: https://junglewise.ai/threats/osv-2021-1809-heap-buffer-overflow-in-ujson-cpython-38-x86-64-linux-gnu-0780b9df  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-02-25  
License: CC BY 4.0 with a link back

Severity: info · Published 2022-02-25

Heap-buffer-overflow in ujson.cpython-38-x86_64-linux-gnu.so

Technologies: [ujson (PyPI)](https://junglewise.ai/threats/technologies/ujson). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Informational severity, published 25 February 2022.

**Which products and versions are affected?** ujson (PyPI) GIT:introduced=b9275f7b001da11495040f1332f6c3adf3daa57b,fixed=f6860f1f3d8d4e92b9be0e5815355a8976c6e75b,fixed=550ba4d77294e61597a5259d00769c61281e0042.

**Is there a fix for This vulnerability?** Yes. ujson (PyPI): upgrade to 550ba4d77294e61597a5259d00769c61281e0042 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run ujson (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- ujson (PyPI): upgrade to 550ba4d77294e61597a5259d00769c61281e0042 or later

  ```sh
  pip install "ujson>=550ba4d77294e61597a5259d00769c61281e0042"
  ```


## Affected products

- ujson (PyPI) GIT:introduced=b9275f7b001da11495040f1332f6c3adf3daa57b,fixed=f6860f1f3d8d4e92b9be0e5815355a8976c6e75b,fixed=550ba4d77294e61597a5259d00769c61281e0042

## Related threats

- [PYSEC-2026-1057 - Incorrect handling of invalid surrogate pair characters](https://junglewise.ai/threats/cve-2022-31116-incorrect-handling-of-invalid-surrogate-pair-characters)
- [PYSEC-2026-1056 - Potential double free of buffer during string decoding](https://junglewise.ai/threats/cve-2022-31117-potential-double-free-of-buffer-during-string-decoding)
- [UltraJSON improper input validation in ujson.dumps UTF-8 handling](https://junglewise.ai/threats/cve-2026-54911-ultrajson-improper-input-validation-in-ujson-dumps-utf-8-handling)
- [UltraJSON memory leak in ujson.dump on write failure](https://junglewise.ai/threats/cve-2026-44660-ultrajson-memory-leak-in-ujson-dump-on-write-failure)
- [UltraJSON integer overflow in indent handling](https://junglewise.ai/threats/cve-2026-32875-ultrajson-integer-overflow-in-indent-handling)
