{"answers":{"affected":"4 open source packages ship an affected version, including pytorch-lightning and lightning. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-8020 exists.","fix":"No fix has been published for CVE-2024-8020 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-8020 is a high-severity denial of service vulnerability in lightning-ai/pytorch-lightning, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-8020 and fix it if it is affected.\n\nWhat it is: CVE-2024-8020 is a high-severity denial of service vulnerability in lightning-ai/pytorch-lightning, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-8020 exists.\n\nAffected packages and fixed versions:\n- pytorch-lightning (PyPI): affected all versions up to 2.3.2; no fix listed\n- pytorch-lightning (PyPI): affected all versions up to 2.3.2; no fix listed\n- pytorch-lightning (PyPI): affected all versions up to 2.3.2; no fix listed\n- lightning (PyPI): affected all versions up to 2.3.2; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-8020/ (Markdown: https://insights.sbomify.com/CVE-2024-8020/index.md)","id":"CVE-2024-8020","markdown":"https://insights.sbomify.com/CVE-2024-8020/index.md","name":"CVE-2024-8020","record":{"aliases":["GHSA-98fp-7v67-4v3q","PYSEC-2026-1857","PYSEC-2026-3971"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"PyTorch Lightning library","requires_auth":"none","summary":"An attacker can cause a denial of service by sending unexpected POST requests to the LightningApp state endpoint, crashing the server.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"pytorch_lightning","vendor":"lightningai"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.0"},"cwes":[{"id":"CWE-248","name":"Uncaught Exception"}],"description":"A vulnerability in lightning-ai/pytorch-lightning version 2.3.2 allows an attacker to cause a denial of service by sending an unexpected POST request to the `/api/v1/state` endpoint of `LightningApp`. This issue occurs due to improper handling of unexpected state values, which results in the server shutting down.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Denial of Service in lightning-ai/pytorch-lightning","id":"CVE-2024-8020","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":4,"n_references":1,"next":{"headline":"Open Redirect in gradio-app/gradio","id":"CVE-2024-8021"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["2.3.2"],"package":"lightning","purl":"pkg:pypi/lightning","source":"PYSEC-2026-3971"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["2.3.2"],"package":"pytorch-lightning","purl":null,"source":"GHSA-98fp-7v67-4v3q"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["2.3.2"],"package":"pytorch-lightning","purl":"pkg:pypi/pytorch-lightning","source":"GHSA-98fp-7v67-4v3q"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["2.3.2"],"package":"pytorch-lightning","purl":"pkg:pypi/pytorch-lightning","source":"PYSEC-2026-1857"}],"prev":{"headline":"Arbitrary File Write/Overwrite in lightning-ai/pytorch-lightning","id":"CVE-2024-8019"},"products":["lightning-ai/pytorch-lightning"],"published":"2025-03-20","related":[{"cvss_score":9.8,"headline":"RCE via Property/Class Pollution in lightning-ai/pytorch-lightning","id":"CVE-2024-5452","kev_date_added":null,"published":"2024-06-06"},{"cvss_score":9.3,"headline":"Compromise of PyTorch Lightning PyPi Package Versions","id":"CVE-2026-44484","kev_date_added":null,"published":"2026-05-14"},{"cvss_score":9.1,"headline":"Arbitrary File Write/Overwrite in lightning-ai/pytorch-lightning","id":"CVE-2024-8019","kev_date_added":null,"published":"2025-03-20"},{"cvss_score":9.1,"headline":"Arbitrary File Write via /v1/runs API endpoint in lightning-ai/pytorch-lightning","id":"CVE-2024-5980","kev_date_added":null,"published":"2024-06-27"},{"cvss_score":8.8,"headline":"PyTorch Lightning load_from_checkpoint has an insecure checkpoint deserialization","id":"CVE-2026-31221","kev_date_added":null,"published":"2026-05-12"},{"cvss_score":8.4,"headline":"PyTorch Lightning Arbitrary Code Execution via _instantiator Hyperparameter","id":"CVE-2026-58659","kev_date_added":null,"published":"2026-07-15"},{"cvss_score":7.8,"headline":"Deserialization of Untrusted Data in pytorchlightning/pytorch-lightning","id":"CVE-2021-4118","kev_date_added":null,"published":"2021-12-23"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-10-15","vendors":["lightning-ai"]},"summary":"An attacker can cause a denial of service by sending unexpected POST requests to the LightningApp state endpoint, crashing the server.","url":"https://insights.sbomify.com/CVE-2024-8020/"}