CVE-2026-59144: CWE-121 Stack-based Buffer Overflow in EGOR Data::RingBuffer::Shared
A critical stack-based buffer overflow vulnerability exists in Data::RingBuffer::Shared versions before 0.04 for Perl. The flaw arises from an unvalidated elem_size parameter in the ring_read_seq function, which copies data into a fixed 8-byte stack buffer without proper bounds checking. This allows an attacker with local write access to the backing file to cause stack corruption by specifying an elem_size larger than 8 bytes.
AI Analysis
Technical Summary
CVE-2026-59144 is a stack-based buffer overflow vulnerability in the Perl module Data::RingBuffer::Shared versions prior to 0.04. The vulnerability occurs because the ring_read_seq function performs a memcpy operation using an elem_size value read directly from a memory-mapped segment without validating that elem_size does not exceed the fixed 8-byte size of the destination buffer. Although the ring_validate_header function checks capacity overflow and total size consistency, it does not limit elem_size against the destination size. A local attacker who can modify the backing file can craft a valid header with a large elem_size, causing ring_read_seq to overflow the stack buffer and corrupt adjacent stack frames.
Potential Impact
Successful exploitation can lead to stack corruption, potentially allowing arbitrary code execution, denial of service, or other severe impacts due to memory corruption. The vulnerability has a CVSS score of 9.8 (critical), indicating high impact on confidentiality, integrity, and availability. Exploitation requires local write access to the backing file, which limits the attack vector to local or similarly privileged users.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch is available, restrict local write access to the backing file used by Data::RingBuffer::Shared to trusted users only. Monitor for updates from the EGOR project or CPAN security advisories for an official fix.
CVE-2026-59144: CWE-121 Stack-based Buffer Overflow in EGOR Data::RingBuffer::Shared
Description
A critical stack-based buffer overflow vulnerability exists in Data::RingBuffer::Shared versions before 0.04 for Perl. The flaw arises from an unvalidated elem_size parameter in the ring_read_seq function, which copies data into a fixed 8-byte stack buffer without proper bounds checking. This allows an attacker with local write access to the backing file to cause stack corruption by specifying an elem_size larger than 8 bytes.
CVSS v3.1
Score 9.8critical
Affected software
pkg:github/Data-RingBuffer-SharedRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-59144 is a stack-based buffer overflow vulnerability in the Perl module Data::RingBuffer::Shared versions prior to 0.04. The vulnerability occurs because the ring_read_seq function performs a memcpy operation using an elem_size value read directly from a memory-mapped segment without validating that elem_size does not exceed the fixed 8-byte size of the destination buffer. Although the ring_validate_header function checks capacity overflow and total size consistency, it does not limit elem_size against the destination size. A local attacker who can modify the backing file can craft a valid header with a large elem_size, causing ring_read_seq to overflow the stack buffer and corrupt adjacent stack frames.
Potential Impact
Successful exploitation can lead to stack corruption, potentially allowing arbitrary code execution, denial of service, or other severe impacts due to memory corruption. The vulnerability has a CVSS score of 9.8 (critical), indicating high impact on confidentiality, integrity, and availability. Exploitation requires local write access to the backing file, which limits the attack vector to local or similarly privileged users.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch is available, restrict local write access to the backing file used by Data::RingBuffer::Shared to trusted users only. Monitor for updates from the EGOR project or CPAN security advisories for an official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-07-02T16:24:17.913Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5fcbb52a4a8d5989ac6ccc
Added to database: 07/21/2026, 19:42:45 UTC
Last enriched: 07/30/2026, 08:52:56 UTC
Last updated: 09/03/2026, 05:02:33 UTC
Views: 73
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.