← Back
CVE-2024-24762
Vulnerability in fastapi (CVE-2024-24762)
Summary
vulnerability in fastapi (CVE-2024-24762). Risk of unauthorized operations or information disclosure. Mitigation: upgrade to `0.109.1` or later.
AI summary snake-internal / snake-material-v2
A vulnerability tracked as **CVE-2024-24762** has been found in fastapi.
Risk of unauthorized operations or information disclosure. CVSS score: ?/10.
What to do: upgrade fastapi to **0.109.1** or later.
If unsure, ask your IT team or search "fastapi CVE-2024-24762" on the vendor's site.
CVE-2024-24762 (fastapi) — CWE-1333 /
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Patched: `0.109.1` — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
❓ What is the problem
**A vulnerability** (CWE-1333) exists in fastapi.
📍 Affected scope
fastapi — .
🔥 Severity
Severity: ?. Risk of unauthorized operations or information disclosure
🔧 How to fix
Update to **0.109.1**.
🛡️ Workaround
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
🔍 Detection
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run `grep -r 'fastapi' .` against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response Actions (7 steps)
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'fastapi' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で `fastapi` を grep し、稼働しているサービス・バージョンを把握する。
-
6Apply patch patch
Upgrade fastapi to 0.109.1ステージング環境で 0.109.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
PyPI
fastapi
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.109.1"}]}]
PyPI
python-multipart
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.7"}]}]
References
- advisory https://nvd.nist.gov/vuln/detail/CVE-2024-24762
- advisory https://github.com/advisories/GHSA-2jv5-9r88-3w3p
- package https://github.com/Kludex/python-multipart
- package https://github.com/tiangolo/fastapi
- package https://pypi.org/project/python-multipart
- patch https://github.com/Kludex/python-multipart/commit/20f0ef6b4e4caf7d69a667c54dff57fe467109a4
- web https://github.com/tiangolo/fastapi/security/advisories/GHSA-qf9m-vfgh-m389
- web https://github.com/tiangolo/fastapi/commit/9d34ad0ee8a0dfbbcce06f76c2d5d851085024fc
- web https://github.com/tiangolo/fastapi/releases/tag/0.109.1
- web https://github.com/Kludex/python-multipart/security/advisories/GHSA-2jv5-9r88-3w3p
- web https://github.com/github/advisory-database/pull/4829
- web https://github.com/encode/starlette/commit/13e5c26a27f4903924624736abd6131b2da80cc5
- web https://github.com/andrew-d/python-multipart/blob/d3d16dae4b061c34fe9d3c9081d9800c49fc1f7a/multipart/multipart.py#L72-L74
- web https://github.com/pypa/advisory-database/tree/main/vulns/fastapi/PYSEC-2024-38.yaml
- web https://github.com/encode/starlette/security/advisories/GHSA-93gm-qmq6-w238