CVE-2021-39172
mediumpriority · attend · 55EPSS 0.292 · 98 %ileexploit · PoCEUUSEPSS · scored 2026-10-26
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.5–8.8
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-9jxw-cfrh-jxq6Cachet vulnerable to new line injection during configuration edition2021-08-30ghsa · osvUS
### Impact 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. ### Patches This issue was addressed by improving `UpdateConfigCommandHandler` and preventing the use of new lines characters in new configuration values. ### Workarounds Only allow trusted source IP addresses to access to the administration dashboard. ### References - 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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (10)
External citations — patches, advisories, analysis.
- https://blog.sonarsource.com/cachet-code-execution-via-laravel-configuration-injection/cnnvd
- https://github.com/fiveai/Cachet/releases/tag/v2.5.1cnnvd
- https://github.com/fiveai/Cachet/security/advisories/GHSA-9jxw-cfrh-jxq6cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-39172cnnvd
- https://blog.sonarsource.com/cachet-code-execution-via-laravel-configuration-injection/enisa_euvd
- https://github.com/fiveai/Cachet/releases/tag/v2.5.1enisa_euvd
- https://github.com/fiveai/Cachet/security/advisories/GHSA-9jxw-cfrh-jxq6enisa_euvd
- https://blog.sonarsource.com/cachet-code-execution-via-laravel-configuration-injection/ExploitThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan