toml-rb is vulnerable to Regular Expression Denial of Service (ReDoS)
75
CVE Score
High
Regular Expression Denial of Service (ReDoS)
TomlRB.parse matches basic and literal TOML strings with a regex where an optional backslash lets the engine split one input many ways, and matches comments by testing for a line break at every position. An unterminated basic string with many backslashes, or a comment with many spaces, drives catastrophic or quadratic backtracking during parsing. A small untrusted TOML document can occupy the parser for minutes of CPU time, denying service to the application that calls TomlRB.parse. The patch rewrites the string and comment grammar rules to match in linear time.
Upgrade the toml-rb library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you parse TOML documents from an untrusted or externally influenced source.
0.0.1 - 4.2.1
Fixed in 4.2.2toml-rb is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 0.0.1 - 4.2.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.