CVE-2026-7111 Details
Description
Text::CSV_XS versions before 1.62 for Perl have a use-after-free when registered callbacks extend the Perl argument stack, which may enable type confusion or memory corruption. The Parse, print, getline, and getline_all methods invoke registered callbacks (for example after_parse, before_print, or on_error) and cache the Perl argument stack pointer across the call. If a callback extends the argument stack enough to trigger a reallocation, the return value is written through the stale pointer into the freed buffer, and the caller reads the original $self argument as the return value instead. Calling code that expects parsed data from getline_all receives the Text::CSV_XS object in its place, leading to logic errors or crashes. Text::CSV_XS objects used without any registered callbacks are not affected.
A use-after-free vulnerability has been identified in Text::CSV_XS versions prior to 1.62 for Perl. This issue arises when registered callbacks extend the Perl argument stack, potentially leading to type confusion or memory corruption. The vulnerability is triggered in the Parse, print, getline, and getline_all methods, which invoke registered callbacks and cache the Perl argument stack pointer. If a callback extends the argument stack enough to cause a reallocation, the return value is written through a stale pointer into a freed buffer. As a result, the caller reads the original $self argument as the return value, causing logic errors or crashes. This vulnerability does not affect Text::CSV_XS objects used without any registered callbacks.
Users are advised to update to Text::CSV_XS version 1.62 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 29, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/cpan-authors/Text-CSV_XS/commit/c17f31a5f2bf36674748eb4b6e25672f0571a224.patch | CPANSec | Mailing ListPatch |
| https://metacpan.org/release/HMBRAND/Text-CSV_XS-1.62/changes | CPANSec | ProductRelease Notes |
| https://lists.debian.org/debian-lts-announce/2026/06/msg00037.html | CVE | |
| http://www.openwall.com/lists/oss-security/2026/04/29/17 | CVE | Mailing ListThird Party Advisory |
Weakness Enumeration
Affected Products
| Product | Versions |
|---|---|
| hmbrand text::csv xs | < 1.62 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 25, 2026 | CVE Modified | CVE |
| Jun 17, 2026 | CVE Modified | CPANSec |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 6, 2026 | Initial Analysis | [email protected] |
| Apr 29, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | CVE Modified | CVE |
| Apr 29, 2026 | New CVE Received | CPANSec |