Environment Variable Loader Vulnerability in TinyEnv by datahihi1
CVE-2025-58758
5.1MEDIUM
What is CVE-2025-58758?
The TinyEnv environment variable loader for PHP applications has a notable issue in versions 1.0.1 through 1.0.10 where it does not enforce the existence of the '.env' file when loading environment variables. This oversight can lead to scenarios where missing configuration files are ignored, resulting in insecure defaults or erroneous deployment settings. Users are strongly urged to upgrade to version 1.0.11 or later to mitigate these risks. To ensure application security in the interim, users should manually verify that the '.env' file exists before initializing TinyEnv.
Affected Version(s)
tiny-env >= 1.0.1, < 1.0.3 < 1.0.1, 1.0.3
tiny-env >= 1.0.9, < 1.0.11 < 1.0.9, 1.0.11