MEDIUMCVSS v4 6.8Vulnerability

CVE-2026-128079

### Summary envd’s `install.python_packages(requirements=...)` could read files outside the build context on the host. Content interpreted as dependency entries could appear in build logs and build-step metadata. Commit f576c92, released in v1.3.5, added path containment validation but left a time-of-check/time-of-use (TOCTOU) race between symlink resolution and opening the requirements file. Commit 9d575b3 addresses this race by opening requirements files through a directory-rooted filesystem handle. ### Details envd reads requirements files on the host to determine whether their contents can be embedded directly into a pip installation build step. The vulnerable host-side requirements read was introduced in v0.3.38. Version v1.3.5 added containment checks for static path escapes but remained vulnerable to a TOCTOU race. The complete fix is included in v1.3.6. Before f576c92, this host read lacked a build-context containment check. That commit added frontend path validation and a compile-time check using filepath.EvalSymlinks followed by a containment comparison. However, symlink resolution returns a pathname rather than a pinned filesystem object. The subsequent os.Open independently resolves that pathname. Concurrent filesystem changes could therefore invalidate the containment check before the file was opened. The complete fix uses os.OpenRoot and Root.Open to enforce containment during filesystem traversal. Resources: - first commit: be783264fdd79ad7262cea0485b7d449ca514f80 - Initial containment fix: f576c92 - TOCTOU fix: 9d575b3 ### Proof of concept The security-relevant condition is a requirements-file pathname whose filesystem resolution changes between validation and opening. The containment check describes the filesystem at validation time, while the later pathname-based open may access a different object. The fix includes a deterministic regression test for the underlying object-pinning guarantee. It opens a context directory handle, moves tha

Properties

Severity
medium
Summary
envd: Host file disclosure through requirements path traversal and TOCTOU
Nvd fetched at
2026-11-14T00:40:25.638091+00:00
Cvss severity
MEDIUM
Cvss score
6.8
Retrieved at
2026-11-14T00:50:08+00:00
Ghsa published
2026-11-13T18:05:15Z
Source url
https://github.com/advisories/GHSA-jv6m-48w5-5rpr
Ghsa updated
2026-11-13T18:05:16Z
Ghsa id
GHSA-jv6m-48w5-5rpr
Last source
GitHub Advisory Database
Score
6.8
Cvss version
4.0
Cve id
CVE-2026-128079
Cvss vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/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:X
First seen by Signal
2026-11-13T20:38:23+00:00
Is ghsa only
false
Vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/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:X
Published at
2026-11-13T18:17:37.500
Last modified
2026-11-13T18:17:37.500

Related Entities (4)

AFFECTS (1)

→[Software]pip/envd

VULNERABLE_TO (1)

←[Software]pip/envd

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-128079 (CVSS v4 6.8) — Ninja Signal Threat Intelligence | Ninja Signal