# CVE-2020-26284: Hugo can execute a binary from the current directory on Windows

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.47%, higher than 74% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-12-21T22:40:15.000Z
- Modified: 2026-09-10T03:49:05.702Z
- Also known as: GHSA-8j34-9876-pvfq
- Weaknesses: CWE-78
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gohugoio hugo: < 0.79.1
- github.com/gohugoio/hugo (Go): before 0.79.1
- gohugo hugo: before 0.79.1

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:2.0 8.5 High `AV:N/AC:M/Au:S/C:C/I:C/A:C`

## References

- <https://github.com/golang/go/issues/38736> (exploit, patch, third-party-advisory, web)
- <https://github.com/gohugoio/hugo/security/advisories/GHSA-8j34-9876-pvfq> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-26284> (advisory)

## Sources

- CVE List: [CVE-2020-26284](https://www.cve.org/CVERecord?id=CVE-2020-26284), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-8j34-9876-pvfq](https://github.com/advisories/GHSA-8j34-9876-pvfq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2020-26284](https://nvd.nist.gov/vuln/detail/CVE-2020-26284), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-26284 · Whole record: https://cve.day/CVE-2020-26284.json · Rebuilt by cve.day 2026-11-25T22:57:56.348Z
