{"id":"CVE-2024-42370","state":"PUBLISHED","title":"Litestar repository vulnerable to Environment Variable injection in `docs-preview.yml` workflow","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.","publishedAt":"2024-08-09T18:29:11.205Z","updatedAt":"2024-08-19T21:05:05.131Z","severity":{"score":8.3,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["litestar-org litestar"],"affected":[{"vendor":"litestar-org","product":"litestar","versions":[{"version":"<= 2.10.0","status":"affected"}]}],"references":["https://github.com/litestar-org/litestar/security/advisories/GHSA-4hq2-rpgc-r8r7","https://github.com/litestar-org/litestar/commit/84d351e96aaa2a1338006d6e7221eded161f517b","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"],"weaknesses":["CWE-78"],"ingestedAt":"2026-10-29T20:07:47.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/42xxx/CVE-2024-42370.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-42370","state":"PUBLISHED","datePublished":"2024-08-09T18:29:11.205Z","dateUpdated":"2024-08-19T21:05:05.131Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-07-30T14:01:33.923Z"},"containers":{"cna":{"title":"Litestar repository vulnerable to Environment Variable injection in `docs-preview.yml` workflow","descriptions":[{"lang":"en","value":"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":[{"vendor":"litestar-org","product":"litestar","versions":[{"version":"<= 2.10.0","status":"affected"}]}],"references":[{"url":"https://github.com/litestar-org/litestar/security/advisories/GHSA-4hq2-rpgc-r8r7","name":"https://github.com/litestar-org/litestar/security/advisories/GHSA-4hq2-rpgc-r8r7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/litestar-org/litestar/commit/84d351e96aaa2a1338006d6e7221eded161f517b","name":"https://github.com/litestar-org/litestar/commit/84d351e96aaa2a1338006d6e7221eded161f517b","tags":["x_refsource_MISC"]},{"url":"https://github.com/litestar-org/litestar/actions/runs/10081936962/job/27875077668#step:1:17","name":"https://github.com/litestar-org/litestar/actions/runs/10081936962/job/27875077668#step:1:17","tags":["x_refsource_MISC"]},{"url":"https://github.com/litestar-org/litestar/blob/ffaf5616b19f6f0f4128209c8b49dbcb41568aa2/.github/workflows/docs-preview.yml","name":"https://github.com/litestar-org/litestar/blob/ffaf5616b19f6f0f4128209c8b49dbcb41568aa2/.github/workflows/docs-preview.yml","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.3,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-78","lang":"en","description":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-08-19T21:05:05.131Z"},"source":{"advisory":"GHSA-4hq2-rpgc-r8r7","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"litestar-org","product":"litestar","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThanOrEqual":"2.10.0","versionType":"custom"}],"cpes":["cpe:2.3:a:litestar-org:litestar:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-08-12T15:02:38.424647Z","id":"CVE-2024-42370","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-12T17:33:06.569Z"}}]}}}