{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-39172","id":"CVE-2021-39172","title":"New line injection during configuration edition","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 ch","descriptionLong":"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.","published":"2021-08-27T22:50:09.000Z","updated":"2026-10-20T10:54:53.783065732Z","reserved":"2021-08-16T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":["fiveai Cachet"],"affectedProducts":[{"vendor":"fiveai","product":"Cachet","defaultStatus":null,"versions":[{"status":"affected","version":"< 2.5.1"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"cachethq/cachet","purl":"pkg:composer/cachethq/cachet","ranges":["<2.5.1"],"fixed":["2.5.1"],"advisory":"GHSA-9jxw-cfrh-jxq6"}],"cwes":["CWE-93"],"aliases":["GHSA-9jxw-cfrh-jxq6"],"references":[{"url":"https://github.com/fiveai/Cachet/security/advisories/GHSA-9jxw-cfrh-jxq6","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/fiveai/Cachet/releases/tag/v2.5.1","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","web"]},{"url":"https://blog.sonarsource.com/cachet-code-execution-via-laravel-configuration-injection/","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39172","tags":["advisory"]},{"url":"https://github.com/fiveai/Cachet/commit/6442976c25930cb370c65a22784b9caee7ed1de2","tags":["web"]},{"url":"https://blog.sonarsource.com/cachet-code-execution-via-laravel-configuration-injection","tags":["web"]},{"url":"https://github.com/fiveai/Cachet","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.29172,"epssPercentile":0.98207,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-39172","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39172","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-39172","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-9jxw-cfrh-jxq6","ok":true,"note":"GHSA-9jxw-cfrh-jxq6"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-39172","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":["EPSS 29% with CVSS 8.8"],"attention":null}