Skip to content
FlawDB
Sign in

CVE-2026-123368

LOW 2.3EPSS 49%

compose-lint: .env read through a symlink outside the project can expose the CI job's environment

Also known as GHSA-6wcv-rj3c-mhv3

Mitigation

  • Upgrade compose-lint to 0.31.0 or later.
  • Upgrade tmatens/compose-lint to 0.31.0 or later.

Who should check

  • Projects that depend on PyPI package compose-lint (>= 0.22.0, <= 0.30.0)
  • Projects that depend on GitHub Actions package tmatens/compose-lint (>= 0.22.0, <= 0.30.0)

Vulnerability facts

Affected
compose-lint >= 0.22.0, <= 0.30.0; tmatens/compose-lint >= 0.22.0, <= 0.30.0
Fixed in
0.31.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
2.3 (v4.0, GitHub)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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: Passive
  • Confidentiality impact: Low
  • Integrity impact: None
  • Availability impact: None
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.70% chance of exploitation in 30 days (percentile 49, 2026-11-26)
CWE
CWE-22, CWE-59
Published
Modified

Description

### Impact compose-lint fills in `${VAR}` references from the `.env` file next to the Compose file. It is meant to read nothing outside the project directory, and `env_file:`, `include:` and `extends:` paths are checked for that. The `.env` read is not. If `.env` is a symlink, compose-lint follows it wherever it points. A pull request can add a `.env` symlink to any file on the CI runner and a Compose file that references a variable from it. compose-lint substitutes the value and quotes it in finding messages, which go to the log and to JSON and SARIF output. The worst target is `/proc/self/environ`, the linter's own environment. The Compose file only needs to reference the name of the first variable in it: because that file separates variables with NUL bytes rather than newlines, the substituted value is the entire rest of the environment. On a CI runner that environment holds whatever the workflow put there, including secrets. GitHub masks registered secrets in the job log, but not in uploaded JSON or SARIF artifacts or in Code Scanning alert text. An `include:` entry's `project_directory:` has the same gap from 0.28.0: a directory symlink named there makes compose-lint read `.env` from wherever the link points. Pull requests from forks normally run without secrets, and GitHub masks registered secrets in the job log, so in the common setup what can be read is runner metadata and whatever unmasked values the job's environment holds. That is why this is scored as low confidentiality impact. The impact is high in a job that runs untrusted pull requests with secrets in its environment, such as a `pull_request_target` workflow, or on a CI system that does not mask secrets, and also wherever the JSON or SARIF output is uploaded. The pass/fail result is not affected. Found during an internal pre-1.0 security review. ### Patches Fixed in 0.31.0. Every `.env` read now applies the same containment check as `env_file:`. A `.env` that resolves outside the project is treated as missing and reported as an unread input. A `project_directory:` that resolves outside the project is refused, and that entry's files resolve against their own directories. A `.env` line containing a NUL byte is skipped. ### Workarounds - Run with `--no-env`, which skips the sibling `.env` entirely. - Don't run compose-lint on untrusted pull requests in a job whose environment holds secrets. ### Reproduction ``` project/.env -> /proc/self/environ (symlink) project/compose.yml: services: web: image: "${FIRST_VAR_NAME}" ``` `compose-lint check compose.yml --format json` quotes the environment in the CL-0004 message ("Image '...' has no tag").

Affected and fixed versions

Package / productAffectedFixedSource
PyPI compose-lint>= 0.22.0, <= 0.30.00.31.0ghsa
GitHub Actions tmatens/compose-lint>= 0.22.0, <= 0.30.00.31.0ghsa

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-123368. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-123368.md
Affected: compose-lint >= 0.22.0, <= 0.30.0; tmatens/compose-lint >= 0.22.0, <= 0.30.0
Fixed in: 0.31.0

Steps:
1. Search this machine and project for compose-lint (PyPI), tmatens/compose-lint (GitHub Actions): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

Technologies

References

FAQ

Is CVE-2026-123368 being exploited?

There is no confirmed exploitation: CVE-2026-123368 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.70% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-123368?

Low: CVSS 2.3 (v4.0, scored by GitHub). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2026-123368?

compose-lint >= 0.22.0, <= 0.30.0; tmatens/compose-lint >= 0.22.0, <= 0.30.0.

Is there a fix for CVE-2026-123368?

Yes. Fixed in 0.31.0. Upgrade compose-lint to 0.31.0 or later. Upgrade tmatens/compose-lint to 0.31.0 or later.

How do I check if I'm affected by CVE-2026-123368?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
CRITICAL 9.3CVE-2026-137964

ToolJet before 3.21.96-LTS Command Injection via Release Workflow Pull Request Title

GitHub Actions
LOW 2.3CVE-2026-125125

compose-lint: Workflow command injection through SARIF-directory errors triggered by pull request symlinks

GitHub Actions
EPSS 38%
LOW 2.3CVE-2026-123796

compose-lint: Incomplete fix for GHSA-jf3h-8jvx-vcrg: a run stopped at the finding limit quotes a secret from a CI-generated `.env`

GitHub Actions+1
EPSS 38%
LOW 2.3CVE-2026-123373

compose-lint: A committed symlink makes compose-lint quote a file from outside the project into its output

GitHub Actions+1
EPSS 39%
LOW 2.3CVE-2026-123371

compose-lint: A `.compose-lint.yml` symlinked outside the project is read, and a parse error quotes part of the target

GitHub Actions+1
EPSS 46%
Sponsors