CVE-2024-32875: Hugo - Server-Side Template Injection
- Cve: CVE-2024-32875
- Name: Hugo - Server-Side Template Injection
- Description: Hugo is a static site generator. Starting in version 0.123.0 and prior to version 0.125.3, title arguments in Markdown for links and images not escaped in internal render hooks. Hugo users who are impacted are those who have these hooks enabled and do not trust their Markdown content files. The issue is patched in v0.125.3. As a workaround, replace the templates with user defined templates or disable the internal templates.
- Impact: Untrusted Markdown content can exploit the vulnerability, potentially leading to security issues or content manipulation.
- Remediation: Update Hugo to version 0.125.3 or later.
- Vulnerability type: template_injection
- Vulnerability impact: client_script_exec
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00537
- Epss percentile: 0.46129
- Assignee: [email protected]
- Published at: 2024-04-23T21:15:48Z
- Age in days: 945
- Modified at: 2026-06-17T07:30:35Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-32875
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| gohugo:hugo | >= 0.123.0, < 0.125.3; = 0.123.0 | no | adp_cpes, cna_alias_text | /v1/products/gohugo/hugo |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| gohugoio/hugo | commit, fix, package, releases, security_advisory | yes | /v1/repositories/gohugoio/hugo |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts