Cachet vulnerable to new line injection during configuration edition
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
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.
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Paquete de Composer | cachethq/cachet | < 2.5.1 | 2.5.1 |
Referencias
- https://github.com/fiveai/Cachet/security/advisories/GHSA-9jxw-cfrh-jxq6
- https://nvd.nist.gov/vuln/detail/CVE-2021-39172
- https://github.com/fiveai/Cachet/commit/6442976c25930cb370c65a22784b9caee7ed1de2
- https://blog.sonarsource.com/cachet-code-execution-via-laravel-configuration-injection
- https://github.com/fiveai/Cachet
- https://github.com/fiveai/Cachet/releases/tag/v2.5.1
- Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Debilidad (CWE)
CWE-93- Plataforma
- Composer
- Paquete
cachethq/cachet- Publicada
- 30.08.2021
- Actualizado
- 11.10.2026 10:22
Fuentes y licencias
OSV / GitHub Advisory Database - GHSA-9jxw-cfrh-jxq6 - CC BY 4.0
Historial de vulnerabilidades: cachethq/cachet
Todas las vulnerabilidades publicadas de este paquete (Paquete de Composer), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 6
- Primera → última
- 08.2021 10.2026
- Sin corrección
- 2
- Explotada en ataques
- 0
Distribución por gravedad
- Crítica 1
- Alta 4
- Media 1
Divulgaciones por año
- 2021: 4
- 2022: 0
- 2023: 1
- 2024: 0
- 2025: 0
- 2026: 1
-
Cachet vulnerable to new line injection during configuration edition esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.