DHI-cvqu-2sh3-wnzt-7rp7

Source
https://scout.docker.com/v/DHI-cvqu-2sh3-wnzt-7rp7
Import Source
https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-cvqu-2sh3-wnzt-7rp7.json
JSON Data
https://api.osv.dev/v1/vulns/DHI-cvqu-2sh3-wnzt-7rp7
Upstream
  • GHSA-8p3x-q3q3-q3v5
Published
2026-11-20T01:49:34Z
Modified
2026-11-28T21:30:02Z
Summary
The build script of `libz-sys` version <= 1.1.30 prints the full environment
Details

The build script of libz-sys version <= 1.1.30 prints the full environment of the build, including any secrets it contains, to its stdout when compiled with cc@1.6.0 or later on a Unix host. This affects any build that depends on libz-sys. Cargo saves build script stdout under target/, so the values end up in anything that stores or shares the target/ directory, such as CI caches.

This is similar to the Miri issue.

Details

To decide whether to link against a system zlib, the libz-sys build script compiles a small test program with a compiler command from cc and logs it with:

println!("running {:?}", cmd);

On Unix, Debug impl for std::process::Command prints every environment variable explicitly set on the command. Before cc@1.6.0, its Tool::to_command() set only a few compiler-specific variables. Starting with cc@1.6.0 (released 2026-10-03), Tool::to_command() clears the environment and sets every variable explicitly.

Cargo parses build script stdout for cargo: directives, and stores the full output in the build directory. It also prints it with -vv.

The probe runs for a default libz-sys build, including when pkg-config finds zlib, unless one of these applies:

  • the target is Windows, Android, Haiku or OpenHarmony
  • static linking is requested via the static feature or LIBZ_SYS_STATIC=1
  • the zlib-ng features are enabled without stock-zlib

Mitigations

Fixed in libz-sys@1.1.31, which no longer logs the probe command.

If you cannot upgrade, here are some workarounds:

  • Build with LIBZ_SYS_STATIC=1 or the static feature, which skips the probe.
  • Pin cc to a release before 1.6.0 (cargo update cc --precise <version>).

Note that upgrading libz-sys does not remove values already written. If an affected build already ran with secrets in its environment, clear CI caches and stored artifacts containing its target/build directory, and consider rotating those secrets.

References

Affected packages

Docker Hardened Images:Alpine:3.23
static-web-server-2

Package

Name
static-web-server-2
Purl
pkg:apk/dhi/static-web-server-2

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.44.1-r0

Affected versions

2.*
2.44.1-r0
2.44.2-r0
2.44.3-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-cvqu-2sh3-wnzt-7rp7.json"
Docker Hardened Images:Alpine:3.24
static-web-server-2

Package

Name
static-web-server-2
Purl
pkg:apk/dhi/static-web-server-2

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.44.1-r0

Affected versions

2.*
2.44.1-r0
2.44.2-r0
2.44.3-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-cvqu-2sh3-wnzt-7rp7.json"
Docker Hardened Images:Debian:13
static-web-server-2

Package

Name
static-web-server-2
Purl
pkg:deb/dhi/static-web-server-2

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.44.1-0

Affected versions

2.*
2.44.1-0
2.44.2-0
2.44.3-0
2.44.3-1
2.44.3-2
2.44.3-3
2.44.3-4
2.44.3-5
2.44.3-6

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-cvqu-2sh3-wnzt-7rp7.json"
teleport-18-dev

Package

Name
teleport-18-dev
Purl
pkg:deb/dhi/teleport-18-dev

Affected ranges

Type
ECOSYSTEM
Events
Introduced
18.11.1-2

Affected versions

18.*
18.11.1-2
18.11.1-3
18.11.1-4
18.11.1-5
18.11.1-6
18.11.1-7
18.11.1-8
18.11.1-9
18.11.1-10
18.11.1-11
18.11.1-12
18.11.1-13
18.11.1-14
18.11.1-15
18.11.1-16
18.11.1-17
18.11.1-18
18.11.10-0
18.11.10-1
18.11.10-2
18.11.10-3
18.11.10-4
18.11.10-5
18.11.10-6
18.11.10-7
18.11.10-8
18.11.10-9
18.11.10-10
18.11.10-11
18.11.10-12

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-cvqu-2sh3-wnzt-7rp7.json"
teleport-18-fips-dev

Package

Name
teleport-18-fips-dev
Purl
pkg:deb/dhi/teleport-18-fips-dev

Affected ranges

Type
ECOSYSTEM
Events
Introduced
18.11.1-2

Affected versions

18.*
18.11.1-2
18.11.1-3
18.11.1-4
18.11.1-5
18.11.1-6
18.11.1-7
18.11.1-8
18.11.1-9
18.11.1-10
18.11.1-11
18.11.1-12
18.11.1-13
18.11.1-14
18.11.1-15
18.11.1-16
18.11.1-17
18.11.1-18
18.11.10-0
18.11.10-1
18.11.10-2
18.11.10-3
18.11.10-4
18.11.10-5
18.11.10-6
18.11.10-7
18.11.10-8
18.11.10-9
18.11.10-10
18.11.10-11
18.11.10-12

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-cvqu-2sh3-wnzt-7rp7.json"
teleport-18-fips

Package

Name
teleport-18-fips
Purl
pkg:deb/dhi/teleport-18-fips

Affected ranges

Type
ECOSYSTEM
Events
Introduced
18.11.1-2

Affected versions

18.*
18.11.1-2
18.11.1-3
18.11.1-4
18.11.1-5
18.11.1-6
18.11.1-7
18.11.1-8
18.11.1-9
18.11.1-10
18.11.1-11
18.11.1-12
18.11.1-13
18.11.1-14
18.11.1-15
18.11.1-16
18.11.1-17
18.11.1-18
18.11.10-0
18.11.10-1
18.11.10-2
18.11.10-3
18.11.10-4
18.11.10-5
18.11.10-6
18.11.10-7
18.11.10-8
18.11.10-9
18.11.10-10
18.11.10-11
18.11.10-12

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-cvqu-2sh3-wnzt-7rp7.json"
teleport-18

Package

Name
teleport-18
Purl
pkg:deb/dhi/teleport-18

Affected ranges

Type
ECOSYSTEM
Events
Introduced
18.11.1-2

Affected versions

18.*
18.11.1-2
18.11.1-3
18.11.1-4
18.11.1-5
18.11.1-6
18.11.1-7
18.11.1-8
18.11.1-9
18.11.1-10
18.11.1-11
18.11.1-12
18.11.1-13
18.11.1-14
18.11.1-15
18.11.1-16
18.11.1-17
18.11.1-18
18.11.10-0
18.11.10-1
18.11.10-2
18.11.10-3
18.11.10-4
18.11.10-5
18.11.10-6
18.11.10-7
18.11.10-8
18.11.10-9
18.11.10-10
18.11.10-11
18.11.10-12

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-cvqu-2sh3-wnzt-7rp7.json"
vector

Package

Name
vector
Purl
pkg:deb/dhi/vector

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0.58.0-0

Affected versions

0.*
0.58.0-0
0.59.0-0
0.60.0-0
0.61.0-0
0.62.0-0
0.62.0-1
0.62.0-2

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-cvqu-2sh3-wnzt-7rp7.json"