Software Securityhome
Fix a findingSearch
Glossary

ReDoS

Regular expression denial of service

A pattern with nested or overlapping quantifiers takes exponential or polynomial time on crafted input in a backtracking regex engine. Use a linear-time engine such as RE2 or Rust’s regex, bound the input length, or rewrite the pattern.

Also called
catastrophic backtracking
Defined in
MITRE CWE-1333

Covered in

Find your next answer

Type to search. Search runs in your browser.

Searches run in your browser, but the host can infer them from the index files they load. The address shows your search so you can bookmark or share it.