CVE-2025-58759 Details
Description
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.
A vulnerability exists in TinyEnv, a PHP environment variable loader, in versions 1.0.9 and 1.0.10. The issue arises because the software failed to properly remove inline comments from .env file values. This flaw could result in misconfigurations or unexpected behavior, as environment variables might include unintended characters or comment text. Applications that rely on precise environment values could encounter logic errors, insecure defaults, or authentication failures.
The vulnerability has been fixed in TinyEnv version 1.0.11. Users are advised to upgrade to this version. As a temporary measure, avoid using inline comments in .env files or manually sanitize the loaded values.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 10, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/datahihi1/tiny-env/security/advisories/GHSA-72cm-7236-h43r | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| datahihi1 tinyenv | >= 1.0.9, < 1.0.11 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 8, 2025 | Initial Analysis | [email protected] |
| Sep 9, 2025 | New CVE Received | [email protected] |