CVE-2026-125125
compose-lint is a Docker Compose security linter that identifies dangerous misconfigurations before deployment.
Impact
compose-lint is a Docker Compose security linter that identifies dangerous misconfigurations before deployment. From version 0.30.0 until 0.32.0, the compose-lint GitHub Action prints the resolved directory from a failed sarif-file subdirectory creation without effective command suppression. Version 0.30.0 has no stop-commands window, while version 0.31.0 prints this error outside its stop-commands window. A pull request can place a committed symlink on that path to a directory whose name contains a newline followed by a workflow command, causing the SARIF-directory error to issue commands in the job log. Only the Action with sarif-file pointing into a subdirectory is affected; a workspace-root SARIF file, the compose-lint package, the pre-commit hook, and the Docker image do not expose this message. This issue is fixed in version 0.32.0.
An attacker can exploit this over the network, without logging in, but a user has to be involved, for example by viewing content. Specific conditions have to be met, which makes an attack harder. If it succeeds: low risk of data or systems being changed.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| actions | tmatens/compose-lint | >= 0.30.0, <= 0.31.0 | 0.32.0 |
Affected products · Tmatens
| Product | Affected versions |
|---|---|
| Compose-lint | from 0.30.0, before 0.32.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/tmatens/compose-lint/security/advisories/GHSA-xcf7-88g6-7xr8
- https://github.com/tmatens/compose-lint/pull/945
- https://github.com/tmatens/compose-lint/commit/542e63126f795564a65c63887ea0dc558a500688
- https://github.com/tmatens/compose-lint/releases/tag/v0.32.0
- https://github.com/advisories/GHSA-xcf7-88g6-7xr8
- https://nvd.nist.gov/vuln/detail/CVE-2026-125125