Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted CSV with empty line
-
Exploitskip_empty_rows frees bound scalar
-
ExecutionApplication references freed memory
-
ImpactProcess crashes (denial of service)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the host application to (1) use Text::CSV_XS versions 1.46 through 1.64, (2) call bind_columns() to bind caller scalars to parsed fields, and (3) enable the non-default skip_empty_rows option (or use its 'eof' mode), then parse CSV input containing an empty line - a trailing empty last line in skip mode, or any empty line in eof mode. The attacker only needs to supply the empty-line CSV content. Limiting factors: the vulnerable code path does not run under default configuration (skip_empty_rows must be explicitly set and columns bound), so applications not using this specific feature combination are unaffected regardless of the CVSS score. |
| Impact | Signals conflict sharply and favor a lower real-world priority than the headline score suggests. The published CVSS 3.1 base score is 9.8 (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:H), but the C:H/I:H/A:H impact rating appears overstated: the description, CWE-416, and the vendor tags (Denial Of Service, Use After Free, Memory Corruption) all point to a process crash as the realistic outcome, not confidentiality or integrity loss. EPSS is only 0.19% (8th percentile), there is no CISA KEV listing, and no public exploit code is referenced - only the vendor patch and a refcount regression test. Exploitation status is therefore 'no public exploit identified at time of analysis.' The AV:N/AC:L framing is also questionable: triggering the bug requires the host application to be built with the non-default combination of bind_columns() plus skip_empty_rows, so reachability is config-gated rather than universally remote. Verify impact scope with the vendor - described behavior is a use-after-free crash (availability), and the critical-rated confidentiality/integrity impacts are not substantiated by the advisory text. |
| Exploit ScenarioDerived | An application that parses untrusted CSV (e.g. an uploaded file or network-sourced data) using Text::CSV_XS with bind_columns() and skip_empty_rows enabled receives input containing an empty line. The parser frees the caller's bound scalar while the application still holds a reference, so subsequent use of that variable reads freed memory and crashes the process. No public exploit code exists; the vendor patch ships with a regression test demonstrating the dropped reference count. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 20, 2026
A use-after-free in the Perl XS module Text::CSV_XS (versions 1.46 through 1.64) lets attacker-supplied CSV content crash the parsing process when an application combines three specific features: bind_columns(), the non-default skip_empty_rows option (or its 'eof' mode), and input containing an empty line. The defect drops a reference from the caller's bound scalar while it is still in use, so subsequent application code touches freed memory and typically aborts - the independent assessment scores this as availability-only impact (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H) rather than the headline 9.8, because the vulnerable code path never runs under default configuration. EPSS is low at 0.19% (8th percentile), no public exploit code was identified at time of analysis, and no CISA KEV entry exists; a vendor patch is available in Text::CSV_XS 1.65.
RemediationAI
Upgrade to Text::CSV_XS 1.65 or later (Vendor-released patch: Text::CSV_XS 1.65) - the release notes are at https://metacpan.org/release/HMBRAND/Text-CSV_XS-1.65/changes and the minimal fix is the commit at https://github.com/cpan-authors/Text-CSV_XS/commit/f082d5c8aab1b8d16b6181d4f3042a06947e260f.patch, which can be backported if a distribution pins the older release. Where upgrading is delayed, the exposure can be eliminated by changing how the parser is driven, at some cost: stop using bind_columns() and consume rows via getline()/getline_hr() returning fresh array/hash references (correct but slower and more memory-churny for high-volume parsing), or leave skip_empty_rows at its default off setting and filter empty lines in application code before handing content to the parser (this changes only your own row-count semantics, but note that 'eof' mode users must drop that setting entirely rather than rely on the default). Applications that already avoid both bind_columns() and skip_empty_rows need no urgent action beyond normal patching cadence, and CSV input validation that rejects or strips blank lines before parsing provides an additional cheap compensating control.
Affected ProductsAI
Perl distributions using Text::CSV_XS versions 1.46 up to but not including 1.65 are affected; 1.45 and earlier predate the regression and 1.65 contains the fix. The flaw only materialises in applications that call bind_columns() and enable the non-default skip_empty_rows option, or use its 'eof' setting, so the module version alone is not sufficient to determine exposure - the CPE-level product is Text::CSV_XS for Perl, and both the metacpan release notes (https://metacpan.org/release/HMBRAND/Text-CSV_XS-1.65/changes) and the CPANSec/oss-security advisory (https://seclists.org/oss-sec/2026/q4/213) describe the affected range. Because the module is commonly pulled in transitively as a dependency of CSV-handling Perl applications and framework code, inventory should be done by version rather than by direct dependency declaration.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Text::CSV_XS is a Perl module whose parser is implemented in C as XS code compiled against the Perl interpreter. Its bind_columns() API stores each parsed field directly into a caller-supplied scalar (SV) without incrementing that SV's reference count, on the contract that the parser will not release it. The bug is a classic CWE-416 use-after-free in the row-skipping macros: when skip_empty_rows discards a trailing empty line, and unconditionally in 'eof' mode when any empty line is hit, the code called sv_free() on the current field scalar without checking the csv->is_bound flag, decrementing the application's reference count and freeing memory the application still points at. The upstream commit f082d5c8aab1b8d16b6181d4f3042a06947e260f addresses the root cause by guarding both sv_free() call sites with 'unless (csv->is_bound)', and adds regression tests in t/67_emptrow.t that assert Internals::SvREFCNT on a bound scalar is unchanged across skip/eof scenarios (the tests are gated on PerlIO being available). Because the freed SV is reused by later Perl code, symptoms range from silent memory corruption to immediate process termination; the assessed vector reflects only denial of service.
Know when Perl gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
Sources disagree (Medium–Critical)AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attacker supplies CSV with no privileges (PR:N), but the bug only triggers under the non-default bind_columns+skip_empty_rows configuration (AC:H); described impact is a process crash only, so C:N/I:N/A:H.
vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.
CVSS VectorVendor: CPANSec
Lifecycle Timeline
3DescriptionCVE.org
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.
Executive ViewAI
Text::CSV_XS versions 1.46 through 1.64 contain a use-after-free that can crash CSV parsing processes when applications use a specific non-default combination of features, creating a targeted availability risk for Perl services configured that way. The defect is unauthenticated but requires that non-default code path, and no public exploit was identified at time of analysis; leadership should prioritize inventory and upgrade to Text::CSV_XS 1.65 to prevent service disruption in affected applications.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand
Stack-based buffer overflow in the CPerlHost::Add method in win32/perlhost.h in Perl before 5.24.3-RC1 and 5.26.x before
The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of
Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated
Perl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid
Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a
Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa
Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e
CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS
The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig
In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha
Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers
EUVD-2026-103193
GHSA-gvjh-vp76-v2mp
NVD
CVE.org
EPSS
Exploit-DB