{"id":"CVE-2025-58759","published":"2025-09-09T19:52:39Z","modified":"2025-09-10T20:15:16Z","title":"TinyEnv: Inline comments not stripped properly in .env values","vendor":"datahihi1","product":"tiny-env","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00206,"percentile":0.10885,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/datahihi1/tiny-env/security/advisories/GHSA-72cm-7236-h43r","tags":["x_refsource_CONFIRM"]}],"priority":{"score":5.7,"factors":[{"name":"EPSS percentile","points":2.18},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"datahihi1","affectedVersions":[{"vendor":"datahihi1","product":"tiny-env","versions":[">= 1.0.9, < 1.0.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-09-10T20:15:03.326522Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"datahihi1/tiny-env","vulnerableRanges":[">=1.0.9, <1.0.11"],"patched":["1.0.11"],"from":["GHSA-72cm-7236-h43r"],"provenance":"source"}],"summary":{"text":"TinyEnv, an environment variable loader for PHP applications developed by datahihi1, fails to properly strip inline comments from values in .env files in versions 1.0.9 and 1.0.10, so variables can carry unintended characters including # and comment text. An attacker with local access and no privileges or user interaction could exploit this through the configuration state, since applications relying on strict environment values may then exhibit logic errors, insecure defaults, or failed authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:07Z"},"euvd":{"id":"EUVD-2025-27476","exploited":false,"provenance":"source"}}