GHSA-JC37-MGX5-356V
CSV formula injection in host inventory export via osquery-reported host fields
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-JC37-MGX5-356V divulgada · CVSS 4.4 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The host inventory export endpoint (`GET /api/latest/fleet/hosts/report?format=csv`) wrote host fields to CSV without neutralizing values that spreadsheet applications interpret as formulas. Host display fields such as hostname, computer name, hardware serial, hardware model, and OS version are populated from osquery agent reports, so they can be set by anyone who controls an enrolled host or holds an enroll secret.
Impact
An attacker who controlled an enrolled host or held an enroll secret could plant values beginning with `=`, `+`, `-`, `@`, tab, or carriage return in host inventory fields. When a Fleet user exported the host inventory CSV and opened it in a spreadsheet application (Excel, LibreOffice Calc, Google Sheets), the cell was evaluated as a formula, enabling data exfiltration (for example `HYPERLINK` or `WEBSERVICE`) or, on legacy configurations with DDE enabled, command execution on the user's workstation.
The export is reachable by any authenticated role, including global observer. Exploitation requires a Fleet user to export the file, open it in a spreadsheet application, and (in current spreadsheet versions) click through a security warning.
Patches
- v4.92.0
Workarounds
If an immediate upgrade is not possible:
- Open exported CSVs in a text editor, or import them into a spreadsheet as text, rather than opening them directly
- Do not dismiss spreadsheet formula or security warnings when opening exported files
Credits
We thank Jan Kahmen of turingpoint https://www.turingpoint.de for responsibly reporting this issue.
For more information
If you have any questions or comments about this advisory:
Email us at [security@fleetdm.com](mailto:security@fleetdm.com)
Join #fleet in osquery Slack https://join.slack.com/t/osquery/shared_invite/zt-h29zm0gk-s2DBtGUTW4CFel0f0IjTEw
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Gogithub.com/fleetdm/fleet |
Corregida | 4.92.0 | — | — |
4.92.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/fleetdm/fleet/security/advisories/GHSA-jc37-mgx5-356vLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
