Skip to main content

JSON::XS EUVDEUVD-2026-125914

| CVE-2026-129115 CRITICAL
Use After Free (CWE-416)
2026-11-14 CPANSec GHSA-w99q-7mg2-3mhx
9.1
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

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

  1. Access
    Reach Perl app using allow_tags encoding
  2. Delivery
    Submit crafted blessed object for serialization
  3. Exploit
    FREEZE/TO_JSON callback grows Perl stack
  4. Execution
    Saved stack pointer dereferences freed memory
  5. Impact
    Disclose freed memory or return undef

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 an application that explicitly enables the non-default allow_tags option on the JSON::XS encoder AND serialises a blessed object whose FREEZE method is invoked in list context, where encoding one of the returned values calls back into Perl - via TO_JSON under convert_blessed or another nested FREEZE - and that callback grows the Perl stack, causing reallocation while encode_rv still holds the saved (now-freed) stack pointer. Limiting factors that reduce real-world exposure: allow_tags is off by default, a convert_blessed/TO_JSON or nested-FREEZE callback path must exist, the attacker must influence the objects being serialised, and success depends on stack-growth timing and memory layout; the disclosed data is uncontrolled freed stack memory. Authentication requirements are not independently confirmed beyond the supplied PR:N metric.

Impact

Signals conflict sharply and must be weighed together. The input CVSS is 9.1 (AV:N/AC:L/PR:N/UI:N/C:H/I:N/A:H) and the vuln.today Decision label is act_now, yet EPSS is only 0.20% (10th percentile), SSVC Exploitation is 'none', there is no CISA KEV listing, and no confirmed exploit code is present - so this is driven by severity-of-defect (a CWE-416 use-after-free in a very common Perl library) rather than by observed or imminent widespread exploitation. The CVSS AC:L/C:H/A:H rating appears optimistic for the actual mechanism: the data read is uncontrolled recently-freed Perl stack memory and the triggering condition is a non-default feature plus a stack-growth timing event, which I assess as higher complexity and lower, less-controllable impact (see assessed vectors). SSVC Automatable:yes reflects that where the vulnerable allow_tags code path is reached it can be driven repeatably, but Technical Impact 'partial' and Exploitation 'none' align with the low EPSS, suggesting latent/targeted risk against specific deployments rather than mass exploitation. Net: treat as an act_now-priority library patch because it is a memory-safety flaw in widely-deployed software, but the low EPSS, absent KEV, and absent PoC indicate it is not currently being exploited at scale, and real exposure is gated by whether an application actually uses the allow_tags path on attacker-influenced data.

Exploit ScenarioDerived

A Perl service that serialises blessed objects with allow_tags enabled (and convert_blessed/TO_JSON or nested FREEZE callbacks in play) processes attacker-influenced data; a crafted object whose FREEZE result triggers a callback that grows the Perl stack causes encode_rv to dereference a saved stack pointer into a freed block. The result is that freed stack memory is read and encoded - potentially leaking adjacent process memory into the JSON output - or encode silently returns undef. Given AV:N/AC:H-class conditions, exploitation is remote but timing/heap-layout dependent and requires the non-default allow_tags code path; no public exploit was identified at time of analysis.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 17, 2026

Use-after-free in JSON::XS 3.0 through 4.04 for Perl lets an attacker who can influence the objects being serialised read freed stack memory when the non-default allow_tags option is enabled, and encode can return undef without raising an error. Under the independent assessment the vector is AV:N/AC:H/PR:N/UI:N with C:L/A:L, so impact is bounded to uncontrolled freed stack contents plus possible encode failure rather than code execution, and exploitation requires a FREEZE result encoded in list context whose callback (TO_JSON under convert_blessed, or a nested FREEZE) grows and reallocates the Perl stack. No CISA KEV entry or public exploit was identified at time of analysis; EPSS is 0.20% (10th percentile) and SSVC reports exploitation:none, while the vuln.today priority label is act_now, so the signals conflict and should be weighed together.

