CVE-2026-123368
compose-lint: .env read through a symlink outside the project can expose the CI job's environment
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.
Fixes and workarounds
Fix
compose-lint (pip): GitHub reports patched versions 0.31.0. Check the advisory for the affected release branch.
Source: GitHub GHSA-6wcv-rj3c-mhv3Fix
tmatens/compose-lint (actions): GitHub reports patched versions 0.31.0. Check the advisory for the affected release branch.
Source: GitHub GHSA-6wcv-rj3c-mhv3Fix
compose-lint (PyPI): OSV reports a fixed version 0.31.0. Check the advisory for supported release branches.
Source: OSV GHSA-6wcv-rj3c-mhv3Fix
tmatens/compose-lint (GitHub Actions): OSV reports a fixed version 0.31.0. Check the advisory for supported release branches.
Source: OSV GHSA-6wcv-rj3c-mhv3Fix
tmatens/compose-lint: OSV reports a fix at commit a6a7a76736de1c72abfa96c41ff8af556ffdc55f.
Source: OSV GHSA-6wcv-rj3c-mhv3Affected products and versions
| Product | Versions | Authority |
|---|---|---|
| compose-lint tmatens |
>= 0.22.0, < 0.31.0 (affected) | CNA: GitHub_M |
compose-lintcompose-lint
pip |
>= 0.22.0, <= 0.30.0 (affected, GitHub advisory range) | GitHub GHSA-6wcv-rj3c-mhv3 |
tmatens/compose-linttmatens/compose-lint
actions |
>= 0.22.0, <= 0.30.0 (affected, GitHub advisory range) | GitHub GHSA-6wcv-rj3c-mhv3 |
compose-lintcompose-lint
PyPI |
0.22.0 (affected, PyPI) 0.23.0 (affected, PyPI) 0.24.0 (affected, PyPI) 0.25.0 (affected, PyPI) 0.26.0 (affected, PyPI) 0.27.0 (affected, PyPI) 0.28.0 (affected, PyPI) 0.29.0 (affected, PyPI) 0.30.0 (affected, PyPI) Ecosystem version events: introduced 0.22.0; fixed 0.31.0 Source events (ECOSYSTEM)
Other versions: unaffected |
OSV GHSA-6wcv-rj3c-mhv3 |
tmatens/compose-linttmatens/compose-lint
GitHub Actions |
v0.30.0 (affected, GitHub Actions) v0.29.0 (affected, GitHub Actions) v0.28.0 (affected, GitHub Actions) v0.27.0 (affected, GitHub Actions) v0.26.0 (affected, GitHub Actions) v0.25.0 (affected, GitHub Actions) v0.24.0 (affected, GitHub Actions) v0.23.0 (affected, GitHub Actions) v0.22.0 (affected, GitHub Actions) Ecosystem version events: introduced 0.22.0; fixed 0.31.0 Source events (ECOSYSTEM)
Git commit history: introduced 811ef6b379dbc78d048fcedaf976205705d4a7c3; fixed a6a7a76736de1c72abfa96c41ff8af556ffdc55f Source events (GIT)Commit identifiers describe source repository history. They are not release-version comparisons.
Other versions: unaffected |
OSV GHSA-6wcv-rj3c-mhv3 |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 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 | CNA: GitHub_M |
| 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/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 | NVD: [email protected] |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-6wcv-rj3c-mhv3CNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/tmatens/compose-lint/pull/917CNA: GitHub_M · x_refsource_MISC
- https://github.com/tmatens/compose-lint/commit/c43204ad4dab11d54e20574a52bc4e5835246ca5CNA: GitHub_M · x_refsource_MISC
- https://github.com/tmatens/compose-lint/releases/tag/v0.31.0CNA: GitHub_M · x_refsource_MISC
- https://github.com/tmatens/compose-lint/commit/c43204ad4dab11d54e20574a52bc4e5835246ca5[email protected]
- https://github.com/tmatens/compose-lint/pull/917[email protected]
- https://github.com/tmatens/compose-lint/releases/tag/v0.31.0[email protected]
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-6wcv-rj3c-mhv3[email protected]
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-6wcv-rj3c-mhv3GitHub Security Advisories · advisory
- https://github.com/advisories/GHSA-6wcv-rj3c-mhv3OSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-6wcv-rj3c-mhv3OSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.