High severity · published Apr 21, 2026
CVE-2026-40611
Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
8.8
CVSS
0.4%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 36% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LE
lego · go-acme
< 4.34.0 · source: vendor
RH
Red Hat OpenShift Dev Spaces 3.28 · Red Hat
All versions, or not specified · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-40611
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-40611
github.com
https://github.com/go-acme/lego/security/advisories/GHSA-qqx8-2xmm-jrv8
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:21772
access.redhat.com
https://access.redhat.com/security/cve/CVE-2026-40611
bugzilla.redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=2460233
security.access.redhat.com
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40611.json
