Affected versions
- Affected versions
- * || =1.19-1 || =1.20-1 || =1.20-1build1 || =1.21-1
- Fixed version
- Not reported
- Affected versions
- * || =1.26-1build1 || =1.34-1
- Fixed version
- Not reported
- Affected versions
- * || =1.39-1 || =1.39-1build1 || =1.40-1 || =1.41-1
- Fixed version
- Not reported
- Affected versions
- * || =1.45-1 || =1.46-1 || =1.47-1 || =1.47-1build1
- Fixed version
- Not reported
- Affected versions
- * || =1.51-1 || =1.52-1 || =1.53-1 || =1.53-1build1 || =1.53-1build2 || =1.53-1build3
- Fixed version
- Not reported
- Affected versions
- * || =1.60-1 || =1.61-1
- Fixed version
- Not reported
- Affected versions
- * || =1.61-1 || =1.62-1 || =1.64-1 || =1.64-1build1
- Fixed version
- Not reported
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.

