{"id":"CVE-2020-26284","published":"2020-12-21T22:40:15Z","modified":"2024-08-04T15:56:03Z","title":"Hugo can execute a binary from the current directory on Windows","vendor":"gohugoio","product":"hugo","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01468,"percentile":0.73628,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-8j34-9876-pvfq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/golang/go/issues/38736","tags":["x_refsource_MISC"]}],"priority":{"score":20.1,"factors":[{"name":"EPSS percentile","points":14.73},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"gohugoio","affectedVersions":[{"vendor":"gohugoio","product":"hugo","versions":["< 0.79.1"]}],"affected":[{"ecosystem":"Go","package":"github.com/gohugoio/hugo","vulnerableRanges":["<0.79.1"],"patched":["0.79.1"],"from":["GHSA-8j34-9876-pvfq"],"provenance":"source"}],"euvd":{"id":"EUVD-2021-1294","exploited":false,"provenance":"source"}}