Security mailing lists by PureSourceCode

CVE-2025-58759

MEDIUM 6.5CVSS 3.1

TinyEnv: Inline comments not stripped properly in .env values

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.

Published
9 Sep 2025
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-20
Also known as
GHSA-72cm-7236-h43r
Sources
NVDJSONOSV GHSA-72cm-7236-h43rJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD datahihi1 tinyenv
cpe:2.3:a:datahihi1:tinyenv:*:*:*:*:*:*:*:*
>= 1.0.9, < 1.0.11 1.0.11
OSV Packagist datahihi1/tiny-env >= 1.0.9, < 1.0.11 1.0.11

References

History

  • 25 Nov 2026 20:58 UTC · NVD: first stored (published 9 Sep 2025)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 9 Sep 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.