# CVE-2025-58759: TinyEnv: Inline comments not stripped properly in .env values

- Severity: Medium 5.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-09-09T19:52:39.014Z
- Modified: 2026-06-17T09:44:53.340Z
- Also known as: GHSA-72cm-7236-h43r
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- datahihi1 tiny-env: >= 1.0.9, < 1.0.11
- datahihi1/tiny-env (Packagist): from 1.0.9 before 1.0.11
- datahihi1 tinyenv: from 1.0.9 before 1.0.11

## Every score

- GitHub_M: CVSS:3.1 5.1 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.1 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/datahihi1/tiny-env/security/advisories/GHSA-72cm-7236-h43r> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-58759> (advisory)
- <https://github.com/datahihi1/tiny-env/commit/69b7b885e6cfbf07f470fb3512360e0caa95521e> (web)
- <https://github.com/datahihi1/tiny-env> (package)

## Sources

- CVE List: [CVE-2025-58759](https://www.cve.org/CVERecord?id=CVE-2025-58759), CVE Terms of Use, modified 2025-09-10
- GitHub Advisory Database: [GHSA-72cm-7236-h43r](https://github.com/advisories/GHSA-72cm-7236-h43r), CC-BY-4.0, modified 2025-09-10
- NVD: [CVE-2025-58759](https://nvd.nist.gov/vuln/detail/CVE-2025-58759), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-58759 · Whole record: https://cve.day/CVE-2025-58759.json · Rebuilt by cve.day 2026-11-25T22:59:04.460Z
