CVE-2026-123368
### Impact compose-lint fills in `${VAR}` references from the `.env` file next to the Compose file. It is meant to read nothing outside the project directory, and `env_file:`, `include:` and `extends:` paths are checked for that. The `.env` read is not. If `.env` is a symlink, compose-lint follows it wherever it points. A pull request can add a `.env` symlink to any file on the CI runner and a Compose file that references a variable from it. compose-lint substitutes the value and quotes it in finding messages, which go to the log and to JSON and SARIF output. The worst target is `/proc/self/environ`, the linter's own environment. The Compose file only needs to reference the name of the first variable in it: because that file separates variables with NUL bytes rather than newlines, the substituted value is the entire rest of the environment. On a CI runner that environment holds whatever the workflow put there, including secrets. GitHub masks registered secrets in the job log, but not in uploaded JSON or SARIF artifacts or in Code Scanning alert text. An `include:` entry's `project_directory:` has the same gap from 0.28.0: a directory symlink named there makes compose-lint read `.env` from wherever the link points. Pull requests from forks normally run without secrets, and GitHub masks registered secrets in the job log, so in the common setup what can be read is runner metadata and whatever unmasked values the job's environment holds. That is why this is scored as low confidentiality impact. The impact is high in a job that runs untrusted pull requests with secrets in its environment, such as a `pull_request_target` workflow, or on a CI system that does not mask secrets, and also wherever the JSON or SARIF output is uploaded. The pass/fail result is not affected. Found during an internal pre-1.0 security review. ### Patches Fixed in 0.31.0. Every `.env` read now applies the same containment check as `env_file:`. A `.env` that resolves outside the project is t
Properties
- Severity
- low
- Summary
- compose-lint: .env read through a symlink outside the project can expose the CI job's environment
- Nvd fetched at
- 2026-11-10T23:33:48.924589+00:00
- Epss score
- 0.00477
- Cvss severity
- LOW
- Cvss score
- 3.1
- Retrieved at
- 2026-11-10T23:35:17+00:00
- Ghsa published
- 2026-11-10T15:56:56Z
- Source url
- https://github.com/advisories/GHSA-6wcv-rj3c-mhv3
- Ghsa updated
- 2026-11-10T15:57:15Z
- Ghsa id
- GHSA-6wcv-rj3c-mhv3
- Last source
- FIRST EPSS
- Score
- 2.3
- Cvss version
- 4.0
- Cve id
- CVE-2026-123368
- Cvss vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
- First seen by Signal
- 2026-11-09T19:15:57+00:00
- Name
- CVE-2026-123368
- Is ghsa only
- false
- Vector
- 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
Related Entities (6)
AFFECTS (2)
HAS_WEAKNESS (2)
VULNERABLE_TO (2)
Related research
Explore deeper with Ninja Signal's threat intelligence graph