Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-3j7m-5g4q-gfpc

Опубликовано: 09 сент. 2025
Источник: github
Github: Прошло ревью
CVSS3: 5.1

Описание

TinyEnv: Missing .env file not required — may cause unexpected behavior

Impact

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.

Affected versions:

  • 1.0.1 → 1.0.2
  • 1.0.9 → 1.0.10

Patches

The issue has been fixed in version 1.0.11.
All users should upgrade to 1.0.11 or later.

Workarounds

As a workaround, users can manually verify the existence of the .env file before initializing TinyEnv, for example:

if (!file_exists(__DIR__ . '/.env')) { throw new RuntimeException('.env file is missing!'); }

Пакеты

Наименование

datahihi1/tiny-env

composer
Затронутые версииВерсия исправления

< 1.0.3

1.0.3

Наименование

datahihi1/tiny-env

composer
Затронутые версииВерсия исправления

>= 1.0.9, < 1.0.11

1.0.11

EPSS

Процентиль: 9%
0.00032
Низкий

5.1 Medium

CVSS3

Дефекты

CWE-703

Связанные уязвимости

CVSS3: 5.1
nvd
5 месяцев назад

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.

EPSS

Процентиль: 9%
0.00032
Низкий

5.1 Medium

CVSS3

Дефекты

CWE-703