Vulnerability · Published Aug 27, 2021 · Assigned by GitHub_M
CVE-2021-39172New line injection during configuration edition
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 29.2% (higher than 98% 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 exploit a new line injection in the configuration edition feature (e.g. mail settings) and gain arbitrary code execution on the server. This issue was addressed in version 2.5.1 by improving `UpdateConfigCommandHandler` and preventing the use of new lines characters in new configuration values. 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-9jxw-cfrh-jxq6 |
Affected products (as reported)
Weakness: CWE-93 · 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/security/advisories/GHSA-9jxw-cfrh-jxq6 x_refsource_CONFIRM
- https://github.com/fiveai/Cachet/releases/tag/v2.5.1 x_refsource_MISC
- https://blog.sonarsource.com/cachet-code-execution-via-laravel-configuration-injection/ x_refsource_MISC