CVE-2026-16634

TOML::XS versions before 0.06 for Perl bundle an unsupported and vulnerable version of tomlc99

Published Jul 24, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is caused by the use of the unmaintained tomlc99 library in TOML::XS versions earlier than 0.06. tomlc99 contains an uncontrolled recursion flaw that can result in a stack overflow when parsing deeply nested TOML documents. This flaw leads to an application crash, which manifests as a denial of service. The weakness aligns with CWE‑1104 (Uncontrolled Recursion) and CWE‑1395 (Overflow Due to Recursion).

Affected Systems

The affected product is the Perl module TOML::XS from vendor FELIPE. Any installation of this module with a version earlier than 0.06 is vulnerable. Versions 0.06 and greater replace tomlc99 with tomlc17, which does not exhibit the recursion issue.

Risk and Exploitability

The EPSS score of less than 1 % indicates a very low probability of exploitation in the wild, and the vulnerability is not listed in CISA’s KEV catalog. The CVSS score of 9.8 indicates a critical severity. The flaw is activated when an application passes an untrusted, deeply nested TOML file to the from_toml routine, which is inferred from the description that the recursion problem occurs when parsing untrusted TOML. Attackers would need to supply such a file to a vulnerable application to trigger the stack overflow and provoke a denial of service. No additional prerequisites beyond the ability to provide a crafted TOML document are stated, and no mention of elevated privileges or network accessibility is provided. Consequently, the risk is limited to the scope of the vulnerable process and depends on the system’s use of this parser.

Remediation

Vendor Solution

Upgrade to TOML::XS version 0.06 or later.


Vendor Workaround

Only parse trusted TOML files.


OpenCVE Recommended Actions

  • Upgrade TOML::XS to version 0.06 or newer, replacing the vulnerable tomlc99 library with tomlc17.
  • Restrict TOML parsing to files originating from trusted sources only, preventing untrusted input from reaching the vulnerable routine.
  • If an upgrade cannot be performed immediately, implement input validation that rejects deeply nested TOML structures before they are parsed, and monitor the application for restarts or stack usage spikes.

Generated by OpenCVE AI on August 2, 2026 at 14:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Felipe
Felipe toml::xs
Vendors & Products Felipe
Felipe toml::xs
Type Values Removed Values Added
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.
Title TOML::XS versions before 0.06 for Perl bundle an unsupported and vulnerable version of tomlc99
Weaknesses CWE-1104
CWE-1395
References
Weaknesses
  • CWE-1104

    Use of Unmaintained Third Party Components

  • CWE-1395

    Dependency on Vulnerable Third-Party Component

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Jul 27, 2026, 5:15 PM
Reserved
Jul 22, 2026, 4:37 PM
Status
Deferred
Published
Jul 24, 2026, 10:16 AM
Modified
Oct 24, 2026, 1:10 PM