Vulnerability · Published Aug 27, 2021 · Assigned by GitHub_M
CVE-2021-39174Configuration leak
High 8.8
In plain English
A high-severity security flaw in Cachet from fiveai. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 5.0% (higher than 92% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | cachethq/cachet | 2.5.1 | GHSA-88f9-7xxh-c688 |
Affected products (as reported)
Weakness: CWE-75 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/fiveai/Cachet/releases/tag/v2.5.1 x_refsource_MISC
- https://github.com/fiveai/Cachet/security/advisories/GHSA-88f9-7xxh-c688 x_refsource_CONFIRM
- https://blog.sonarsource.com/cachet-code-execution-via-laravel-configuration-injection/ x_refsource_MISC