{"id":"GHSA-8j34-9876-pvfq","summary":"Hugo can execute a binary from the current directory on Windows","details":"## 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.","aliases":["CVE-2020-26284"],"modified":"2026-07-08T05:59:27.522636791Z","published":"2021-06-23T17:28:26Z","related":["CGA-2xm2-qwmg-9pwh"],"database_specific":{"severity":"HIGH","nvd_published_at":"2020-12-21T23:15:00Z","github_reviewed":true,"cwe_ids":["CWE-78"],"github_reviewed_at":"2021-05-21T18:15:45Z"},"references":[{"type":"WEB","url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-8j34-9876-pvfq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26284"},{"type":"WEB","url":"https://github.com/golang/go/issues/38736"}],"affected":[{"package":{"name":"github.com/gohugoio/hugo","ecosystem":"Go","purl":"pkg:golang/github.com/gohugoio/hugo"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.79.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/06/GHSA-8j34-9876-pvfq/GHSA-8j34-9876-pvfq.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N"}]}