Skip to main content

compose-lint EUVDEUVD-2026-120123

| CVE-2026-123368 LOW
Path Traversal (CWE-22)
2026-11-09 GitHub_M GHSA-6wcv-rj3c-mhv3
2.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Open fork pull request
  2. Delivery
    Commit .env symlink to /proc/self/environ
  3. Exploit
    CI workflow runs compose-lint on untrusted PR
  4. Execution
    Variable substitution reads process environment
  5. Impact
    Environment written to JSON/SARIF artifacts and Code Scanning alerts

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires: (1) a workflow that runs compose-lint on untrusted pull-request content, (2) the attacker committing a .env as a symlink to a file outside the project (e.g. /proc/self/environ) - or, from 0.28.0, an include: entry's project_directory: pointing through a directory symlink outside the project - together with a Compose file that references a variable name from the linked file, and (3) the CI job's process environment actually holding useful or secret data for the disclosure to matter. Default .env reads inside the project are unaffected. Exploitation is strongly LIMITED by: GitHub normally withholding registered secrets from fork pull requests and masking them in the job log (so the common setup leaks only runner metadata and unmasked values); the need for the CI job to passively execute the linter on the PR (UI:P); and the fact that the pass/fail result is never altered. High impact is confined to non-default configurations such as a pull_request_target workflow with secrets in scope, CI systems that do not mask secrets, or pipelines that upload the unmasked JSON/SARIF artifacts. The --no-env flag fully avoids the sibling .env read.

Impact

This is a genuinely low-priority issue and the signals agree, with no conflict to flag. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P) scores only 2.3, and the vuln.today Decision label is 'monitor' - not act_now or emergency. It is NOT in CISA KEV (not confirmed actively exploited), and no EPSS probability was supplied, so widespread exploitation cannot be inferred from that signal either. The one component that raises real-world risk, AT:P, reflects a true dependency on the target environment: exploitation only yields something valuable when the CI job actually holds useful or secret data in its process environment. Confidentiality impact is explicitly low (VC:L, with VI/VA/SC/SI/SA all N) because GitHub normally withholds registered secrets from fork pull requests and masks them in the job log - so in the common fork-PR setup the attacker reads only runner metadata and unmasked values. The impact rises to meaningful only in non-default setups: a pull_request_target workflow that exposes secrets to untrusted PRs, a CI system that does not mask secrets, or any pipeline that uploads the JSON/SARIF artifacts (which are not masked) or surfaces Code Scanning alert text. Integrity is unaffected - the advisory is explicit that the pass/fail result does not change. Net: a real but narrow information-disclosure bug whose severity is correctly rated low; treat as monitor-and-patch, not an emergency.

Exploit ScenarioDerived

An attacker opens a fork pull request that adds a .env symlink pointing at /proc/self/environ (or another runner file) plus a Compose file that references the name of the first environment variable; when a CI workflow runs compose-lint on the untrusted PR, the linter follows the symlink, substitutes the value, and quotes the entire NUL-separated process environment into finding messages written to the log, JSON, SARIF artifacts, and Code Scanning alerts. A public PoC reference exists - the GHSA advisory includes a working reproduction (compose-lint check compose.yml --format json) - though it is not independently verified as packaged exploit code. The AV:N/AC:L vector makes the traversal trivial to trigger, but AT:P means real secret disclosure depends on the workflow exposing secrets and passive execution of the CI job (UI:P).

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 09, 2026

