Critical UNKNOWN READ Vulnerability in mrab-regex Package

mrab-regex Updated 30 Sep 2026

Summary

28/07/2026
MEDIUM
Yes i
Medium
Not published

OSV-2026-1072: UNKNOWN READ in _regex.cpython-311-x86_64-linux-gnu.so. Affects mrab-regex versions >= 07dfa3b6b2d5a30919ac8564c1542a4487d40f8e, < 0e8cb0596ba6572c66e5d153a1d7c901b381e15e. Fixed in 0e8cb0596ba6572c66e5d153a1d7c901b381e15e. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The mrab-regex package is a Python library that provides an alternative implementation of regular expressions, offering enhanced features and performance compared to the built-in re module. It is widely used in various applications for string manipulation and pattern matching. However, the package has been identified to have a critical vulnerability that could lead to unexpected behavior and potential data exposure.

Vulnerability Detail

The vulnerability is classified as an UNKNOWN READ, which indicates that the software may attempt to read memory that it should not access. This can lead to crashes or unintended data leaks, posing a risk to applications that rely on the mrab-regex package. The issue was reported through OSS-Fuzz, highlighting its severity and the need for immediate attention.

How To Fix

Minimum fixed version

0e8cb0596ba6572c66e5d153a1d7c901b381e15e

This is the first release that contains the fix.

pip install --upgrade "mrab-regex==0e8cb0596ba6572c66e5d153a1d7c901b381e15e"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If you are unable to update the package immediately, consider using an alternative regex library or implementing a temporary solution that avoids the use of mrab-regex until the update can be applied.

Conclusion

The mrab-regex package has a critical UNKNOWN READ vulnerability that can lead to crashes and potential data leaks. It is essential to update to the patched version to mitigate risks. Users should also consider using Vulert to monitor for vulnerabilities in real-time.

See every vulnerability recorded for mrab-regex →

Share this vulnerability

FAQ

mrab-regex is a Python library that provides an alternative implementation of regular expressions, offering additional features and improved performance.

UNKNOWN READ indicates that the software may attempt to read from an invalid memory location, which can lead to crashes or data exposure.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If an immediate update is not possible, consider using an alternative regex library or implementing a temporary workaround to avoid using mrab-regex.

Related vulnerabilities

Recent vulnerabilities recorded for mrab-regex.

How To Fix

Minimum fixed version

0e8cb0596ba6572c66e5d153a1d7c901b381e15e

This is the first release that contains the fix.

pip install --upgrade "mrab-regex==0e8cb0596ba6572c66e5d153a1d7c901b381e15e"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback