Symlink traversal in compose-lint can expose CI job environment data
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.
Summary
compose-lint from 0.22.0 before 0.31.0 follows a sibling .env symbolic link outside the project without applying its containment check (CWE-59). A pull request can reference a variable from the linked file, so runner file or process environment data appears in finding messages in logs, JSON, SARIF artifacts, and Code Scanning alerts. 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.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| tmatens | compose-lint | 0.22.0 to before 0.31.0 | 0.31.0 | Patch available | CNA |
| — | compose-lint (PyPI) | 0.22.0 to before 0.31.0 | 0.31.0 | Patch available | GHSA-6wcv-rj3c-mhv3 |
| — | tmatens/compose-lint (GitHub Actions) | 0.22.0 to before 0.31.0 | 0.31.0 | Patch available | GHSA-6wcv-rj3c-mhv3 |
- compose-lint Vendortmatens Affected 0.22.0 to before 0.31.0 Fixed in 0.31.0 Patch available CNA
- compose-lint (PyPI) Vendor— Affected 0.22.0 to before 0.31.0 Fixed in 0.31.0 Patch available GHSA-6wcv-rj3c-mhv3
- tmatens/compose-lint (GitHub Actions) Vendor— Affected 0.22.0 to before 0.31.0 Fixed in 0.31.0 Patch available GHSA-6wcv-rj3c-mhv3
Remediation
Upgrade compose-lint to 0.31.0, which fixes this issue in the PyPI package compose-lint and the GitHub Actions entry tmatens/compose-lint.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA compose-lint (tmatens) Fixed in 0.31.0
- Fix · GHSA-6wcv-rj3c-mhv3 compose-lint (PyPI) Fixed in 0.31.0 Advisory →
- Fix · GHSA-6wcv-rj3c-mhv3 tmatens/compose-lint (GitHub Actions) Fixed in 0.31.0 Advisory →
Timeline
- 2026-11-09 Threatist record created from CVE-2026-123368
- 2026-11-10 Alias added: GHSA-6wcv-rj3c-mhv3
- 2026-11-10 Fix available: GitHub Actions/tmatens/[email protected], PyPI/[email protected] · GHSA-6wcv-rj3c-mhv3
- 2026-11-10 CVSS score added · GHSA-6wcv-rj3c-mhv3
- 2026-11-10 Weakness changed · GHSA-6wcv-rj3c-mhv3
- 2026-11-10 6 new references · GHSA-6wcv-rj3c-mhv3
- 2026-11-13 CISA SSVC decision points changed
References
Other 5
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-6wcv-rj3c-mhv3
- https://github.com/tmatens/compose-lint/pull/917
- https://github.com/tmatens/compose-lint/commit/c43204ad4dab11d54e20574a52bc4e5835246ca5
- https://github.com/tmatens/compose-lint/releases/tag/v0.31.0
- https://github.com/tmatens/compose-lint
More tmatens vulnerabilities
- TI-2026-87180 compose-lint fix --apply deletes unselected lines, including security settings CVSS 4.0MEDIUM 5.1
- TI-2026-87186 Incomplete fix lets compose-lint leak .env secrets at finding limit CVSS 4.0LOW 2.3
- TI-2026-87182 Secret values from a .env file leak into compose-lint findings CVSS 4.0LOW 2.3
- TI-2026-87874 compose-lint: Unicode whitespace lets PR text issue CI workflow commands CVSS 4.0MEDIUM 5.3
- TI-2026-87179 Workflow command injection in compose-lint Action output CVSS 4.0MEDIUM 5.3
- TI-2026-87879 Output from compose-lint can issue Azure Pipelines logging commands CVSS 4.0LOW 2.3
Sources
- CVE-2026-123368 · CVE Program
- CVE-2026-123368 · NVD
- FIRST EPSS
- GHSA-6wcv-rj3c-mhv3 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences