SecurityContext

CVE-2024-42370: Litestar - Environment Variable Injection

  • Cve: CVE-2024-42370
  • Name: Litestar - Environment Variable Injection
  • 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.
  • Impact: Attackers can exfiltrate secrets, manipulate repository issues, pull requests, and access the `DOCS_PREVIEW_DEPLOY_TOKEN`.
  • Remediation: Update to version 2.10.1 or later where the issue is fixed.
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:H
  • Epss score: 0.00651
  • Epss percentile: 0.52168
  • Assignee: [email protected]
  • Published at: 2024-08-12T13:38:34Z
  • Age in days: 834
  • Modified at: 2026-06-17T07:49:20Z
  • Public exploits total: 1
  • References total: 4
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-42370
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
CWE-78Improper Neutralization of Special Elements used in an OS Command

Public exploits

UrlSourceAdded date
https://github.com/pvharmo2/gha-lab-ba8e0c4217poc-in-github2026-09-03

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/litestar-org/litestar/actions/runs/10081936962/job/27875077668#step:1:17
https://github.com/litestar-org/litestar/blob/ffaf5616b19f6f0f4128209c8b49dbcb41568aa2/.github/workflows/docs-preview.yml
https://github.com/litestar-org/litestar/commit/84d351e96aaa2a1338006d6e7221eded161f517b
https://github.com/litestar-org/litestar/security/advisories/GHSA-4hq2-rpgc-r8r7

Products

ProductAffectedPlatform boundSourcesUrl
litestar:litestar<= 2.10.0nocna_alias_text/v1/products/litestar/litestar
litestar-org:litestar<= 2.10.0noadp_cpes/v1/products/litestar-org/litestar

Projects

RepositoryLink kindsIndexedUrl
litestar-org/litestarcommit, security_advisoryyes/v1/repositories/litestar-org/litestar

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-09-03
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts