{"id":"CVE-2020-26284","aliases":["CVE-2020-26284","GHSA-8j34-9876-pvfq"],"related":[],"kind":"vulnerability","state":"published","title":"Hugo can execute a binary from the current directory on Windows","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Impact\n\nHugo 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.\n\nWindows users who run `hugo` inside untrusted Hugo sites are affected.\n\n## Patches\nUsers should upgrade to Hugo v0.79.1.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2020-12-21T22:40:15.000Z","modified":"2026-09-10T03:49:05.702Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","score":7.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","score":7.7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:C/I:C/A:C","score":8.5,"rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":"< 0.79.1","status":"affected"}],"vendor":"gohugoio","product":"hugo","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.79.1"}],"ecosystem":"Go","package":"github.com/gohugoio/hugo","purl":"pkg:golang/github.com/gohugoio/hugo","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.79.1"}],"vendor":"gohugo","product":"hugo","cpe":"cpe:2.3:a:gohugo:hugo:*:*:*:*:*:windows:*:*","source":"nvd"}],"references":[{"url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-8j34-9876-pvfq","tags":["patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/golang/go/issues/38736","tags":["exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26284","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-26284","url":"https://www.cve.org/CVERecord?id=CVE-2020-26284","licence":"CVE Terms of Use","modified":"2024-08-04T15:56:03.976Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8j34-9876-pvfq","url":"https://github.com/advisories/GHSA-8j34-9876-pvfq","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:05.702Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-26284","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26284","licence":"Public domain","modified":"2026-06-17T03:07:59.843Z"}],"updatedAt":"2026-11-25T22:57:56.348Z","epss":{"score":0.01468,"percentile":0.74484,"date":"2026-12-01T12:00:22.000Z"}}