PT-2024-28950 · Unknown · Fastapi Opa

·

CVE-2024-40627

·

Published

2024-07-15

·

Updated

2026-07-07

CVSS v4.0

6.9

Medium

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions Fastapi OPA versions prior to 2.0.1
Description The issue allows unauthenticated attackers to discover which entities exist within an application by sending HTTP OPTIONS requests. This is because OpaMiddleware allows all HTTP OPTIONS requests without evaluating them against any policy. If an application provides different responses to HTTP OPTIONS requests based on an entity existing, an attacker could exploit this to gain information about the application's internal state.
Recommendations For versions prior to 2.0.1, upgrade to release version 2.0.1 to address the issue. As a temporary workaround, consider restricting access to the read item options function or modifying the application to not provide different responses to HTTP OPTIONS requests based on entity existence. Avoid using the Allow header in the read item options function to indicate entity writability until the issue is resolved.

Exploit

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-40627
GHSA-5F5C-8RVC-J8WF
PYSEC-2026-1361

Affected Products

Fastapi Opa