Description
Buffer overflow in Dan Pascu python-cjson 1.0.5, when UCS-4 encoding is enabled, allows context-dependent attackers to cause a denial of service (application crash) or possibly have unspecified other impact via vectors involving crafted Unicode input to the cjson.encode function.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 5.0 | python-cjson | 1.0.5-1+lenny1 | DSA-2068-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | python-cjson | < 1.0.5.1 | 1.0.5.1 | GHSA-cqmh-mpx2-g633 |
| PyPI | python-cjson | < 1.1.0 | 1.1.0 | PYSEC-2010-30 |
Advisories 1
- DSA-2068-1 python-cjson - denial of service Debian Security (DSA / DLA) · Mar 9, 2026
References
- ADV-2010-1774 vdb-entry
- DSA-2068 vendor-advisory
- 40335 third-party-advisory
- 40500 third-party-advisory
- https://bugs.launchpad.net/ubuntu/+source/python-cjson/+bug/585274