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

Published Apr 29, 2026
·
Updated

Text::CSVXS 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 getlineall methods invoke registered callbacks (for example afterparse, beforeprint, or onerror) 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 getlineall receives the Text::CSVXS object in its place, leading to logic errors or crashes. Text::CSVXS objects used without any registered callbacks are not affected.

Affected Software

9 affected components
cpan/Text-CSV_XS<1.62
Hmbrand Text\<1.62
ubuntu/libtext-csv-xs-perl*
ubuntu/libtext-csv-xs-perl*
ubuntu/libtext-csv-xs-perl*
ubuntu/libtext-csv-xs-perl*
ubuntu/libtext-csv-xs-perl*
ubuntu/libtext-csv-xs-perl*
ubuntu/libtext-csv-xs-perl*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Text::CSV_XS (Perl) to a version that resolves this vulnerability.

    Fixed in 1.62

Event History

Apr 29, 2026
CVE Published
via MITRE·02:22 PM
Data Sourced
via MITRE·02:22 PM
RemedyDescriptionWeakness
Data Sourced
via OSV·03:16 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:16 PM
DescriptionWeakness
Data Sourced
via NVD·07:16 PM
Severity
May 5, 2026
Event
via FIRST·12:00 AM
May 6, 2026
Data Sourced
via NVD·04:16 PM
RemedyAffected Software
Dec 2, 2026
Updated
via OSV·02:23 AM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-7111?

CVE-2026-7111 is considered to have a high severity due to its potential to cause type confusion or memory corruption.

2

How do I fix CVE-2026-7111?

To fix CVE-2026-7111, upgrade Text::CSV_XS to version 1.62 or later.

3

What versions are affected by CVE-2026-7111?

CVE-2026-7111 affects Text::CSV_XS versions prior to 1.62.

4

What programming language is impacted by CVE-2026-7111?

CVE-2026-7111 impacts the Perl programming language.

5

What type of vulnerability is CVE-2026-7111?

CVE-2026-7111 is classified as a use-after-free vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203