Vulnerability · Published Aug 9, 2024 · Assigned by GitHub_M

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

High 8.3

In plain English

A high-severity OS command injection in litestar from litestar-org. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 51% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code.

Severity (CVSS 3.1)8.3High
Exploit odds (30 days)0.7%top 48.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIlitestarno fix listedGHSA-4hq2-rpgc-r8r7

Affected products (as reported)

VendorProductVersions
litestar-org litestar <= 2.10.0

Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:H

References