RemediationAI

Vendor-released patch: upgrade JSON::XS to version 4.05, the first release outside the affected 3.0-to-4.05 range, per the change log at https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes; rebuild or redeploy any bundled or vendored copies of the module rather than relying on a system Perl upgrade alone. The references provide no vendor workaround beyond the version upgrade, but the affected code path is gated on the non-default allow_tags option, so leaving that option disabled is the practical containment while upgrades are staged, at the cost of losing the custom-tag and FREEZE-based serialisation behaviour that allow_tags provides; auditing whether allow_tags is combined with convert_blessed or with objects whose FREEZE or TO_JSON callbacks can grow the stack identifies the remaining exposure. Because a successful trigger can make encode return undef without an error, add explicit undef checks around encode calls in affected services so silent serialisation failures surface in logs; see https://seclists.org/oss-sec/2026/q4/706 and https://vuldb.com/vuln/437439 for advisory detail. Prioritisation should follow the act_now label despite the low EPSS of 0.20% and SSVC exploitation:none, since exploitation activity is a lagging indicator for this class of defect.

Affected ProductsAI

Perl module JSON::XS versions from 3.0 up to but not including 4.05 are affected; no CPE identifiers were included in the supplied data. The vulnerable path additionally requires deployments that have explicitly enabled the non-default allow_tags encoder option, which is off by default, so default-configured installations are outside the affected configuration even on a vulnerable release. The fix is documented in the 4.05 change log at https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes, with further vendor-side context in the CPANSec oss-security post at https://seclists.org/oss-sec/2026/q4/706 and the VulDB entry at https://vuldb.com/vuln/437439; ENISA tracks the issue as EUVD-2026-125914 and NVD as CVE-2026-129115.

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

JSON::XS is a Perl module that implements a fast JSON encoder/decoder in C with callbacks into Perl for blessed objects. The root cause is CWE-416, use-after-free: with the non-default allow_tags option set, an object's FREEZE method is called in list context and each returned value is encoded through a saved Perl stack pointer, so when encoding a returned value re-enters Perl - via TO_JSON under convert_blessed or a further nested FREEZE - and that callback grows the stack, the stack is reallocated while encode_rv still holds the pointer to the freed block. Encoding such objects then reads freed memory, and the practical symptom is that encode can return undef with no error reported, which makes silent failure as likely as disclosure of the uncontrolled freed stack contents. No CPE strings were supplied, so affected identity rests on the module name and the version range stated in the description; the trigger details beyond the allow_tags plus callback-plus-stack-growth chain are not described in the available sources, and the AC:H rating reflects that dependency on stack-growth timing and memory layout rather than any attacker-controlled race.

Know when the next one hits your stack

  • 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

Vendor (CPANSec) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
vuln.today AI 4.8 MEDIUM

Requires non-default allow_tags plus a timing-dependent stack-growth callback (AC:H); leaks uncontrolled freed stack memory (C:L) and can yield undef/instability (A:L), no integrity impact.

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

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

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

Lifecycle Timeline

3
CVSS changed
Nov 17, 2026 - 16:22 NVD
9.1 (None) 9.1 (CRITICAL)
CVE Published
Nov 14, 2026 - 11:54 cve.org
CRITICAL 9.1
CVE Published
Nov 14, 2026 - 11:54 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A critical use-after-free vulnerability in JSON::XS versions 3.0 through 4.04 for Perl could allow attackers to read freed stack memory and cause encoding failures when the non-default allow_tags option is used. Although no active exploitation has been observed, the vulnerability's network vector and potential for data leakage require immediate management attention because Perl is widely used in backend processing and any compromise could affect data integrity.

Business Impact: High
Compensating Controls

Disable the allow_tags option, restrict network access to affected Perl applications, and monitor for suspicious encoding failures or memory anomalies. Apply vendor patch when available.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
High
JSON::XS is among the most widely used JSON libraries across the Perl ecosystem
Social Media
2
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 No
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
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.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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