# CVE-2026-123368: compose-lint: .env read through a symlink outside the project can expose the CI job's environment

- Severity: Low 2.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- 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.58%, higher than 49% of CVEs (2026-12-01)
- Published: 2026-11-09T17:25:15.559Z
- Modified: 2026-11-13T13:17:56.717Z
- Also known as: GHSA-6wcv-rj3c-mhv3
- Weaknesses: CWE-22, CWE-59
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

compose-lint is a Docker Compose security linter that identifies dangerous misconfigurations before deployment. From 0.22.0 until 0.31.0, compose-lint follows a sibling .env symbolic link outside the project without applying its normal containment check. From 0.28.0, the same gap also affects an include project_directory link outside the project. A pull request can reference a variable from the linked file, causing substitution to place runner file or process-environment data into finding messages written to logs, JSON, SARIF artifacts, and Code Scanning alerts. Reading /proc/self/environ can expose the remainder of the linter process environment because NUL-separated entries are treated as one value, although disclosure requires a workflow that processes untrusted changes with useful environment data and GitHub normally withholds secrets from fork pull requests. The pass or fail result is not changed. This issue is fixed in version 0.31.0.

(As written by CVE List.)

## Affected

- tmatens compose-lint: >= 0.22.0, < 0.31.0
- compose-lint (PyPI): from 0.22.0 before 0.31.0
- tmatens/compose-lint (GitHub Actions): from 0.22.0 before 0.31.0; from 811ef6b379dbc78d048fcedaf976205705d4a7c3 before a6a7a76736de1c72abfa96c41ff8af556ffdc55f

## Every score

- GitHub_M: CVSS:4.0 2.3 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/tmatens/compose-lint/security/advisories/GHSA-6wcv-rj3c-mhv3> (web)
- <https://github.com/tmatens/compose-lint/pull/917> (web)
- <https://github.com/tmatens/compose-lint/commit/c43204ad4dab11d54e20574a52bc4e5835246ca5> (web)
- <https://github.com/tmatens/compose-lint/releases/tag/v0.31.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-123368> (advisory)
- <https://github.com/tmatens/compose-lint> (package)

## Sources

- CVE List: [CVE-2026-123368](https://www.cve.org/CVERecord?id=CVE-2026-123368), CVE Terms of Use, modified 2026-11-13
- GitHub Advisory Database: [GHSA-6wcv-rj3c-mhv3](https://github.com/advisories/GHSA-6wcv-rj3c-mhv3), CC-BY-4.0, modified 2026-11-10
- NVD: [CVE-2026-123368](https://nvd.nist.gov/vuln/detail/CVE-2026-123368), Public domain, modified 2026-11-13

---

Page: https://cve.day/CVE-2026-123368 · Whole record: https://cve.day/CVE-2026-123368.json · Rebuilt by cve.day 2026-11-25T22:59:49.606Z
