# CVE-2025-58758: TinyEnv: Missing .env file not required — may cause unexpected behavior

- 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.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-09-09T19:50:18.518Z
- Modified: 2026-06-17T09:44:53.230Z
- Also known as: GHSA-3j7m-5g4q-gfpc
- Weaknesses: CWE-703
- 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.1, 1.0.2, 1.0.9, and 1.0.10, TinyEnv did not require the `.env` file to exist when loading environment variables. This could lead to unexpected behavior where the application silently ignores missing configuration, potentially causing insecure defaults or deployment misconfigurations. The issue has been fixed in version 1.0.11. All users should upgrade to 1.0.11 or later. As a workaround, users can manually verify the existence of the `.env` file before initializing TinyEnv.

(As written by CVE List.)

## Affected

- datahihi1 tiny-env: >= 1.0.1, < 1.0.3; >= 1.0.9, < 1.0.11
- datahihi1/tiny-env (Packagist): before 1.0.3; from 1.0.9 before 1.0.11
- datahihi1 tinyenv: from 1.0.1 before 1.0.3; 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 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`

## References

- <https://github.com/datahihi1/tiny-env/security/advisories/GHSA-3j7m-5g4q-gfpc> (vendor-advisory, web)
- <https://github.com/datahihi1/tiny-env/commit/69b7b885e6cfbf07f470fb3512360e0caa95521e> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-58758> (advisory)
- <https://github.com/datahihi1/tiny-env/commit/7dc656c58bef6050afb8f7a395e38227e31a66df> (web)
- <https://github.com/datahihi1/tiny-env> (package)

## Sources

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

---

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