Intel

AIKIDO-2026-447516

regex is vulnerable to Out-of-bounds Write

Out-of-bounds Write Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Yesterday

56

Medium Risk

This Affects:

PYTHONregex
2015.10.01 - 2026.7.19
Fixed in 2026.8.31
Are you affected? Scan for Free

TL;DR

The regex module contains memory-safety flaws in its pattern compiler and native matching engine that are reachable through specially crafted regular expressions. Compiling a conditional pattern whose emptiness is misjudged can trigger a heap out-of-bounds write while the compiled program is built. Fuzzy matching can also reuse a stale required-string cache position after the search slice is narrowed, and basic_match() can let the scan boundary move past the intended slice limits, causing out-of-bounds access. The fix corrects the emptiness check, invalidates the cached required-string position when the slice changes, and clamps the scan boundaries.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application compiles or matches regular expressions derived from untrusted input.

Background info

regex is vulnerable to Out-of-bounds Write in versions 2015.10.01 - 2026.7.19.

How to fix this

Upgrade the regex library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform