compose-lint: `fix --apply` can delete a line the user did not select, including a security setting
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| tmatens | compose-lint | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Tmatens | Compose-lint |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-65v8-q222-64xx | compose-lint: `fix --apply` can delete a line the user did not select, including a security setting |
No CVSS v3.1
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.330% probability within 30 days)
Key SSVC decision points have not yet been added.
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Tmatens
Tmatens compose-lint |
|
| Vendors & Products |
Tmatens
Tmatens compose-lint |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | compose-lint is a Docker Compose security linter that identifies dangerous misconfigurations before deployment. From 0.9.0 until 0.18.0, compose-lint's YAML parser recognizes lone carriage returns and Unicode line separators U+0085, U+2028, and U+2029 as line breaks while fix position conversion counts only newline characters. A pull request can place one of these separators in a quoted value so fix --apply shifts each later edit and deletes the line after the selected target, including an unselected network or other security setting. The resulting Compose file can remain valid, post-edit checks can pass, and the command can report a successful fix even though the dry-run diff was the only place showing the extra deletion. This issue is fixed in version 0.18.0. | |
| Title | compose-lint: `fix --apply` can delete a line the user did not select, including a security setting | |
| Weaknesses | CWE-193 | |
| References |
|
|
| Metrics |
cvssV4_0
|