← Retour
CVE-2024-24762
Vulnérabilité dans fastapi (CVE-2024-24762)
Résumé
vulnérabilité dans fastapi (CVE-2024-24762). Risque d'opérations non autorisées ou de divulgation. Atténuation : mise à jour vers `0.109.1` ou plus.
Résumé IA snake-internal / snake-material-v2
Une vulnérabilité référencée **CVE-2024-24762** a été découverte dans fastapi.
Risque d'opérations non autorisées ou de divulgation. Score CVSS : ?/10.
Action : mettez à jour fastapi vers **0.109.1** ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « fastapi CVE-2024-24762 » sur le site de l'éditeur.
CVE-2024-24762 (fastapi) — CWE-1333 /
Vecteur d'attaque : distant (réseau) / non authentifié / sans interaction utilisateur
Correctif : `0.109.1` — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
❓ Quel est le problème
Une **vulnérabilité** (CWE-1333) affecte fastapi.
📍 Périmètre concerné
fastapi — .
🔥 Gravité
Gravité : ?. Risque d'opérations non autorisées ou de divulgation
🔧 Comment corriger
Mettre à jour vers **0.109.1**.
🛡️ Contournement
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
🔍 Détection
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse (7 étapes)
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
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 と同じログクエリでアラート再発が無いか継続監視。
Paquets affectés
PyPI
fastapi
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.109.1"}]}]
PyPI
python-multipart
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.7"}]}]
Références
- 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