Skip to main content

compose-lint CVE-2026-123370

| EUVDEUVD-2026-120127 MEDIUM
Off-by-one Error (CWE-193)
2026-11-09 GitHub_M GHSA-65v8-q222-64xx
5.1
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit malicious pull request
  2. Delivery
    Embed U+2028 in quoted Compose value
  3. Exploit
    Victim runs compose-lint fix --apply
  4. Execution
    Offset desync shifts later edits
  5. Impact
    Silently deletes unselected network-isolation line

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Off-by-one prevention
Exploitation Conditions

Exploitation requires that a victim run compose-lint fix --apply on versions 0.9.0 through 0.17.0 against a Compose file whose contents an attacker can influence (e.g. a file introduced via an untrusted pull request) and that contains at least one ambiguous line-break codepoint - a lone carriage return, U+0085, U+2028, or U+2029 - inside a quoted scalar positioned before the fix target. Limiting factors that materially reduce real-world risk: the vulnerable code path is only the fix --apply command (plain check, and the GitHub Action which never runs fix, are unaffected); the operator must apply the fix without reading the dry-run diff, which does show the extra deletion; and the file must be attacker-controlled. There is no exploitation against a running/default service deployment - this is a developer/CI-tooling integrity issue, not a remote service compromise.

Impact

This is a genuine but conditional, lower-tier integrity issue rather than a broadly exploitable emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N - base 5.1, medium) is internally consistent with the mechanism: no privileges are needed, but UI:A (active user interaction) is doing the real gating - a victim must actually run compose-lint fix --apply over an attacker-influenced file. Impact is integrity-only and limited (VI:L/SI:L, VC:N/VA:N), reflecting that the flaw silently deletes an unselected line (e.g. a network-isolation setting) rather than disclosing data or executing code. The off-by-one classification (CWE-193) matches the described newline-counting desync. Signals do not conflict but several are simply absent: this is NOT in CISA KEV, no EPSS probability was supplied, and the input carries no confirmed POC flag - though the vendor GHSA advisory itself contains a full step-by-step reproduction recipe. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a patch being available and no active-exploitation evidence. Net: a real supply-chain-via-pull-request risk for teams that run fix --apply on untrusted Compose files, but not a high-urgency, mass-exploited vulnerability.

Exploit ScenarioDerived

An attacker opens a pull request that places a Unicode line separator (U+2028, U+2085/U+0085, U+2029, or a lone carriage return) inside a quoted value in a Docker Compose file - a character most editors and diff views do not render. When a maintainer or CI pipeline runs compose-lint fix --apply (versions 0.9.0-0.17.0), the newline-counting desync shifts every later edit by one line, so a benign fix (e.g. CL-0014 on logging: driver: none) silently also deletes the following networks: [internal] line, moving the service onto the default bridge network; the run still reports applied 1 fix(es) and exits 0. The vendor advisory publishes a complete working reproduction, though no standalone weaponized exploit tool is flagged in the input.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 09, 2026

Line-number desynchronization in compose-lint 0.9.0 through 0.17.0 lets fix --apply delete a line the user never selected, including an adjacent security setting such as an internal-only network declaration, while the tool still reports a successful fix and exits 0. A Compose file from an untrusted pull request that places an ambiguous line-break codepoint inside a quoted scalar shifts every later edit by one line, so the applied fix removes the intended target plus the following line; exploitation requires the operator to run fix --apply against attacker-influenced input without inspecting the dry-run diff, and the plain check command and the GitHub Action (which never runs fix) are unaffected. No public exploit code was identified at time of analysis and the vendor has released 0.18.0; this is a developer/CI-tooling integrity issue requiring user interaction, not a compromise of a running service.

RemediationAI

Upgrade to compose-lint 0.18.0 or later (release notes at https://github.com/tmatens/compose-lint/releases/tag/v0.18.0), which is the vendor-released fix; 0.18.0 makes line splitting and position conversion share one definition of a line break and refuses any Compose file containing a lone carriage return, U+0085, U+2028 or U+2029 with exit code 2, since no line numbering is correct for both the parser and the editor. CRLF and LF files are unaffected by that new rejection. For deployments pinned below 0.18.0, the vendor states two workarounds: review the dry-run diff (running fix without --apply) before applying, since the dry-run diff is the only place the extra deletion is visible, and do not run fix --apply over Compose files originating from untrusted pull requests. Patching is also required for the companion behavior where an out-of-range line number raised IndexError and produced an empty SARIF document for the entire batch, which GitHub Code Scanning rejects; 0.18.0 converts this into a per-file failure with exit code 2 while the remaining files still lint and report.

Affected VersionsENISA

compose-lint 0.9.0, < 0.18.0

Affected Packages

pypi compose-lint fix: 0.18.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-193 (off-by-one), caused by three inconsistent definitions of a line break inside a Python tool that edits YAML in place. Line numbers originate with PyYAML: the parser's lines map is built from start_mark.line, and PyYAML's Reader treats a lone carriage return, U+0085 (NEL), U+2028 (LINE SEPARATOR) and U+2029 (PARAGRAPH SEPARATOR) as advancing a line, in addition to \n and CRLF. The fix engine's offset table (fix._line_starts), however, counted only \n when converting those 1-indexed line numbers into byte offsets for splicing. A single such codepoint inside a quoted scalar, which most editors and diff views do not render, shifts every subsequent splice down by one line, so a fixer such as CL-0014 (logging: driver: none) removes both the intended line and the following networks: [internal]. The result parses as valid Compose, every post-edit check passes, and no rule requires the deleted key, so nothing detects the discrepancy outside the dry-run diff. The same desynchronization could push a line number past the offset table and raise a bare IndexError, aborting the run and causing check --format sarif to emit a 0-byte document that discards findings for every other file in the batch. The 0.18.0 fix centralizes line splitting and offset derivation in compose_lint._lines so both are computed from a single scan using PyYAML's break set, and refuses documents containing ambiguous breaks with exit code 2 rather than guessing a numbering.

Know when Docker gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
vuln.today AI 4.3 MEDIUM

No privileges needed (PR:N) but a victim must run fix --apply on an attacker-supplied file (UI:R); impact is limited integrity only (I:L), with no confidentiality or availability effect and no scope change.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 09, 2026 - 18:02 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Prevalence
Low
niche open-source Docker Compose dev/CI linter, limited production adoption
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy