CVE Catalog

CVE-2026-110758

Unknown
Published: Translated: NVD NIST

Summary

Text::CSV_XS versions before 1.65 for Perl read before the start of an all-blank field under allow_whitespace in strip_trail_whitespace. Under allow_whitespace, strip_trail_whitespace removes trailing spaces and tabs from each unquoted field without stopping at the start of the field. For a field of only blanks it reads the byte before the field's heap buffer. If that byte is also a space or tab, it may be zeroed and the walk continue backwards, depending on what the allocator placed there. Leading blanks are normally skipped before a field is stored, but an all-blank field still arrives after a leading escape_char that differs from quote_char, or as a quoted field in getline when its line ends in two CRs.

Risk Assessment

An out-of-bounds read may occur, potentially leading to memory corruption, application crash, or arbitrary code execution. The vulnerability can be exploited by supplying specially crafted CSV data.

Recommendation

Update Text::CSV_XS to version 1.65 or later to fix the out-of-bounds read. Until patched, avoid using the allow_whitespace option with input containing all-blank fields.

Other vulnerabilities in Text::CSV_XS

See all
Original NVD description (English source)

Text::CSV_XS versions before 1.65 for Perl read before the start of an all-blank field under allow_whitespace in strip_trail_whitespace. Under allow_whitespace, strip_trail_whitespace removes trailing spaces and tabs from each unquoted field without stopping at the start of the field. For a field of only blanks it reads the byte before the field's heap buffer. If that byte is also a space or tab, it may be zeroed and the walk continue backwards, depending on what the allocator placed there. Leading blanks are normally skipped before a field is stored, but an all-blank field still arrives after a leading escape_char that differs from quote_char, or as a quoted field in getline when its line ends in two CRs.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS