CVE-2026-40611 Details
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 path traversal vulnerability has been identified in the webroot HTTP-01 challenge provider of the Let's Encrypt client and ACME library written in Go, known as Lego. This vulnerability, present in all versions prior to 4.34.0, allows a malicious ACME server to craft challenge tokens with '../' sequences. When these tokens are processed, Lego can be tricked into writing or deleting files at arbitrary locations accessible by the Lego process. The issue arises because the challenge file path is constructed by directly concatenating the ACME token without proper validation, enabling tokens to traverse directories and manipulate files outside the intended webroot.
Users should update to Lego version 4.34.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 21, 2026CISA-ADP
Assessed Apr 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:21772 | redhat-SADP | |
| https://access.redhat.com/security/cve/CVE-2026-40611 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2460233 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40611.json | redhat-SADP | |
| https://github.com/go-acme/lego/security/advisories/GHSA-qqx8-2xmm-jrv8 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/go-acme/lego/security/advisories/GHSA-qqx8-2xmm-jrv8 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | redhat-SADP |
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| github.com/go-acme/lego | All versions |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 21, 2026 | CVE Modified | CISA-ADP |
| Apr 21, 2026 | New CVE Received | [email protected] |
Volerion