Security Resilience

CVE-2024-40627

Published
15 July 2024
Modified
15 April 2026
CVSS Score v3.1 5.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
EPSS Score 0.0056 48th percentile
Risk Priority 47 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-40627 is a medium-severity Observable Response Discrepancy (CWE-204) vulnerability. Its CVSS base score is 5.8 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Network Security Appliances (T1590.006); ranked at the 48th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to IA-6 (Authentication Feedback) and SI-11 (Error Handling) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1590.006 Network Security Appliances Reconnaissance
Adversaries may gather information about the victim's network security appliances that can be used during targeting.
T1595 Active Scanning Reconnaissance
Adversaries may execute active reconnaissance scans to gather information that can be used during targeting.
T1087 Account Discovery Discovery
Adversaries may attempt to get a listing of valid accounts, usernames, or email addresses on a system or within a compromised environment.
T1589.002 Email Addresses Reconnaissance
Adversaries may gather email addresses that can be used during targeting.
T1595.003 Wordlist Scanning Reconnaissance
Adversaries may iteratively probe infrastructure using brute-forcing and crawling techniques.
T1046 Network Service Discovery Discovery
Adversaries may attempt to get a listing of services running on remote hosts and local network infrastructure devices, including those that may be vulnerable to remote software exploitation.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-60007Shared CWE-204
CVE-2025-65899Shared CWE-204
CVE-2025-62181Shared CWE-204
CVE-2024-23574Shared CWE-204
CVE-2025-54834Shared CWE-204
CVE-2026-69519Shared CWE-204
CVE-2024-39211Shared CWE-204
CVE-2025-5485Shared CWE-204
CVE-2018-25350Shared CWE-204
CVE-2026-28358Shared CWE-204

Affected Assets

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V13.4.5

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Obscuring authentication feedback directly stops one common source of observable response discrepancies.

Error handling explicitly requires messages that avoid revealing exploitable internal information.

Information flow enforcement can block responses that would otherwise disclose internal state to unauthorized parties.

Boundary protection monitors and filters outbound responses that could leak internal state.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 full match
blocks

Secure SDLC practices directly prevent introduction of inconsistent response behavior that leaks internal state.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can detect observable response discrepancies before deployment.

prevents

Training developers about information disclosure through error messages reduces instances of CWE-204, since the weakness is often a knowledge gap (developer doesn't realize differing responses leak validity), but it is a specific implementation detail requiring careful coding practice that training alone does not guarantee, similar to the A.6.3 -> CWE-598 anchor.

prevents

Secure coding standards explicitly require uniform error handling to prevent information leakage.

prevents

A.8.30 carries its effect through the secure-development practices its contract requires of the supplier (8.25 to 8.29), so it reduces ordinary software CWEs in delivered code the way those practices do; CWE-204 is a regular code-level weakness (different responses revealing internal state) that secure coding and testing practices partially prevent, and A.8.30 sits at its declared ceiling of `partial` on this verb.

blocks

Strong authentication reduces information leakage from authentication responses.

References