PT-2025-5603
CVE-2025-24959
·
Published
2025-02-03
·
Updated
2025-02-04
Description by
CVSS 3.1
5.2
MediumMetricsAV:A/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions:
zx versions prior to 8.3.2
Description:
An attacker with control over environment variable values can inject unintended environment variables into
process.env. This can lead to arbitrary command execution or unexpected behavior in applications that rely on environment variables for security-sensitive operations. Applications that process untrusted input and pass it through dotenv.stringify are particularly vulnerable.Recommendations:
For versions prior to 8.3.2, update to version 8.3.2 to mitigate the vulnerability.
If upgrading is not feasible, sanitize user-controlled environment variable values before passing them to
dotenv.stringify. Specifically, avoid using , , and backticks in values, or enforce strict validation of environment variables before usage.Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