Security mailing lists by PureSourceCode

CVE-2020-26284

HIGH 8.5CVSS 3.1

Hugo can execute a binary from the current directory on Windows

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.

Published
21 Dec 2020
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-78
Also known as
GHSA-8j34-9876-pvfq
Sources
NVDJSONOSV GHSA-8j34-9876-pvfqJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.5 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.7 CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
OSV GitHub CVSS 3.1 HIGH 7.7 CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 8.5 AV:N/AC:M/Au:S/C:C/I:C/A:C

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD gohugo hugo
cpe:2.3:a:gohugo:hugo:*:*:*:*:*:windows:*:*
< 0.79.1 0.79.1
OSV Go github.com/gohugoio/hugo < 0.79.1 0.79.1

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 21 Dec 2020)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 23 Jun 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.