# CVE-2024-42370: Litestar repository vulnerable to Environment Variable injection in `docs-preview.yml` workflow

- Severity: High 8.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.65%, higher than 52% of CVEs (2026-12-01)
- Published: 2024-08-09T18:29:11.205Z
- Modified: 2026-06-17T07:49:20.597Z
- Also known as: GHSA-4hq2-rpgc-r8r7
- Weaknesses: CWE-74, CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- litestar-org litestar: <= 2.10.0; up to 2.10.0
- litestar (PyPI): up to 2.10.0

## Every score

- GitHub_M: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:H`
- GitHub: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:H`

## References

- <https://github.com/litestar-org/litestar/security/advisories/GHSA-4hq2-rpgc-r8r7> (web)
- <https://github.com/litestar-org/litestar/commit/84d351e96aaa2a1338006d6e7221eded161f517b> (web)
- <https://github.com/litestar-org/litestar/actions/runs/10081936962/job/27875077668#step:1:17> (web)
- <https://github.com/litestar-org/litestar/blob/ffaf5616b19f6f0f4128209c8b49dbcb41568aa2/.github/workflows/docs-preview.yml> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-42370> (advisory)
- <https://github.com/litestar-org/litestar> (package)

## Sources

- CVE List: [CVE-2024-42370](https://www.cve.org/CVERecord?id=CVE-2024-42370), CVE Terms of Use, modified 2024-08-19
- GitHub Advisory Database: [GHSA-4hq2-rpgc-r8r7](https://github.com/advisories/GHSA-4hq2-rpgc-r8r7), CC-BY-4.0, modified 2024-10-08
- NVD: [CVE-2024-42370](https://nvd.nist.gov/vuln/detail/CVE-2024-42370), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-42370 · Whole record: https://cve.day/CVE-2024-42370.json · Rebuilt by cve.day 2026-11-25T22:58:44.178Z
