CVE-2026-110753 PUBLISHED

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

Assigner: CPANSec
Reserved: 14.10.2026 Published: 16.10.2026 Updated: 16.10.2026

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.

Product Status

Package Collection https://cpan.org/modules
Package Name Text-CSV_XS
Versions Default: unaffected
  • affected from 1.46 to 1.65 (excl.)

Solutions

Upgrade to Text-CSV_XS 1.65 or later.

References

Problem Types

  • CWE-416 Use After Free CWE
  • CWE-911 Improper Update of Reference Count CWE