compose-lint: A symlink in a pull request can issue workflow commands through the compose-lint Action's SARIF-directory error message
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| tmatenscompose-lint | — | Not listed |
| GitHub Actionstmatens/compose-lint |
≥ 0.30.0, < 0.32.0→ 0.32.0 ≥ adf00708734b772686337b69831c8e3912fa0ed4, < 2d42617e4c6416f797bbfc6a057950131fa02df3→ 2d42617e4c6416f797bbfc6a057950131fa02df3 |
0.32.0 2d42617e4c6416f797bbfc6a057950131fa02df3 |
| actionstmatens/compose-lint |
< 0.32.0→ 0.32.0 |
0.32.0 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com