# CVE-2026-7111: 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

- Severity: High 8.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-04-29T14:22:29.358Z
- Modified: 2026-10-26T20:10:00.160Z
- Weaknesses: CWE-416, CWE-825
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- Text-CSV_XS: before 1.62
- hmbrand text::csv_xs: before 1.62

## References

- <https://github.com/cpan-authors/Text-CSV_XS/commit/c17f31a5f2bf36674748eb4b6e25672f0571a224.patch> (mailing-list, patch)
- <https://metacpan.org/release/HMBRAND/Text-CSV_XS-1.62/changes> (product, release-notes)
- <http://www.openwall.com/lists/oss-security/2026/04/29/17> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2026/06/msg00037.html>

## Sources

- CVE List: [CVE-2026-7111](https://www.cve.org/CVERecord?id=CVE-2026-7111), CVE Terms of Use, modified 2026-06-25
- NVD: [CVE-2026-7111](https://nvd.nist.gov/vuln/detail/CVE-2026-7111), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-7111 · Whole record: https://cve.day/CVE-2026-7111.json · Rebuilt by cve.day 2026-11-25T22:59:20.081Z
