OS Command Injection Affecting hugo package, versions <0.79.1-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.47% (73rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-HUGO-18168823
  • published22 Jul 2026
  • disclosed21 Dec 2020

Introduced: 21 Dec 2020

CVE-2020-26284  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade Echo:latest hugo to version 0.79.1-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream hugo package and not the hugo package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1