Bug 2528569 (CVE-2026-85730)

Summary: CVE-2026-85730 smol-toml: smol-toml: Denial of Service via malformed TOML documents
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: abarbaro, alizardo, cdrage, dschmidt, jchui, jhe, jlanda, kaycoth, kshier, ktsao, nboldt, oaljalju, psrna, rhel-process-autobot, rushinde, simaishi, stcannon, teagle, watson-tool-maintainers, yguenane
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in smol-toml, a TOML parser and serializer. A remote attacker could exploit an infinite loop in the `parse()` function by providing a specially crafted TOML document. This occurs when a value within an array or inline table is followed by a comment without a trailing newline. Successful exploitation leads to a Denial of Service (DoS), causing the parser to hang indefinitely and consume service processing capacity.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2531864, 2531865, 2531866, 2531867, 2531877    
Bug Blocks:    

Description OSIDB Bzimport 2026-09-04 15:35:04 UTC
smol-toml is a small, fast, and correct TOML parser and serializer. Prior to 1.7.1, parse() can enter an infinite loop when a value inside an array or inline table is followed by a comment with no trailing newline. In src/util.ts, skipUntil() calls indexOfNewline(), receives -1 at the end of input, and resets the cursor to the beginning of the string instead of leaving the structure scan. The parser then hangs indefinitely and can consume a service's processing capacity when an application parses attacker-controlled TOML. This issue is fixed in version 1.7.1.