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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-40627— OpaMiddleware does not filter HTTP OPTIONS requests

Quick assessment

Affected
busykoala fastapi-opa
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.

Open Policy Agent是一个开源的通用策略引擎,可在整个堆栈中实现统一的、上下文感知的策略实施。 Open Policy Agent middleware for FastAPI存在安全漏洞,该漏洞源于在缺少身份验证的情况下,OpaMiddleware 依然允许 HTTP OPTIONS 请求。

CVSS 5.8 · Medium EPSS 0.56% · P47

Possible ATT&CK Techniques 1 AI

T1083 · File and Directory Discovery
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-40627

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
OpaMiddleware does not filter HTTP OPTIONS requests
Source: CVE Program / CVE List V5
Vulnerability Description
Fastapi OPA is an opensource fastapi middleware which includes auth flow. HTTP `OPTIONS` requests are always allowed by `OpaMiddleware`, even when they lack authentication, and are passed through directly to the application. `OpaMiddleware` allows all HTTP `OPTIONS` requests without evaluating it against any policy. If an application provides different responses to HTTP `OPTIONS` requests based on an entity existing (such as to indicate whether an entity is writable on a system level), an unauthenticated attacker could discover which entities exist within an application. This issue has been addressed in release version 2.0.1. All users are advised to upgrade. There are no known workarounds for this vulnerability.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
响应差异性信息暴露
Source: CVE Program / CVE List V5
Vulnerability Title
Open Policy Agent 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Open Policy Agent是一个开源的通用策略引擎,可在整个堆栈中实现统一的、上下文感知的策略实施。 Open Policy Agent middleware for FastAPI存在安全漏洞,该漏洞源于在缺少身份验证的情况下,OpaMiddleware 依然允许 HTTP OPTIONS 请求。
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
busykoala fastapi-opa < 2.0.1 -

II. Public POCs for CVE-2024-40627

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

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-40627

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-40627 (1)

Vendor Advisories for CVE-2024-40627 (1)

Other References for CVE-2024-40627 (1)

IV. Related Vulnerabilities