# CVE-2021-39172: New line injection during configuration edition

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 29.2%, higher than 98% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-08-27T22:50:09.000Z
- Modified: 2026-07-08T06:28:23.404Z
- Also known as: GHSA-9jxw-cfrh-jxq6
- Weaknesses: CWE-93
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- fiveai Cachet: < 2.5.1
- cachethq/cachet (Packagist): before 2.5.1
- catchethq catchet: before 2.5.1

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://blog.sonarsource.com/cachet-code-execution-via-laravel-configuration-injection/> (exploit, third-party-advisory)
- <https://github.com/fiveai/Cachet/security/advisories/GHSA-9jxw-cfrh-jxq6> (third-party-advisory, web)
- <https://github.com/fiveai/Cachet/releases/tag/v2.5.1> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-39172> (advisory)
- <https://github.com/fiveai/Cachet/commit/6442976c25930cb370c65a22784b9caee7ed1de2> (web)
- <https://blog.sonarsource.com/cachet-code-execution-via-laravel-configuration-injection> (web)
- <https://github.com/fiveai/Cachet> (package)

## Sources

- CVE List: [CVE-2021-39172](https://www.cve.org/CVERecord?id=CVE-2021-39172), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-9jxw-cfrh-jxq6](https://github.com/advisories/GHSA-9jxw-cfrh-jxq6), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-39172](https://nvd.nist.gov/vuln/detail/CVE-2021-39172), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-39172 · Whole record: https://cve.day/CVE-2021-39172.json · Rebuilt by cve.day 2026-11-25T22:58:03.533Z
