CVE-2025-58759
Datahihi1 Tinyenv vulnerability
TinyEnv is an environment variable loader for PHP applications. In versions 1.0.9 and 1.0.10, TinyEnv did not properly strip inline comments inside .env values. This could lead to unexpected behavior or misconfiguration, where variables contain unintended characters (including # or comment text). Applications depending on strict environment values may expose logic errors, insecure defaults, or failed authentication. The issue is fixed in v1.0.11. Users should upgrade to the latest patched version. As a temporary workaround, avoid using inline comments in .env files, or sanitize loaded values manually.
Affected products
Tinyenv. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Datahihi1 Tinyenv runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/datahihi1/tiny-env/security/advisories/GHSA-72cm-7236-h43r · Vendor Advisory
- github.com/datahihi1/tiny-env/commit/69b7b885e6cfbf07f470fb3512360e0caa95521e
- nvd.nist.gov/vuln/detail/CVE-2025-58759
- github.com/advisories/GHSA-72cm-7236-h43r
- nvd.nist.gov/vuln/detail/CVE-2025-58759
- cve.org/CVERecord?id=CVE-2025-58759
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.