CVE-2026-124540

High

Description

JSON::XS versions before 4.05 for Perl allow stack exhaustion via nested tagged values under allow_tags in decode_tag. With allow_tags, "(" starts a tagged value. Its tag and value are decoded recursively, and each can start another tagged value. Unlike arrays and objects, this nesting is not counted against max_depth. A run of "(" bytes exhausts the C stack and triggers an uncatchable segmentation fault regardless of max_depth.

SeverityHigh
CVSS7.5
Exploit probability—
ProductJson-xs
PublishedNov 14, 2026
First seenNov 14, 2026
Weakness typeCWE-674CWE-674

How to fix

Update
  • JSON-XS4.05 or later

Affected products

ProductAffected versionsFixed in
JSON-XSv < 4.054.05

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-124540 · Json-xs · Vulnerabilities · Dark Radar