CVE-2025-58759Datahihi1 Tinyenv
Medium 6.5 No auth needed
Follow: this CVE · Datahihi1 · Datahihi1 Tinyenv We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- —
- Auth required
- No
- Published
- Sep 9, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
What happens
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
- Apply the vendor's security update for Tinyenv.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | datahihi1/tiny-env |
≥ 1.0.9 < 1.0.11 |
1.0.11 |
composer require "datahihi1/tiny-env:^1.0.11" |
Per OSV / GitHub Advisories (GHSA-72cm-7236-h43r). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| datahihi1 | tinyenv | ≥ 1.0.9 < 1.0.11 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Vendor Advisory