Intel

AIKIDO-2025-10773

peewee is vulnerable to Inefficient Regular Expression Complexity

Inefficient Regular Expression Complexity Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Nov 6, 2025

61

Medium Risk

This Affects:

PYTHONpeewee
3.13.2 - 3.18.2
Fixed in 3.18.3
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to a Regular Expression Denial of Service (ReDoS) due to the presence of nested repetition in the FTS5 query validation regex. This regex includes nested quantifiers that can lead to exponential backtracking when processing specific inputs, which can significantly degrade performance. An attacker can exploit this vulnerability by creating and submitting a malicious query string that triggers excessive backtracking in the regex engine. It can result in high CPU consumption and potential service unavailability for other users.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

peewee is vulnerable to Inefficient Regular Expression Complexity in versions 3.13.2 - 3.18.2.

How to fix this

Upgrade the peewee library to the patch version.