CVE-2025-58758
HIGH 7.3CVSS 3.1TinyEnv: Missing .env file not required — may cause unexpected behavior
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.
- Published
- 9 Sep 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-703
- Also known as
- GHSA-3j7m-5g4q-gfpc
- Sources
- NVDJSONOSV GHSA-3j7m-5g4q-gfpcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | datahihi1 | tinyenvcpe:2.3:a:datahihi1:tinyenv:*:*:*:*:*:*:*:* |
>= 1.0.1, < 1.0.3 | 1.0.3 |
| NVD | datahihi1 | tinyenvcpe:2.3:a:datahihi1:tinyenv:*:*:*:*:*:*:*:* |
>= 1.0.9, < 1.0.11 | 1.0.11 |
| OSV | Packagist | datahihi1/tiny-env | < 1.0.3 | 1.0.3 |
| OSV | Packagist | datahihi1/tiny-env | >= 1.0.9, < 1.0.11 | 1.0.11 |
References
- https://github.com/datahihi1/tiny-env/commit/69b7b885e6cfbf07f470fb3512360e0caa95521e · Patch, WEB
- https://github.com/datahihi1/tiny-env/security/advisories/GHSA-3j7m-5g4q-gfpc · Vendor Advisory, 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
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 9 Sep 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 9 Sep 2025)