NetSight
high7.5

CVE-2026-124540

JSON::XS versions before 4.05 for Perl allow stack exhaustion via nested tagged values under allow_tags in decode_tag.

Impact

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.

An attacker can exploit this over the network, without logging in, without any action by a user. If it succeeds: high risk of outages.

Affected products

ProductAffected versions
JSON::XS
before 4.05

Versions were read from the advisory text. No structured product data has been published for this record yet.

Weakness classification

References