pest_meta is vulnerable to Denial of Service (DoS)
42
CVE Score
Medium
Denial of Service (DoS)
pest_meta validates pest grammars, including left-recursion detection, before they are compiled. That check misses a case: when the left side of a sequence can match without consuming input, the validator inspects only the right side. Grammars such as r = { (r | "") ~ "." }, r = { r? ~ "x" }, and r = { r{,1} ~ "x" } are therefore accepted, compile, and then overflow the native stack on the first call to parse, aborting the process with a fatal runtime error.
Upgrade the pest_meta library to the patch version.
You are affected if you use a version in the vulnerable range to compile or validate a crafted pest grammar and then call its generated parser's parse method; an untrusted grammar source can turn this into a process-aborting DoS.
2.0.0 - 2.9.2
Fixed in 2.9.3pest_meta is vulnerable to Denial of Service (DoS) in versions 2.0.0 - 2.9.2.
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.