{"answers":{"affected":"2 open source packages ship an affected version, including litestar.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-42370 exists.","fix":"No fix has been published for CVE-2024-42370 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-42370 is a high-severity code injection vulnerability in litestar-org litestar, published on 9 Aug 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-42370 and fix it if it is affected.\n\nWhat it is: CVE-2024-42370 is a high-severity code injection vulnerability in litestar-org litestar, published on 9 Aug 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-42370 exists.\n\nAffected packages and fixed versions:\n- litestar (PyPI): affected all versions up to 2.10.0; no fix listed\n- litestar (PyPI): affected all versions up to 2.10.0; 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-42370/ (Markdown: https://insights.sbomify.com/CVE-2024-42370/index.md)","id":"CVE-2024-42370","markdown":"https://insights.sbomify.com/CVE-2024-42370/index.md","name":"CVE-2024-42370","record":{"aliases":["GHSA-4hq2-rpgc-r8r7"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Litestar ASGI framework","requires_auth":"none","summary":"Attackers can inject environment variables in the docs-preview workflow to exfiltrate secrets and manipulate repository content.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. In versions 2.10.0 and prior, Litestar's `docs-preview.yml` workflow is vulnerable to Environment Variable injection which may lead to secret exfiltration and repository manipulation. This issue grants a malicious actor the permission to write issues, read metadata, and write pull requests. In addition, the `DOCS_PREVIEW_DEPLOY_TOKEN` is exposed to the attacker. Commit 84d351e96aaa2a1338006d6e7221eded161f517b contains a fix for this issue.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2026-09-03","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-09-03T20:36:05Z","kind":"github_poc","ref":"https://github.com/pvharmo2/gha-lab-ba8e0c4217","stars":0,"title":"Authorized security-research lab: reproduction of CVE-2024-42370 / GHSA-4hq2-rpgc-r8r7 (env injection in docs-preview.yml) — snapshot of litestar-org/litestar@18d84d84"}],"tier":"weaponised"},"has_fix":false,"headline":"Litestar repository vulnerable to Environment Variable injection in `docs-preview.yml` workflow","id":"CVE-2024-42370","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":2,"n_references":4,"next":{"headline":"Multiple vulnerabilities in SAP NetWeaver Application Server for ABAP and ABAP Platform","id":"CVE-2024-42371"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["2.10.0"],"package":"litestar","purl":null,"source":"GHSA-4hq2-rpgc-r8r7"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["2.10.0"],"package":"litestar","purl":"pkg:pypi/litestar","source":"GHSA-4hq2-rpgc-r8r7"}],"prev":{"headline":"A room with itself as a its predecessor will freeze matrix-js-sdk","id":"CVE-2024-42369"},"products":["litestar"],"published":"2024-08-09","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-19","vendors":["litestar-org"]},"summary":"Attackers can inject environment variables in the docs-preview workflow to exfiltrate secrets and manipulate repository content.","url":"https://insights.sbomify.com/CVE-2024-42370/"}