{"id":"CVE-2026-59143","published":"2026-07-21T19:04:04Z","modified":"2026-07-23T12:14:48Z","title":"Data::RoaringBitmap::Shared versions before 0.02 for Perl allow an out-of-bounds read via an unvalidated container…","vendor":"EGOR","product":"Data::RoaringBitmap::Shared","tier":"tail","description":{"text":"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.\n\nThe 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.\n\nA 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00295,"percentile":0.1456,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://metacpan.org/release/EGOR/Data-RoaringBitmap-Shared-0.02/diff/EGOR/Data-RoaringBitmap-Shared-0.01#roaring.h","tags":[]},{"url":"https://metacpan.org/release/EGOR/Data-RoaringBitmap-Shared-0.02/changes","tags":["release-notes"]}],"priority":{"score":7.3,"factors":[{"name":"EPSS percentile","points":2.91},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"egor","affectedVersions":[{"vendor":"EGOR","product":"Data::RoaringBitmap::Shared","versions":["< 0.02"]}],"solutions":{"items":["Upgrade to Data::RoaringBitmap::Shared 0.02 or later, which clamps an out-of-range container offset to the empty sentinel and caps the cardinality at the slot capacity."],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["For deployments that cannot upgrade to 0.02, place the backing file in a directory writable only by the owning user, so a local peer cannot tamper with the buckets the query path reads."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-23T12:14:09.488223Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-46364","exploited":false,"provenance":"source"}}