UBUNTU-CVE-2024-40627

Source
https://ubuntu.com/security/CVE-2024-40627
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-40627.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2024-40627
Related
Published
2024-07-15T20:15:00Z
Modified
2025-01-13T10:25:38Z
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:22.04:LTS / fastapi

Package

Name
fastapi
Purl
pkg:deb/ubuntu/fastapi@0.63.0-2ubuntu0.1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.63.0-2
0.63.0-2ubuntu0.1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / fastapi

Package

Name
fastapi
Purl
pkg:deb/ubuntu/fastapi@0.110.3-0ubuntu2?arch=source&distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.101.0-3
0.110.0-1
0.110.3-0ubuntu1
0.110.3-0ubuntu2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / fastapi

Package

Name
fastapi
Purl
pkg:deb/ubuntu/fastapi@0.101.0-3?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.101.0-1
0.101.0-2
0.101.0-3

Ecosystem specific

{
    "ubuntu_priority": "medium"
}