{"id":"CVE-2026-59143","state":"PUBLISHED","title":"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","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.\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.","publishedAt":"2026-07-21T19:04:04.057Z","updatedAt":"2026-07-23T12:14:48.600Z","severity":{"score":6.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","source":"CISA-ADP"},"assigner":"CPANSec","products":["EGOR Data::RoaringBitmap::Shared"],"affected":[{"vendor":"EGOR","product":"Data::RoaringBitmap::Shared","packageName":"Data-RoaringBitmap-Shared","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.02","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["roaring.h"],"programRoutines":[{"name":"rb_contains_locked"}],"repo":"https://github.com/vividsnow/perl5-data-roaringbitmap-shared"}],"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"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T20:12:32.778Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/59xxx/CVE-2026-59143.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-59143","state":"PUBLISHED","datePublished":"2026-07-21T19:04:04.057Z","dateUpdated":"2026-07-23T12:14:48.600Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-07-02T16:24:17.912Z"},"containers":{"cna":{"title":"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","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"EGOR","product":"Data::RoaringBitmap::Shared","packageName":"Data-RoaringBitmap-Shared","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.02","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["roaring.h"],"programRoutines":[{"name":"rb_contains_locked"}],"repo":"https://github.com/vividsnow/perl5-data-roaringbitmap-shared"}],"references":[{"url":"https://metacpan.org/release/EGOR/Data-RoaringBitmap-Shared-0.02/diff/EGOR/Data-RoaringBitmap-Shared-0.01#roaring.h"},{"url":"https://metacpan.org/release/EGOR/Data-RoaringBitmap-Shared-0.02/changes","tags":["release-notes"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","description":"CWE-125 Out-of-bounds Read","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-07-21T19:04:04.057Z"},"solutions":[{"lang":"en","value":"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."}],"source":{"discovery":"UNKNOWN"},"workarounds":[{"lang":"en","value":"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."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":6.3,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","integrityImpact":"LOW","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"LOW","privilegesRequired":"LOW","confidentialityImpact":"LOW"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-07-23T12:14:09.488223Z","id":"CVE-2026-59143","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-23T12:14:48.600Z"}}]}}}