Symlink-following in the sibling .env read of compose-lint 0.22.0 through 0.30.0 lets a pull request that is linted by CI substitute runner file or process-environment contents into finding messages, which are then written to the job log, JSON output, SARIF artifacts and Code Scanning alert text; from 0.28.0 the same missing containment check also applies to an include: entry's project_directory:. Disclosure only matters where the linting job's environment actually holds useful or secret data, since GitHub normally withholds registered secrets from fork pull requests and masks them in the job log, so the common setup leaks runner metadata and unmasked values only, and the pass/fail verdict is never changed. Exploitation requires the CI job to run the linter on untrusted PR content and the attacker to commit a symlinked .env (or directory symlink) plus a Compose file referencing a variable name from the link target; vendor-released patch 0.31.0 closes the gap, and no public exploit code or CISA KEV entry was identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade to compose-lint 0.31.0 (https://github.com/tmatens/compose-lint/releases/tag/v0.31.0), applying to the pip package, the actions/tmatens/compose-lint action reference, and any composelint/compose-lint image tag or digest pinned to 0.22.0-0.30.0 (including the 0.22-0.30 minor tags); after upgrading, an escaping .env is treated as a missing/unread input, an include: project_directory: resolving outside the project is refused with its files resolved against their own directories, and NUL-containing .env lines are skipped. If upgrading is not immediately possible, run compose-lint with --no-env, which skips the sibling .env entirely and removes the exposure, at the cost of not resolving ${VAR} references from that file; and do not run compose-lint against untrusted pull requests in a job whose environment holds secrets (for example a pull_request_target workflow), or on a CI system that does not mask secrets, or one that uploads raw JSON/SARIF artifacts, since Code Scanning alert text and uploaded artifacts are not covered by log masking. Detection details and the reproduction are in the advisory at https://github.com/tmatens/compose-lint/security/advisories/GHSA-6wcv-rj3c-mhv3 and the fix in https://github.com/tmatens/compose-lint/pull/917.

Affected VersionsENISA

compose-lint 0.22.0, < 0.31.0

Affected Packages

pypi compose-lint fix: 0.31.0
pypi tmatens/compose-lint fix: 0.31.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi

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

Technical ContextAI · show details

The flaw is a path-traversal class issue (CWE-22, with CWE-59 symlink-following also assigned in the GitHub advisory) in how compose-lint resolves the .env file it uses to fill ${VAR} references next to a Compose file. Per the project's own assurance documentation, document-supplied paths - env_file: targets and COMPOSE_FILE entries - pass a two-stage gate: a lexical containment test on what the path claims, then a containment test on what it actually resolves to, so a symlink cannot escape the project. The sibling .env read was never routed through that second, resolution-based check, so a .env committed as a symlink was opened wherever it pointed. Pointing it at /proc/self/environ is the sharpest variant because that pseudo-file separates variables with NUL bytes rather than newlines; parsed as a dotenv file the whole remainder of the process environment collapses into a single value, and compose-lint quotes substituted values inside finding messages (for example the CL-0004 "Image '...' has no tag" message), so the environment lands in logs and in machine-readable output. The pass/fail result is unaffected because only message text is contaminated. The upstream fix (PR 917, commit c43204a) adds a within project-directory parameter to read_env and read_text_bounded, raising OutsideProjectError so an escaping .env is treated as absent and reported as an unread input, refusing an include: project_directory: that resolves outside the project (its files then resolve against their own directories), and skipping any .env line containing a NUL byte. The affected code ships both as a Python package and inside the composelint/compose-lint Docker image.

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 2.3 LOW
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 3.1 LOW

Remotely triggerable via a fork PR (AV:N, PR:N) but AC:H because meaningful disclosure depends on the job holding useful/secret env data; UI:R for CI execution; read-only low confidentiality only, so C:L, I:N, A:N.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
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.22.0 until 0.31.0, compose-lint follows a sibling .env symbolic link outside the project without applying its normal containment check. From 0.28.0, the same gap also affects an include project_directory link outside the project. A pull request can reference a variable from the linked file, causing substitution to place runner file or process-environment data into finding messages written to logs, JSON, SARIF artifacts, and Code Scanning alerts. Reading /proc/self/environ can expose the remainder of the linter process environment because NUL-separated entries are treated as one value, although disclosure requires a workflow that processes untrusted changes with useful environment data and GitHub normally withholds secrets from fork pull requests. The pass or fail result is not changed. This issue is fixed in version 0.31.0.

Threat Intelligence Overview

EPSS Score
0.5%
Top 58% exploitable
Prevalence
Low
niche pre-1.0 CI security linter, limited real-world deployment footprint
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 LOW
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

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

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

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