CVEfocus › CVE database › CVE-2026-7111

CVE-2026-7111Text::CSV_XS versions before 1.62 for Perl have a use-after-free when registered…

CVSS 8.4 HighEPSS 0.2% (higher than 7% of CVEs)Published 2026-04-29Updated 2026-06-25Assigner: CPANSec

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.

CWE-416CWE-825

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

3Fixed
4Fix pending
3Under investigation
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libtext-csv-xs-perlFix pendingUBUNTU-CVE-2026-7111
Ubuntu 26.04libtext-csv-xs-perlUnder investigationUBUNTU-CVE-2026-7111
Ubuntu 25.10libtext-csv-xs-perlWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-7111
Ubuntu 24.04libtext-csv-xs-perlUnder investigationUBUNTU-CVE-2026-7111
Ubuntu 22.04libtext-csv-xs-perlUnder investigationUBUNTU-CVE-2026-7111
Ubuntu 20.04libtext-csv-xs-perlFix pendingUBUNTU-CVE-2026-7111
Ubuntu 18.04libtext-csv-xs-perlFix pendingUBUNTU-CVE-2026-7111
Ubuntu 16.04libtext-csv-xs-perlFix pendingUBUNTU-CVE-2026-7111
Debian 14libtext-csv-xs-perlFixed1.62-1DEBIAN-CVE-2026-7111
Debian 13libtext-csv-xs-perlFixed1.60-1+deb13u1DEBIAN-CVE-2026-7111
Debian 12libtext-csv-xs-perlFixed1.49-1+deb12u1DEBIAN-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.

Solution: Upgrade to 1.62 or later.

Vendor advisories:

References

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.