Skip to content
#small language model Book Open access

Repairing ReDoS by Construction: Certified Algebraic Derivation for Language-Preserving Regex Transformation

Nov 2026 · Proceedings of the 2026 ACM SIGSAC Conference on Computer and Communications Security · 0 citations · 12 references

TL;DR

ReAR is presented, a certified algebraic framework that recasts ReDoS repair as a language-preserving transformation problem, and performs repair via a constructive algebraic derivation that transforms vulnerable regexes into language-equivalent repairs that are free from the modeled structural hazards.

Abstract

Regular expressions (regexes) are widely used in modern software systems, yet their backtracking-based execution exposes them to Regular Expression Denial-of-Service (ReDoS) attacks, where crafted inputs trigger super-linear runtime. While prior work has made significant progress in detecting such vulnerabilities, automatically repairing them remains fundamentally challenging: existing approaches rely on heuristic rewriting or search-based mutation, often producing patches that either break functional correctness or fail to eliminate worst-case backtracking, with no formal guarantees. We focus on ReDoS vulnerabilities induced by structural ambiguity under backtracking semantics. We present ReAR, a certified algebraic framework that recasts ReDoS repair as a language-preserving transformation problem. Our key insight is that catastrophic backtracking is not inherent to the language defined by a regex, but instead arises from its structural representation. Based on this observation, ReAR performs repair via a constructive algebraic derivation that transforms vulnerable regexes into language-equivalent repairs that are free from the modeled structural hazards. ReAR follows a three-stage pipeline: ambiguity exposure, vulnerability elimination, and structural reduction. The first stage reveals latent ambiguity and hidden backtracking paths; the second removes the modeled exponential and polynomial backtracking hazards, yielding regexes that are structurally free from the ambiguity patterns targeted by our derivation system; and the third reduces structural redundancy while preserving language and remaining free from the modeled hazards. All transformations are grounded in Kleene algebra, ensuring language equivalence (L(R') = L (R)) while enforcing a complexity safety invariant, and produce machine-checkable derivation certificates. We implement ReAR and evaluate it on 460 real-world vulnerable regexes collected from CVEs and prior benchmarks. ReAR successfully repairs 85.22% of vulnerabilities, outperforming existing state-of-the-art methods, while maintaining an average repair time of 0.86 seconds per regex. We further analyze the algebraic derivation process and find that repairs typically converge within a small number of transformation steps (median: 5), with 78.57% of regexes repaired within 10 steps, demonstrating the practical efficiency of our certified approach. Beyond effectiveness, ReAR provides verifiable proof traces, transforming regex repair from heuristic patching into a principled and auditable process.

Read PDF

Similar papers

#small language model Dataset Open access Oct 2026

Socratic guiding questions in synthetic arithmetic data: matched LoRA runs (revision v2)

Supporting data, adapters, predictions and code for the article *Low-Cost LoRA Fine-Tuning of Small Language Models for Multi-Step Arithmetic Reasoning* by Jake O'Grady, Asena Isik Gürhan, Chee Fong Ting and Effirul Ramlan (University of Galway). We generated 20,000 GSM8K-derived arithmetic problems with step-by-step s...

O'Grady, Jake, Gürhan, Asena Isik, Chee, Fong Ting et al. · 465 citations
#computer vision Open access Jun 2016

Software Development in Startup Companies: The Greenfield Startup Model

The results are packaged in the Greenfield Startup Model (GSM), which explains the priority of startups to release the product as quickly as possible, and the need to shorten time-to-market, by speeding up the development through low-precision engineering activities.

Carmine Giardino, Nicolò Paternoster, M. Unterkalmsteiner et al. · 178 citations · ⚡14
#computer vision Open access Oct 2016

Software Startups - A Research Agenda

Software startup companies develop innovative, software-intensive products within limited timeframes and with few resources, searching for sustainable and scalable business models.

M. Unterkalmsteiner, P. Abrahamsson, Xiaofeng Wang et al. · 157 citations · ⚡17
#machine learning Review Open access Oct 2016

“Failures” to be celebrated: an analysis of major pivots of software startups

This study conducts a case survey study based on the secondary data of the major pivots happened in 49 software startups, and demonstrates that customer need pivot is the most common among all pivot types.

Sohaib Shahid Bajwa, Xiaofeng Wang, Anh Nguyen-Duc et al. · 127 citations · ⚡15
#computer vision Review Open access May 2015

A survey study on major technical barriers affecting the decision to adopt cloud services

The comparison of adopter and non-adopter sample reveals three potential adoption inhibitor, security, data privacy, and portability, which underlines the importance of the technical and security perspectives for research investigating the adoption of technology.

Nattakarn Phaphoom, Xiaofeng Wang, S. Samuel et al. · 111 citations · ⚡8
#large language models Review Open access Nov 2020

Status of the WHO recommended timing and frequency of antenatal care visits in Northern Bangladesh

Objective There is dearth of information on the timeliness of antenatal care (ANC) uptake. This study aimed to determine the timely ANC uptake by a medically trained provider (MTP) as per the World Health Organization (WHO) recommendations and the country guideline. Methods Cross-sectional survey was done with 2,731 wo...

B. Sarker, Musfikur Rahman, T. Rahman et al. · 89 citations · ⚡7

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.