Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2025-54365— fastapi-guard patch contains bypassable RegEx

Quick assessment

Affected
rennf93 fastapi-guard
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

fastapi-guard是Renzo F个人开发者的一个FastAPI的安全库,提供中间件来控制IP、记录请求和检测渗透尝试。 fastapi-guard 3.0.1版本存在安全漏洞,该漏洞源于正则表达式长度限制不当,可能导致绕过防护机制。

AI Predicted 6.5 Difficulty: Moderate EPSS 0.73% · P51

Possible ATT&CK Techniques 1 AI

T1189 · Drive-by Compromise
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-54365

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
fastapi-guard patch contains bypassable RegEx
Source: CVE Program / CVE List V5
Vulnerability Description
fastapi-guard is a security library for FastAPI that provides middleware to control IPs, log requests, detect penetration attempts and more. In version 3.0.1, the regular expression patched to mitigate the ReDoS vulnerability by limiting the length of string fails to catch inputs that exceed this limit. This type of patch fails to detect cases in which the string representing the attributes of a <script> tag exceeds 100 characters. As a result, most of the regex patterns present in version 3.0.1 can be bypassed. This is fixed in version 3.0.2.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N/E:P
Source: CVE Program / CVE List V5
Vulnerability Type
输入验证不恰当
Source: CVE Program / CVE List V5
Vulnerability Title
fastapi-guard 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
fastapi-guard是Renzo F个人开发者的一个FastAPI的安全库,提供中间件来控制IP、记录请求和检测渗透尝试。 fastapi-guard 3.0.1版本存在安全漏洞,该漏洞源于正则表达式长度限制不当,可能导致绕过防护机制。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
rennf93 fastapi-guard >= 3.0.1, < 3.0.2 -

II. Public POCs for CVE-2025-54365

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-54365

登录查看更多情报信息。

IV. Related Vulnerabilities

V. Comments for CVE-2025-54365

No comments yet


Leave a comment