CVE-2025-58759

MEDIUM
Published Sep 9, 2025 Modified Oct 8, 2025 CWE-20

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.

Is your site exposed to CVE-2025-58759?

Run a free security scan — no signup, results in seconds.

CVSS v3.1 Score

5.1
MEDIUM
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Weakness Type (CWE)

CWE-20 Improper Input Validation

Affected Products

Vendor Product
datahihi1 tinyenv

References

Frequently Asked Questions

What is CVE-2025-58759? +
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. It has a CVSS v3.1 base score of 5.1 (MEDIUM).
How severe is CVE-2025-58759? +
CVE-2025-58759 has a CVSS v3.1 score of 5.1 out of 10, rated MEDIUM. This is a medium-severity vulnerability that should be remediated as part of regular maintenance.
What products are affected by CVE-2025-58759? +
CVE-2025-58759 affects products from datahihi1, specifically: tinyenv. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2025-58759? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2025-58759 — free, no signup required.