Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-110753 Overview
CVE-2026-110753 is a use-after-free vulnerability [CWE-416] in the Text::CSV_XS Perl module affecting versions 1.46 through 1.64. The flaw resides in the parser's handling of empty rows when skip_empty_rows or eof modes are active alongside bind_columns. When the parser skips an empty line, it frees the current field scalar without checking whether that scalar is bound to a caller-owned variable. This drops one reference from the application's variable, causing the Perl interpreter to free memory still referenced by application code. Subsequent access to the freed scalar leads to process crashes and potential memory corruption.
Critical Impact
Applications parsing untrusted CSV input with bind_columns and skip_empty_rows can experience process crashes or memory corruption, potentially enabling denial of service or exploitation of freed memory.
Affected Products
- Text::CSV_XS for Perl, versions 1.46 through 1.64
- Perl applications using bind_columns with skip_empty_rows option
- Perl applications using bind_columns with eof parsing mode
Discovery Timeline
- 2026-10-16 - CVE-2026-110753 published to NVD
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-110753
Vulnerability Analysis
The Text::CSV_XS module provides a high-performance XS (C-based) implementation of CSV parsing for Perl. The bind_columns feature allows callers to pass scalar references that the parser populates directly during row processing. This avoids allocating a new array per row and lets applications read fields through pre-bound variables.
The vulnerability occurs in the parser's row-skipping logic. When skip_empty_rows encounters an empty last line, or when eof mode processes any empty line, the parser calls sv_free() on the current field scalar. The parser does not verify whether the scalar is bound to a caller-owned variable. Freeing a bound scalar drops a reference the application still holds, so the application's variable points to released memory.
Any subsequent read of that variable accesses freed memory. The process typically crashes, but the window between the free and the next access creates a classic use-after-free condition.
Root Cause
The root cause is a missing bound-check before sv_free() in the empty-row handling path of CSV_XS.xs. The parser treats the field scalar as internally owned and releases it unconditionally. When is_bound is true, the scalar belongs to the caller, and freeing it corrupts the caller's reference count.
Attack Vector
An attacker who supplies CSV input to a Perl application using bind_columns with skip_empty_rows or eof mode can trigger the free by including an empty line. The application later reads the bound variable, dereferencing freed memory. CSV input is frequently sourced from untrusted uploads, email attachments, API payloads, or network-fetched data, making network-reachable services the primary attack surface.
csv->fld_idx = 0; \
c = CSV_GET; \
if (c == EOF || ser == 2) { \
- sv_free (sv); \
+ unless (csv->is_bound) sv_free (sv); \
sv = NULL; \
- seenSomething = FALSE; \
+ seenSomething = FALSE; \
if (ser == 2) return FALSE; \
break; \
} \
Source: GitHub patch commit f082d5c. The fix adds an is_bound check before calling sv_free(), preserving the caller's reference when the scalar is bound.
Detection Methods for CVE-2026-110753
Indicators of Compromise
- Unexpected SIGSEGV or SIGABRT crashes in Perl processes that parse CSV input
- Perl error messages referencing Attempt to free unreferenced scalar or panic: SvREFCNT
- Core dumps from long-running Perl workers that ingest CSV from external sources
- Repeated worker restarts in applications using Text::CSV_XS with bind_columns
Detection Strategies
- Inventory installed Perl modules across hosts and flag any Text::CSV_XS version between 1.46 and 1.64 inclusive
- Audit application code for calls combining bind_columns with skip_empty_rows or eof parsing modes
- Review CSV ingestion endpoints for exposure to untrusted input and correlate with crash telemetry
Monitoring Recommendations
- Monitor Perl process exit codes and segfault counts in production workers
- Alert on crash spikes in CSV import pipelines, ETL jobs, and API handlers that accept CSV
- Enable core dump collection to confirm root cause when crashes occur
How to Mitigate CVE-2026-110753
Immediate Actions Required
- Upgrade Text::CSV_XS to version 1.65 or later on all systems
- Identify Perl applications that call bind_columns with skip_empty_rows or eof modes and prioritize those for patching
- Restrict or validate CSV input from untrusted sources until the upgrade is deployed
Patch Information
The fix is included in Text::CSV_XS version 1.65. The upstream commit f082d5c8aab1b8d16b6181d4f3042a06947e260f adds an is_bound guard before sv_free() in the row-skipping path. Review the MetaCPAN release changes and the upstream patch commit for full details.
Workarounds
- Disable skip_empty_rows and avoid eof mode when using bind_columns until the module is upgraded
- Pre-filter CSV input to strip empty lines before passing data to the parser
- Switch temporarily to getline() without bind_columns, accepting the per-row array allocation cost
# Upgrade Text::CSV_XS via cpanm
cpanm Text::CSV_XS@1.65
# Verify installed version
perl -MText::CSV_XS -e 'print "$Text::CSV_XS::VERSION\n"'
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

