Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
WS-2026-0062
Published:July 07, 2026
Updated:September 08, 2026
Unbounded mutual recursion in the TOML parser of github.com/pelletier/go-toml/v2. "unstable.Parser.parseVal" dispatches nested arrays and inline tables to "parseValArray" and "parseInlineTable", which loop back into "parseVal" with no depth limit. A TOML document with deeply nested arrays or inline tables supplied to "toml.Unmarshal" or "toml.Decoder.Decode" exhausts the goroutine stack and triggers "fatal error: stack overflow", a Go runtime fatal that terminates the process and cannot be recovered. Fixed in v2.4.3, which bounds nesting at 10000 levels. The same unbounded recursion is present from v2.0.0 and in the v2.0.0 alpha and beta prereleases.
Affected Packages
https://github.com/pelletier/go-toml.git (GITHUB):
Affected version(s) >=v2.0.0 <v2.4.3
Fix Suggestion:
Update to version v2.4.3
github.com/pelletier/go-toml/v2 (GO):
Affected version(s) >=v2.0.0 <v2.4.3
Fix Suggestion:
Update to version v2.4.3
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Uncontrolled Recursion