---
id: "CVE-2026-110754"
kind: "vulnerability"
aliases: ["CVE-2026-110754"]
title: "Text::CSV_XS: malformed CSV records leak memory in getline"
severity: "medium"
cvss: 6.5
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["package", "perl", "self-hosted", "text-csv-xs"]
not_affected_if: ["short-lived-scripts", "trusted-input-only", "version-1.65-or-later"]
published_at: "2026-10-16T23:17:00+00:00"
first_seen_at: "2026-10-23T21:57:14+00:00"
updated_at: "2026-10-25T03:57:41+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-110754", "first_seen_at": "2026-10-23T21:57:14+00:00"}]
---

# Text::CSV_XS: malformed CSV records leak memory in getline

Text::CSV_XS before 1.65 for Perl keeps the parsed fields of any CSV record that fails to parse in getline, because the array is never freed. A long-running process that parses untrusted CSV can be driven to exhaust its memory with repeated malformed input.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed version with `perl -MText::CSV_XS -e 'print $Text::CSV_XS::VERSION'` and see whether it is below `1.65`.
- Search dependency manifests and lockfiles for `Text::CSV_XS` to find every project that pulls it in.

## Fix

- Upgrade Text::CSV_XS to `1.65` or later.

## Timeline

- 2026-10-23T21:57:14+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-110754

## From the sources

Text::CSV_XS versions before 1.65 for Perl leak the parsed fields of a record that fails to parse in getline.

getline collects the fields of a record into a new array and returns a reference to it only when the parse succeeds. When the record has a syntax error, getline returns undef and never frees the array or the fields parsed before the error.

A long-running process parsing untrusted CSV retains every malformed record it is sent, so repeated malformed input exhausts its memory.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
