Description
Text::CSV_XS versions from 1.46 before 1.65 for Perl have a use-after-free of bind_columns variables when skip_empty_rows skips an empty line in getline.
With bind_columns, the parser writes each field into the caller's own scalar without taking a reference to it. When skip_empty_rows skips an empty last line, the parser frees the current field scalar without checking whether it is bound, dropping one reference from the application's variable. The "eof" mode does the same on any empty line.
The variable is then freed while the application still references it, so later code uses freed memory and can crash the process.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Text-CSV_XS | 1.46 – < 1.65 | 1.65 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libtext-csv-xs-perl | 1.65-1 | — |
| Debian 13 | libtext-csv-xs-perl | No fix yet | — |
| Debian 12 | libtext-csv-xs-perl | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libtext-csv-xs-perl | No fix yet | — |
| Ubuntu 26.04 LTS | libtext-csv-xs-perl | No fix yet | — |
| Ubuntu 24.04 LTS | libtext-csv-xs-perl | No fix yet | — |
| Ubuntu 22.04 LTS | libtext-csv-xs-perl | No fix yet | — |
| Ubuntu 20.04 LTS | libtext-csv-xs-perl | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libtext-csv-xs-perl | No fix yet | — |
| Ubuntu 16.04 LTS | libtext-csv-xs-perl | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | perl-Text-CSV_XS | 1.650.0-1.1 | openSUSE-SU-2026:12218-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | perl-Text-CSV_XS | 1.65-1.amzn2023.0.1 | ALAS2023-2026-3340 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | perl-Text-CSV_XS | No fix yet | — |
Advisories 2
- ALAS2023-2026-3340 Important: perl-Text-CSV_XS security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Nov 2, 2026
- openSUSE-SU-2026:12218-1 perl-Text-CSV_XS-1.650.0-1.1 on GA media SUSE / openSUSE Security Updates · Oct 22, 2026