# CVE-2026-59143: Data::RoaringBitmap::Shared versions before 0.02 for Perl allow an out-of-bounds read via an unvalidated container offset and cardinality in rb_contains_locked

- Severity: Medium 6.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2026-07-21T19:04:04.057Z
- Modified: 2026-10-24T19:10:00.127Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CPANSec

## Description

Data::RoaringBitmap::Shared versions before 0.02 for Perl allow an out-of-bounds read via an unvalidated container offset and cardinality in rb_contains_locked.

The attach-time validator rb_validate_header checks the header scalars and region layout against the file size, but does not validate the bucket contents it then trusts. rb_contains_locked forms a container pointer as pool + container_off * 8192 from a raw file-stored offset and then searches over a file-stored cardinality, neither bounded against the container pool capacity or the fixed 8192-byte slot size.

A local peer that can write the backing file can leave the header valid while poisoning a bucket, so the next membership query dereferences a file-controlled wild pointer and scans a file-controlled count, reading adjacent memory or crashing the process.

(As written by CVE List.)

## Affected

- Data-RoaringBitmap-Shared: before 0.02

## References

- <https://metacpan.org/release/EGOR/Data-RoaringBitmap-Shared-0.02/diff/EGOR/Data-RoaringBitmap-Shared-0.01#roaring.h>
- <https://metacpan.org/release/EGOR/Data-RoaringBitmap-Shared-0.02/changes> (release-notes)

## Sources

- CVE List: [CVE-2026-59143](https://www.cve.org/CVERecord?id=CVE-2026-59143), CVE Terms of Use, modified 2026-07-23
- NVD: [CVE-2026-59143](https://nvd.nist.gov/vuln/detail/CVE-2026-59143), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-59143 · Whole record: https://cve.day/CVE-2026-59143.json · Rebuilt by cve.day 2026-11-25T22:59:29.395Z
