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.
Published: 2026-07-24
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

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 yet.

History

Mon, 27 Jul 2026 20:30:00 +0000

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'}


Mon, 27 Jul 2026 13:15:00 +0000

Type Values Removed Values Added
First Time appeared Felipe
Felipe toml::xs
Vendors & Products Felipe
Felipe toml::xs

Fri, 24 Jul 2026 18:30:00 +0000

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

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-07-27T17:15:54.188Z

Reserved: 2026-07-22T16:37:55.533Z

Link: CVE-2026-16634

cve-icon Vulnrichment

Updated: 2026-07-24T13:32:08.478Z

cve-icon NVD

Status : Deferred

Published: 2026-07-24T10:16:31.693

Modified: 2026-07-27T18:16:52.970

Link: CVE-2026-16634

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T14:45:17Z

Weaknesses
  • CWE-1104

    Use of Unmaintained Third Party Components

  • CWE-1395

    Dependency on Vulnerable Third-Party Component