CVE-2021-39174
JSON

8.8high

Configuration leak

Severity
8.8high CVSS:3.1 by GitHub_M
Exploit likelihood
5.01% (higher than 92% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-88f9-7xxh-c688

Description

Cachet is an open source status page system. Prior to version 2.5.1, authenticated users, regardless of their privileges (User or Admin), can leak the value of any configuration entry of the dotenv file, e.g. the application secret (`APP_KEY`) and various passwords (email, database, etc). This issue was addressed in version 2.5.1 by improving `UpdateConfigCommandHandler` and preventing the use of nested variables in the resulting dotenv configuration file. As a workaround, only allow trusted source IP addresses to access to the administration dashboard.

Affected

Product or packageVersionsReported by
fiveai Cachet< 2.5.1CVE List
cachethq/cachet (Packagist)before 2.5.1GitHub Advisory Database
catchethq catchetbefore 2.5.1NVD

All scores

GitHub_M8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD6.5medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:P/A:P

Classification

What each source says

CVE List

Cachet is an open source status page system. Prior to version 2.5.1, authenticated users, regardless of their privileges (User or Admin), can leak the value of any configuration entry of the dotenv file, e.g. the application secret (`APP_KEY`) and various passwords (email, database, etc). This issue was addressed in version 2.5.1 by improving `UpdateConfigCommandHandler` and preventing the use of nested variables in the resulting dotenv configuration file. As a workaround, only allow trusted source IP addresses to access to the administration dashboard.

GitHub Advisory Database
Impact

Authenticated users, regardless of their privileges (User or Admin), can leak the value of any configuration entry of the dotenv file, e.g. the application secret (APP_KEY) and various passwords (email, database, etc).

Patches

This issue was addressed by improving UpdateConfigCommandHandler and preventing the use of nested variables in the resulting dotenv configuration file.

Workarounds

Only allow trusted source IP addresses to access to the administration dashboard.

References

Further technical details are available at https://blog.sonarsource.com/cachet-code-execution-via-laravel-configuration-injection.

For more information

If you have any questions or comments about this advisory, you can contact:

  • The original reporters, by sending an email to vulnerability.research [at] sonarsource.com;
  • The maintainers, by opening an issue on this repository.
NVD (es)

Cachet es un sistema de páginas de estado de código abierto. Versiones anteriores a 2.5.1, unos usuarios autenticados, independientemente de sus privilegios (Usuario o Administrador), podían filtrar el valor de cualquier entrada de configuración del archivo dotenv, por ejemplo, el secreto de la aplicación ("APP_KEY") y varias contraseñas (correo electrónico, base de datos, etc). Este problema fue solucionado en versión 2.5.1, al mejorar "UpdateConfigCommandHandler" y previniendo el uso de variables anidadas en el archivo de configuración dotenv resultante. Como solución, sólo permita que direcciones IP de origen confiable accedan al panel de administración.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-39174 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-88f9-7xxh-c688 changed 2026-07-08CC-BY-4.0
NVDCVE-2021-39174 changed 2026-06-17Public domain