Live threats

All CVEs

CVE-2026-129115

Use-after-free memory read in JSON::XS for Perl

Critical 9.1 No auth needed

Priority
71
CVSS 3.1
9.1
EPSS
—
Auth required
No
Published
Nov 14, 2026
Updated
Nov 24, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-416
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

What happens

JSON::XS versions 3.0 through 4.04 for Perl contain a use-after-free vulnerability in encode_rv when allow_tags is enabled. An unauthenticated remote attacker can exploit this by sending specially crafted objects that trigger stack reallocation during serialization, allowing arbitrary memory reads and denial of service.

Show the original NVD text

JSON::XS versions from 3.0 before 4.05 for Perl read freed stack memory when a FREEZE result's serialisation grows the Perl stack under allow_tags in encode_rv. With allow_tags, an object's FREEZE method is called in list context and each returned value is encoded through a saved Perl stack pointer. When encoding a returned value calls back into Perl, through TO_JSON under convert_blessed or another FREEZE, and that callback grows the stack, the stack is reallocated while the saved pointer still refers to the freed block. Encoding such objects reads freed memory, and encode can return undef without an error.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 4.05

Update JSON::XS to version 4.05 or later.

Vendor advisory · metacpan.org ↗

  1. Check whether you run any of the affected products and follow the vendor advisory.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.