CVE-2020-26284
JSON

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 packageVersionsReported by
gohugoio hugo< 0.79.1CVE List
github.com/gohugoio/hugo (Go)before 0.79.1GitHub Advisory Database
gohugo hugobefore 0.79.1NVD

All scores

GitHub_M7.7high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
GitHub7.7high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
NVD8.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD8.5high CVSS:2.0AV: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.&#xa0;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.&#xa0;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.&#xa0;Los usuarios de Windows que ejecutan "hugo" dentro de sitios de Hugo no confiables están afectados.&#xa0;Los usuarios deben actualizar a Hugo versión v0.79.1.&#xa0;Aparte de evitar los sitios de Hugo que no confiables, no existe una solución alternativa

References

Sources

SourceRecordLicence
CVE ListCVE-2020-26284 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-8j34-9876-pvfq changed 2026-09-10CC-BY-4.0
NVDCVE-2020-26284 changed 2026-06-17Public domain