PT-2025-5603 · Dotenv+1 · Dotenv+1
Arkark
·
Published
2025-02-03
·
Updated
2025-02-04
·
CVE-2025-24959
CVSS v3.1
5.2
Medium
| Vector | AV: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.Exploit
Fix
Special Elements Injection
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Dotenv
Zx