5.1medium
TinyEnv: Inline comments not stripped properly in .env values
- Severity
- 5.1medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-72cm-7236-h43r
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| datahihi1 tiny-env | >= 1.0.9, < 1.0.11 | CVE List |
| datahihi1/tiny-env (Packagist) | from 1.0.9 before 1.0.11 | GitHub Advisory Database |
| datahihi1 tinyenv | from 1.0.9 before 1.0.11 | NVD |
All scores
| GitHub_M | 5.1medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| GitHub | 5.1medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
Patches
Fixed in v1.0.11. Users should upgrade to the latest patched version.
Workarounds
As a temporary workaround, avoid using inline comments in .env files, or sanitize loaded values manually.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-58759 changed 2025-09-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-72cm-7236-h43r changed 2025-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-58759 changed 2026-06-17 | Public domain |