CVE-2026-16634
Received Received - Intake

Stack Overflow in TOML::XS Perl Module

Vulnerability report for CVE-2026-16634, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-24

Last updated on: 2026-07-24

Assigner: CPANSec

Description

TOML::XS versions before 0.06 for Perl bundle an unsupported and vulnerable version of tomlc99. The tomlc99 library is no longer maintained, and has an uncontrolled recursion vulnerability publicly reported in the issue tracker. Any caller that passes untrusted TOML to from_toml risks a stack overflow from a deeply-nested document. TOML::XS version 0.06 or later uses the successor tomlc17 library.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-24
Last Modified
2026-07-24
Generated
2026-07-24
AI Q&A
2026-07-24
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-1104 The product relies on third-party components that are not actively supported or maintained by the original developer or a trusted proxy for the original developer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an uncontrolled recursion flaw in the tomlc99 TOML parser library used by TOML::XS versions before 0.06 for Perl. It allows stack overflow attacks via deeply nested TOML structures, such as dotted keys or arrays, causing crashes when parsing untrusted input.

Detection Guidance

To detect this vulnerability, inspect systems using TOML::XS versions before 0.06 or the tomlc99 library for deeply nested TOML files. Check for crashes or segmentation faults when parsing untrusted TOML input. Use tools like AddressSanitizer or GDB to identify stack overflows during parsing.

Impact Analysis

If you use TOML::XS with versions before 0.06, attackers could craft malicious TOML files with excessive nesting to trigger stack overflows. This could crash your application, leading to denial of service or potential code execution if exploited.

Compliance Impact

This vulnerability primarily causes denial of service through stack overflow when parsing deeply nested TOML structures. It does not directly impact compliance with GDPR or HIPAA as it is a technical implementation flaw rather than a data protection issue. However, if an application using this library crashes while processing user data, it could indirectly affect availability requirements under these regulations.

Mitigation Strategies

Upgrade to TOML::XS version 0.06 or later, which uses the tomlc17 library. Replace any usage of the obsolete tomlc99 library with tomlc17. Avoid parsing untrusted TOML input with vulnerable versions to prevent stack overflows.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-16634. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart