p PatchFirst

CVE-2026-7111

CVE-2026-7111 · Text::CSV_XS versions before 1.62 for Perl have a use-after-free when registered callbacks extend the Perl argument stack, which may enable type confusion or memory corruption

This page contains facts from public vulnerability sources. Check the original advisory before updating.

Text::CSV_XS versions before 1.62 for Perl have a use-after-free when registered callbacks extend the Perl argument stack, which may enable type confusion or memory corruption. The Parse, print, getline, and getline_all methods invoke registered callbacks (for example after_parse, before_print, or on_error) and cache the Perl argument stack pointer across the call. If a callback extends the argument stack enough to trigger a reallocation, the return value is written through the stale pointer into the freed buffer, and the caller reads the original $self argument as the return value instead. Calling code that expects parsed data from getline_all receives the Text::CSV_XS object in its place, leading to logic errors or crashes. Text::CSV_XS objects used without any registered callbacks are not affected.

CVSS 8.4 · High · EPSS 0.2% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • text::csv_xs

    Versions
    • ≥ 0, < 1.62: Affected (custom)

    Update to 1.62

  • libtext-csv-xs-perl Debian:12

    Versions
    • 1.49-1
    Affected ranges
    • ECOSYSTEM: < 1.49-1+deb12u1

    Update to 1.49-1+deb12u1

  • libtext-csv-xs-perl Debian:13

    Versions
    • 1.60-1
    Affected ranges
    • ECOSYSTEM: < 1.60-1+deb13u1

    Update to 1.60-1+deb13u1

  • libtext-csv-xs-perl Debian:14

    Versions
    • 1.60-1
    • 1.61-1
    Affected ranges
    • ECOSYSTEM: < 1.62-1

    Update to 1.62-1

  • libtext-csv-xs-perl Ubuntu:16.04:LTS

    Versions
    • 1.19-1
    • 1.20-1
    • 1.20-1build1
    • 1.21-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libtext-csv-xs-perl Ubuntu:18.04:LTS

    Versions
    • 1.26-1build1
    • 1.34-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libtext-csv-xs-perl Ubuntu:20.04:LTS

    Versions
    • 1.39-1
    • 1.39-1build1
    • 1.40-1
    • 1.41-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libtext-csv-xs-perl Ubuntu:22.04:LTS

    Versions
    • 1.45-1
    • 1.46-1
    • 1.47-1
    • 1.47-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libtext-csv-xs-perl Ubuntu:24.04:LTS

    Versions
    • 1.51-1
    • 1.52-1
    • 1.53-1
    • 1.53-1build1
    • 1.53-1build2
    • 1.53-1build3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libtext-csv-xs-perl Ubuntu:25.10

    Versions
    • 1.60-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libtext-csv-xs-perl Ubuntu:26.10

    Versions
    • 1.61-1
    • 1.62-1
    • 1.64-1
    • 1.64-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libtext-csv-xs-perl Ubuntu:26.04:LTS

    Versions
    • 1.60-1
    • 1.61-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →