CVE-2026-40611: Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
Vulnerability summary
CVE-2026-40611 is a high (CVSS 8.8) Path Traversal vulnerability in go-acme lego. EPSS estimates a 0.55% chance of exploitation in the next 30 days, higher than 44.9% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 3 · Related 4Timeline
- 21-04-2026PublishedVulnerability first disclosed.
- 15-07-2026Last modifiedVulnerability information updated.
Description
Let's Encrypt client and ACME library written in Go (Lego). Prior to 4.34.0, the webroot HTTP-01 challenge provider in lego is vulnerable to arbitrary file write and deletion via path traversal. A malicious ACME server can supply a crafted challenge token containing ../ sequences, causing lego to write attacker-influenced content to any path writable by the lego process. This vulnerability is fixed in 4.34.0.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · GoEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.55%
Chance of exploitation in the next 30 days
Percentile
45%
Versus all other CVEs
30-day change
Increase +0.21 pp
From 0.34% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard7 products
- sftpgo< 2.7.1-r8
- traefik-2.11< 2.11.44-r0
- traefik-3.5All versions (No fix recorded)
- traefik-3.6< 3.6.13-r2
- traefik-fips-2.11< 2.11.44-r0
Github.com/go-acme/lego2 products
- v3≤ 3.9.0
- v4< 4.34.0
Wolfi2 products
- sftpgo< 2.7.1-r8
- traefik-3.6< 3.6.13-r2
Debian1 product
- golang-github-xenolf-legoAll versions (No fix recorded) | < 4.35.2-1
Github.com/go-acme1 product
- lego≤ 2.7.2
Go-acme1 product
- lego< 4.34.0
Ubuntu1 product
- golang-github-xenolf-legoAll versions (No fix recorded)
7 vendors · 15 products
References
11 linksShow all 11 references
- github.com/go-acme/legoPACKAGE