CVE-2026-125123 Details
Description
compose-lint is a Docker Compose security linter that identifies dangerous misconfigurations before deployment. In version 0.31.0, compose-lint's argument parser writes rejected repository paths to stderr without the output sanitizer when a path is passed without a preceding -- separator. A pull request can supply a path containing workflow-command syntax; a carriage return can position that command at the start of a new line recognized by the GitHub Actions runner, allowing the package, Docker image, or a pre-commit hook with misconfigured args to issue the command in the job log. The default pre-commit configuration includes -- and is not affected, the GitHub Action is not affected, and the lint pass or fail result is unchanged. This issue is fixed in version 0.32.0.
A vulnerability in Compose-Lint version 0.31.0 allows for the injection of commands into CI workflows. This issue arises because the argument parser in this version fails to properly sanitize repository paths before writing them to stderr. When a path is passed without a preceding '--' separator, it can include workflow-command syntax that the GitHub Actions runner interprets as a command to be executed. The vulnerability is not present in the default pre-commit configuration, which correctly uses the '--' separator, nor in the GitHub Action version of Compose-Lint, which disables command processing during the linting step.
Upgrade to Compose-Lint version 0.32.0 or later, where this issue has been fixed. If using the pre-commit hook, ensure to add a '--' before file paths. For GitHub Actions, use the 'tmatens/compose-lint' Action or manually manage the 'stop-commands' tokens.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 10, 2026CISA-ADP
Assessed Nov 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/tmatens/compose-lint/commit/542e63126f795564a65c63887ea0dc558a500688 | [email protected] | Source CodeVendor |
| https://github.com/tmatens/compose-lint/pull/945 | [email protected] | Source CodeVendor |
| https://github.com/tmatens/compose-lint/releases/tag/v0.32.0 | [email protected] | Release NotesVendor |
| https://github.com/tmatens/compose-lint/security/advisories/GHSA-8v59-qmwv-4p6q | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-117 | Improper Output Neutralization for Logs | [email protected] |
| CWE-150 | Improper Neutralization of Escape, Meta, or Control Sequences | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| compose-lint | 0.31.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 10, 2026 | CVE Modified | CISA-ADP |
| Nov 10, 2026 | New CVE Received | [email protected] |
Volerion