CVE-2026-110755: Text::CSV_XS versions before 1.65 for Perl allow quadratic CPU use by copying the unparsed remainder per record of CR-only input in getline Stig Palmquist 16 Oct 2026 22:11 UTC

========================================================================
CVE-2026-110755                                      CPAN Security Group
========================================================================

        CVE ID:  CVE-2026-110755

  Distribution:  Text-CSV_XS
      Versions:  before 1.65
      MetaCPAN:  https://metacpan.org/dist/Text-CSV_XS
      VCS Repo:  https://github.com/cpan-authors/Text-CSV_XS

Text::CSV_XS versions before 1.65 for Perl allow quadratic CPU use by
copying the unparsed remainder per record of CR-only input in getline

Description
-----------
Text::CSV_XS versions before 1.65 for Perl allow quadratic CPU use by
copying the unparsed remainder per record of CR-only input in getline.

With eol unset, the default, getline reads with Perl's default line
separator, so input with CR-only line endings arrives as one chunk.
After each record the parser copies the whole unparsed remainder into a
new buffer, which the next call parses and copies again, so the work
grows with the square of the input size.

A reader with default options that is sent CSV with classic Mac line
endings spends seconds of CPU time on a megabyte of input.

Problem types
-------------
- CWE-407 Inefficient Algorithmic Complexity

Solutions
---------
Upgrade to Text-CSV_XS 1.65 or later.

References
----------
https://github.com/cpan-authors/Text-CSV_XS/commit/f25e00aacd6fc15857b22487cb2e5ca263f377e0.patch
https://metacpan.org/release/HMBRAND/Text-CSV_XS-1.65/changes

Timeline
--------
- 2026-10-14: Fix committed to upstream repository.
- 2026-10-15: Version 1.65 released with fix.