{"id":"CVE-2021-39172","aliases":["CVE-2021-39172","GHSA-9jxw-cfrh-jxq6"],"related":[],"kind":"vulnerability","state":"published","title":"New line injection during configuration edition","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAuthenticated 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.\n\n### Patches\n\nThis issue was addressed by improving `UpdateConfigCommandHandler` and preventing the use of new lines characters in new configuration values.\n\n### Workarounds\n\nOnly allow trusted source IP addresses to access to the administration dashboard.\n\n### References\n\n- https://blog.sonarsource.com/cachet-code-execution-via-laravel-configuration-injection\n\n### For more information\n\nIf you have any questions or comments about this advisory, you can contact:\n- The original reporters, by sending an email to vulnerability.research [at] sonarsource.com;\n- The maintainers, by opening an issue on this repository.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Cachet es un sistema de páginas de estado de código abierto. versiones anteriores a 2.5.1, unos usuarios autenticados, independientemente de sus privilegios (Usuario o Administrador), pueden explotar una nueva inyección de línea en la funcionalidad configuration edition (por ejemplo, la configuración del correo) y obtener una ejecución de código arbitrario en el servidor. Este problema fue solucionado en versión 2.5.1, al mejorar \"UpdateConfigCommandHandler\" y evitando el uso de caracteres de nuevas líneas en los nuevos valores de configuración. Como solución, sólo permita que direcciones IP de origen confiable accedan al panel de administración.","source":"nvd"}],"published":"2021-08-27T22:50:09.000Z","modified":"2026-07-08T06:28:23.404Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-93"],"affected":[{"ranges":[{"version":"< 2.5.1","status":"affected"}],"vendor":"fiveai","product":"Cachet","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.5.1"}],"ecosystem":"Packagist","package":"cachethq/cachet","purl":"pkg:composer/cachethq/cachet","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.5.1"}],"vendor":"catchethq","product":"catchet","cpe":"cpe:2.3:a:catchethq:catchet:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/fiveai/Cachet/security/advisories/GHSA-9jxw-cfrh-jxq6","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/fiveai/Cachet/releases/tag/v2.5.1","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://blog.sonarsource.com/cachet-code-execution-via-laravel-configuration-injection/","tags":["exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39172","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/fiveai/Cachet/commit/6442976c25930cb370c65a22784b9caee7ed1de2","tags":["web"],"sources":["ghsa"]},{"url":"https://blog.sonarsource.com/cachet-code-execution-via-laravel-configuration-injection","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fiveai/Cachet","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-39172","url":"https://www.cve.org/CVERecord?id=CVE-2021-39172","licence":"CVE Terms of Use","modified":"2024-08-04T01:58:18.282Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9jxw-cfrh-jxq6","url":"https://github.com/advisories/GHSA-9jxw-cfrh-jxq6","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:23.404Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-39172","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39172","licence":"Public domain","modified":"2026-06-17T04:03:14.670Z"}],"updatedAt":"2026-11-25T22:58:03.533Z","epss":{"score":0.29172,"percentile":0.98205,"date":"2026-12-01T12:00:22.000Z"}}