7.7high
Hugo can execute a binary from the current directory on Windows
- Severity
- 7.7high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.47% (higher than 74% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-8j34-9876-pvfq
Description
Hugo is a fast and Flexible Static Site Generator built in Go. Hugo depends on Go's `os/exec` for certain features, e.g. for rendering of Pandoc documents if these binaries are found in the system `%PATH%` on Windows. In Hugo before version 0.79.1, if a malicious file with the same name (`exe` or `bat`) is found in the current working directory at the time of running `hugo`, the malicious command will be invoked instead of the system one. Windows users who run `hugo` inside untrusted Hugo sites are affected. Users should upgrade to Hugo v0.79.1. Other than avoiding untrusted Hugo sites, there is no workaround.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gohugoio hugo | < 0.79.1 | CVE List |
| github.com/gohugoio/hugo (Go) | before 0.79.1 | GitHub Advisory Database |
| gohugo hugo | before 0.79.1 | NVD |
All scores
| GitHub_M | 7.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N |
| GitHub | 7.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N |
| NVD | 8.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | 8.5high CVSS:2.0 | AV:N/AC:M/Au:S/C:C/I:C/A:C |
Classification
What each source says
CVE List
Hugo is a fast and Flexible Static Site Generator built in Go. Hugo depends on Go's `os/exec` for certain features, e.g. for rendering of Pandoc documents if these binaries are found in the system `%PATH%` on Windows. In Hugo before version 0.79.1, if a malicious file with the same name (`exe` or `bat`) is found in the current working directory at the time of running `hugo`, the malicious command will be invoked instead of the system one. Windows users who run `hugo` inside untrusted Hugo sites are affected. Users should upgrade to Hugo v0.79.1. Other than avoiding untrusted Hugo sites, there is no workaround.
GitHub Advisory Database
Impact
Hugo depends on Go's os/exec for certain features, e.g. for rendering of Pandoc documents if these binaries are found in the system %PATH% on Windows. However, if a malicious file with the same name (exe or bat) is found in the current working directory at the time of running hugo, the malicious command will be invoked instead of the system one.
Windows users who run hugo inside untrusted Hugo sites are affected.
Patches
Users should upgrade to Hugo v0.79.1.
NVD (es)
Hugo es un generador de sitios estáticos rápido y flexible integrado en Go. Hugo depende del "os/exec" de Go para determinadas funcionalidades por ejemplo, para la representación de documentos Pandoc si estos binarios se encuentran en el sistema "%PATH%" en Windows. En Hugo anterior a versión 0.79.1, si un archivo malicioso con el mismo nombre ("exe" o "bat") se encuentra en el directorio de trabajo actual en el momento de ejecutar "hugo", el comando malicioso será invocado en lugar del sistema. Los usuarios de Windows que ejecutan "hugo" dentro de sitios de Hugo no confiables están afectados. Los usuarios deben actualizar a Hugo versión v0.79.1. Aparte de evitar los sitios de Hugo que no confiables, no existe una solución alternativa
References
| https://github.com/gohugoio/hugo/security/advisories/GHSA-8j34-9876-pvfq | patch, third-party-advisory, web | |
| https://github.com/golang/go/issues/38736 | exploit, patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-26284 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-26284 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8j34-9876-pvfq changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2020-26284 changed 2026-06-17 | Public domain |