libz-sys build script leaks environment variables in the build directory
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.
Recorded fixes — libz-sys: 1.1.31. Check your release branch.
Exploitation not established
| Affected range | Recorded fix |
|---|---|
| From 1.0.21 before 1.1.31Semantic versions | 1.1.31 |
Version evidence: OSV · RUSTSEC-2026-0418
View original version evidence
{
"ranges": [
{
"events": [
{
"introduced": "1.0.21"
},
{
"fixed": "1.1.31"
}
],
"type": "SEMVER"
}
],
"versions": []
}