CVE-2026-59144
Received Received - Intake

Stack Buffer Overflow in Data::RingBuffer::Shared Perl Module

Vulnerability report for CVE-2026-59144, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-21

Last updated on: 2026-07-21

Assigner: CPANSec

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-21
Last Modified
2026-07-21
Generated
2026-07-22
AI Q&A
2026-07-21
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-121 A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a stack buffer overflow in the Perl module Data::RingBuffer::Shared versions before 0.04. It occurs when an unvalidated elem_size value is used in ring_read_seq, leading to a memcpy operation that writes past a fixed 8-byte destination buffer. An attacker can exploit this by setting a large elem_size in the header, causing memory corruption on the stack.

Detection Guidance

This vulnerability is specific to Perl's Data::RingBuffer::Shared module versions before 0.04. To detect it, check installed Perl modules for versions older than 0.04 using commands like 'cpan -D Data::RingBuffer::Shared' or 'perl -MData::RingBuffer::Shared -e "print $Data::RingBuffer::Shared::VERSION"'.

Impact Analysis

If exploited, this vulnerability could allow a local attacker to corrupt adjacent stack frames, potentially leading to arbitrary code execution or denial of service. The impact depends on the context in which the vulnerable module is used, such as in a Perl application processing untrusted data.

Compliance Impact

This vulnerability could potentially lead to data corruption or unauthorized memory access, which may impact compliance with standards requiring data integrity and confidentiality, such as GDPR or HIPAA. However, the provided CVE details do not explicitly address compliance implications.

Mitigation Strategies

Immediately update the Data::RingBuffer::Shared module to version 0.04 or later using your package manager or CPAN. If updating is not possible, consider removing the module if it is not essential to avoid potential stack buffer overflow exploits.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-59144. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart