Skip to main content
← Vulnerabilities

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

2.3LowCNA
Exploited
No known exploitation
Fix
Fixed in 0.31.0
Who is exposed
Not reported

Do first: Upgrade to a fixed version: 0.31.0.

Published
Last modified
9/100 · provisional
None on Exploit-DB, Metasploit or GitHub

Summary

compose-lint, a Docker Compose security linter, can be tricked into reading a `.env` file through a symbolic link outside the project, so a remote attacker without logging in can expose runner file or process environment data in finding messages written to logs, JSON, SARIF artifacts, and Code Scanning alerts when a workflow lints an untrusted pull request. The flaw does not change pass or fail results.

Written by anthropic/claude-haiku-5.5 from the sources below. Verify against them.

Read the original description

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.

cve.now Index

9Pcve.now Index 9 of 100 · methodology v3 · provisional
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure7/25Reachable over the network without a login · Unknown: No advisory context yet
  • Reach?/20Unknown. No tracked technology or package matched
  • Severity2.3/10CVSS 2.3
  • No patch0/5No signal

What would change the score

  • Would score about 64 if added to CISA KEV
  • Would score about 59 if CISA's SSVC rates exploitation active
  • Would score about 24 if advisories confirm default setups are exposed

What to do

  • Upgrade to a fixed version: 0.31.0.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • tmatens compose-lint

    From 0.22.0 · fixed in 0.31.0

Evidence 4

  1. Advisory
  2. Repository
  3. Repository
  4. Repository

Corrections

None so far.

Something wrong on this page? Report an error. Every fix is listed here.

Questions about CVE-2026-123368

Is CVE-2026-123368 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.Source: cve.now feed data

Which versions are affected by CVE-2026-123368?

compose-lint: from 0.22.0 before 0.31.0.Source: cve.now feed data

How do I fix CVE-2026-123368?

Upgrade to a fixed version: 0.31.0.Source: cve.now feed data