CVE-2026-7111Text::CSV_XS versions before 1.62 for Perl have a use-after-free when registered…
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libtext-csv-xs-perl | Fix pending | UBUNTU-CVE-2026-7111 | |
| Ubuntu 26.04 | libtext-csv-xs-perl | Under investigation | UBUNTU-CVE-2026-7111 | |
| Ubuntu 25.10 | libtext-csv-xs-perl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-7111 | |
| Ubuntu 24.04 | libtext-csv-xs-perl | Under investigation | UBUNTU-CVE-2026-7111 | |
| Ubuntu 22.04 | libtext-csv-xs-perl | Under investigation | UBUNTU-CVE-2026-7111 | |
| Ubuntu 20.04 | libtext-csv-xs-perl | Fix pending | UBUNTU-CVE-2026-7111 | |
| Ubuntu 18.04 | libtext-csv-xs-perl | Fix pending | UBUNTU-CVE-2026-7111 | |
| Ubuntu 16.04 | libtext-csv-xs-perl | Fix pending | UBUNTU-CVE-2026-7111 | |
| Debian 14 | libtext-csv-xs-perl | Fixed | 1.62-1 | DEBIAN-CVE-2026-7111 |
| Debian 13 | libtext-csv-xs-perl | Fixed | 1.60-1+deb13u1 | DEBIAN-CVE-2026-7111 |
| Debian 12 | libtext-csv-xs-perl | Fixed | 1.49-1+deb12u1 | DEBIAN-CVE-2026-7111 |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- HMBRAND Text::CSV_XS: affected: before 1.62; fixed in
1.62
Solution: Upgrade to 1.62 or later.
Vendor advisories:
- https://github.com/cpan-authors/Text-CSV_XS/commit/c17f31a5f2bf36674748eb4b6e25672f0571a2… (patch)
- https://metacpan.org/release/HMBRAND/Text-CSV_XS-1.62/changes (release-notes)
References
- https://github.com/cpan-authors/Text-CSV_XS/commit/c17f31a5f2bf36674748eb4b6e25672f0571a224.patch
- https://metacpan.org/release/HMBRAND/Text-CSV_XS-1.62/changes
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.