CVE-2026-40611
published high CVSS 3.1 · 8.8Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| go-acme | — | lego< 4.34.0 | Affected | Not stated | GitHub_M |
| Red Hat | — | devspaces/traefik-rhel9Red Hat OpenShift Dev Spaces 3.28 · 1779786779 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
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.
A flaw was found in lego, the Let's Encrypt client and ACME library written in Go. A malicious ACME (Automated Certificate Management Environment) server can exploit a path traversal vulnerability in the webroot HTTP-01 challenge provider. By supplying a specially crafted challenge token containing directory traversal sequences, the server can cause lego to write or delete files in arbitrary locations on the system where lego is running, potentially leading to system compromise.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| go-acme | lego | < 4.34.0 (affected) | GitHub_M · cna |
| Red Hat | Red Hat OpenShift Dev Spaces 3.28 | 1779786779 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
Weaknesses
2- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
5- https://access.redhat.com/errata/RHSA-2026:21772
- https://access.redhat.com/security/cve/CVE-2026-40611
- RHBZ#2460233 https://bugzilla.redhat.com/show_bug.cgi?id=2460233
- https://github.com/go-acme/lego/security/advisories/GHSA-qqx8-2xmm-jrv8
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40611.json
Provider assertions
3GitHub_M · cna
Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
redhat-SADP · adp
github.com/go-acme/lego: Lego: Arbitrary file write and deletion via path traversal from a malicious ACME server
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b3f025fd51be8f20a78c38a6e1beb1f41f27c6938a2329d8f0e3a82274c4d26e
- Ingested
- 23 Sep 2026, 09:13:21 UTC
- Source record
- Official CVE record