Lune

USENIX Security2026Top-tier venue

Regular Expression Denial of Service Induced by Backreferences

Yichen Liu, Berk Çakar, Aman Agrawal, Minseok Seo, James C. Davis, Dongyoon Lee

Abstract

This paper presents the a systematic and theoretical study of denial-of-service vulnerabilities in Regular Expressions with Backreferences (REwB). We introduce the Two-Phase Memory Automaton (2PMFA), an automaton model that precisely captures REwB semantics. Using this model, we derive necessary conditions under which backreferences induce super-linear backtracking runtime, even when sink ambiguity is linear, a regime where existing detectors report no vulnerability. Based on these conditions, we identify three vulnerability patterns and validate them in practice. Using the Snort intrusion detection ruleset, our evaluation identifies 48 previously unknown REwB vulnerabilities with quadratic or worse runtime. We further demonstrate practical exploits against Snort, including slowing rule evaluation by 0.6-1.2 seconds and bypassing alerts by triggering PCRE's matching limit.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Revealer: Detecting and Exploiting Regular Expression Denial-of-Service Vulnerabilities cites Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
  • Revealer: Detecting and Exploiting Regular Expression Denial-of-Service Vulnerabilities cites SlowFuzz: Automated Domain-Independent Detection of Algorithmic Complexity Vulnerabilities
  • Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers cites SlowFuzz: Automated Domain-Independent Detection of Algorithmic Complexity Vulnerabilities
  • ReDoSHunter: A Combined Static and Dynamic Approach for Regular Expression DoS Detection cites Using Selective Memoization to Defeat Regular Expression Denial of Service (ReDoS)
  • ReDoSHunter: A Combined Static and Dynamic Approach for Regular Expression DoS Detection cites Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web Servers
  • ReDoSHunter: A Combined Static and Dynamic Approach for Regular Expression DoS Detection cites SlowFuzz: Automated Domain-Independent Detection of Algorithmic Complexity Vulnerabilities
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on9

  1. SlowFuzz: Automated Domain-Independent Detection of Algorithmic Complexity VulnerabilitiesTheofilos Petsios, Jason Zhao, Angelos D. Keromytis, Suman JanaCCS 2017 · 214 citations
  2. Freezing the Web: A Study of ReDoS Vulnerabilities in JavaScript-based Web ServersCristian-Alexandru Staicu, Michael PradelUSENIX Security 2018 · 125 citations
  3. Using Selective Memoization to Defeat Regular Expression Denial of Service (ReDoS)James C. Davis, Francisco Servant, Dongyoon LeeS&P 2021 · 43 citations
  4. Revealer: Detecting and Exploiting Regular Expression Denial-of-Service VulnerabilitiesYinxi Liu, Mingxue Zhang, Wei MengS&P 2021 · 28 citations
  5. ReDoSHunter: A Combined Static and Dynamic Approach for Regular Expression DoS DetectionYeting Li, Zixuan Chen, Jialun Cao, Zhiwu Xu et al.USENIX Security 2021 · 20 citations

Related papers

  1. Counting in Regexes Considered Harmful: Exposing ReDoS Vulnerability of Nonbacktracking MatchersLenka Turonová, Lukás Holík, Ivan Homoliak, Ondrej Lengál et al.USENIX Security 2022
  2. Repairing DoS Vulnerability of Real-World RegexesNariyoshi Chida, Tachio TerauchiS&P 2022 · 15 citations
  3. Towards an Effective Method of ReDoS Detection for Non-backtracking EnginesWeihao Su, Hong Huang, Rongchen Li, Haiming Chen et al.USENIX Security 2024 · 4 citations
  4. Regulator: Dynamic Analysis to Detect ReDoSRobert McLaughlin, Fabio Pagani, Noah Spahn, Christopher Kruegel et al.USENIX Security 2022
  5. Effective ReDoS Detection by Principled Vulnerability Modeling and Exploit GenerationXinyi Wang, Cen Zhang, Yeting Li, Zhiwu Xu et al.S&P 2023
Dusk over the sea between two cliffs drawn in fine vertical lines