Skip to main content

Text::CSV_XS EUVDEUVD-2026-103193

| CVE-2026-110753 CRITICAL
Use After Free (CWE-416)
2026-10-16 CPANSec GHSA-gvjh-vp76-v2mp
Critical
Disputed · 9.8 Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted CSV with empty line
  2. Exploit
    skip_empty_rows frees bound scalar
  3. Execution
    Application references freed memory
  4. Impact
    Process 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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)
Vendor (CPANSec) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 5.9 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 5.5 MEDIUM

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Oct 20, 2026 - 19:22 NVD
9.8 (CRITICAL)
CVE Published
Oct 16, 2026 - 22:06 cve.org
UNKNOWN (no severity yet)
CVE Published
Oct 16, 2026 - 22:06 cve.org
CRITICAL 9.8

DescriptionCVE.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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
very popular Perl CSV library, but vulnerable path needs non-default config
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in Perl

View all
CVE-2012-6329 HIGH POC
7.5 Jan 04

The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand

CVE-2017-12814 CRITICAL POC
9.8 Sep 28

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

CVE-2015-8608 CRITICAL POC
9.8 Feb 07

The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of

CVE-2018-18314 CRITICAL POC
9.8 Dec 07

Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated

CVE-2018-18312 CRITICAL POC
9.8 Dec 05

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

CVE-2026-13221 CRITICAL POC
9.1 Jul 13

Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a

CVE-2018-18313 CRITICAL POC
9.1 Dec 07

Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa

CVE-2016-2381 HIGH
7.5 Apr 08

Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e

CVE-2023-31484 HIGH POC
8.1 Apr 29

CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS

CVE-2016-6185 HIGH POC
7.8 Aug 02

The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig

CVE-2018-12015 HIGH POC
7.5 Jun 07

In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha

CVE-2020-10543 HIGH
8.2 Jun 05

Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy