Description (CNA)
Grafana OSS and Grafana Enterprise did not safely resolve symbolic links when extracting plugin archives. A crafted plugin archive can chain relative symbolic link entries to escape the plugin installation directory, writing arbitrary files and an executable backend binary outside that directory. The dropped executable runs with the privileges of the Grafana server process, resulting in remote code execution. Plugin archives are extracted before their signature is verified, so a valid plugin signature does not prevent the write. An operator can therefore be affected by installing a plugin that appears legitimate, as well as by installing a plugin from an arbitrary archive using grafana-cli, the GF_INSTALL_PLUGINS environment variable, or preinstall configuration. Grafana Enterprise is affected because it includes the same plugin extraction code as Grafana OSS.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Grafana / Grafana OSS | affected 11.6.0 through 11.6.17; affected 12.0.0; affected 12.1.0; affected 12.2.0; affected 12.3.0; affected 12.4.0 through 12.4.10; affected 13.0.0 through 13.0.8; affected 13.1.0 through 13.1.5; affected 13.2.0 through 13.2.1 |
| Grafana / Grafana Enterprise | affected 11.6.0 through 11.6.17; affected 12.0.0; affected 12.1.0; affected 12.2.0; affected 12.3.0; affected 12.4.0 through 12.4.10; affected 13.0.0 through 13.0.8; affected 13.1.0 through 13.1.5; affected 13.2.0 through 13.2.1 |
CWE
CWE-59, CWE-94, CWE-22
References
ADP enrichment
No English description supplied.
No references supplied.