JSON::XS versions from 3.04 before 4.05 for Perl write one byte past a heap buffer when appending a one-byte chunk in incr_parse. The incremental buff...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:14.04:LTSlibjson-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:16.04:LTSlibjson-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlibjson-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlibjson-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlibjson-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlibjson-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10libjson-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSlibjson-xs-perl |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
JSON::XS versions from 3.04 before 4.05 for Perl write one byte past a heap buffer when appending a one-byte chunk in incr_parse. The incremental buffer grows to one and a half times the length it must hold, with no room reserved for the terminating NUL. For an empty buffer and a one-byte chunk that request is one byte, which a buffer whose front was removed by earlier decodes can already have, so nothing is reallocated and the NUL lands one byte past the allocation. A peer streaming data to an incr_parse consumer, choosing how the input is split into reads, can cause a one-byte heap out-of-bounds write.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report lists.security.metacpan.org
- report metacpan.org