Buffer overflow in Egor Data::ringbuffer::shared
CVE-2026-59144
Data::RingBuffer::Shared versions before 0.04 for Perl allow a stack buffer overflow via an unvalidated elem_size in ring_read_seq. The attach-time validator ring_validate_header checks the capacity-overflow and total_size consistency of the header but never caps elem_size against the destination size. ring_read_seq does memcpy(out, ring_slot(h, seq), elem_size) with elem_size read raw from the mmap'd segment, copying into a fixed 8-byte destination scalar. An elem_size larger than 8 bytes writes past the destination. A local peer that can write the backing file can leave the header valid while setting a large elem_size, so the next read copies a file-controlled length into the fixed 8-byte stack buffer, corrupting adjacent stack frames.
Vulnerability class: Buffer Overflow
EPSS: 0.006 (46.4th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Egor Data::ringbuffer::shared — versions 0
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2026-59144?
- CVE-2026-59144 is a critical-severity vulnerability in Egor Data::ringbuffer::shared, classified under Stack-based Buffer Overflow. CVSS score: 9.8/10. Published 2026-07-21.
- How severe is CVE-2026-59144?
- Critical severity. CVSS v3 base score is 9.8 out of 10.