CVE-2026-40611: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in go-acme lego
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.
AI Analysis
Technical Summary
The go-acme lego client, used for Let's Encrypt ACME challenges, has a path traversal vulnerability in its webroot HTTP-01 challenge provider in versions before 4.34.0. A malicious ACME server can exploit this by providing a challenge token containing directory traversal sequences (../), which lego does not properly sanitize. This leads to arbitrary file write and deletion on the filesystem paths writable by the lego process. The issue is addressed and fixed in version 4.34.0.
Potential Impact
Successful exploitation allows an unauthenticated remote attacker (a malicious ACME server) to write or delete arbitrary files on the system where lego runs, limited to paths writable by the lego process. This can lead to full compromise of the affected system's confidentiality, integrity, and availability.
Mitigation Recommendations
A fix is available in go-acme lego version 4.34.0. Users should upgrade to version 4.34.0 or later to remediate this vulnerability. Patch status is confirmed by the vendor advisory. No alternative mitigations are documented.
CVE-2026-40611: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in go-acme lego
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 v3.1
Score 8.8high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The go-acme lego client, used for Let's Encrypt ACME challenges, has a path traversal vulnerability in its webroot HTTP-01 challenge provider in versions before 4.34.0. A malicious ACME server can exploit this by providing a challenge token containing directory traversal sequences (../), which lego does not properly sanitize. This leads to arbitrary file write and deletion on the filesystem paths writable by the lego process. The issue is addressed and fixed in version 4.34.0.
Potential Impact
Successful exploitation allows an unauthenticated remote attacker (a malicious ACME server) to write or delete arbitrary files on the system where lego runs, limited to paths writable by the lego process. This can lead to full compromise of the affected system's confidentiality, integrity, and availability.
Mitigation Recommendations
A fix is available in go-acme lego version 4.34.0. Users should upgrade to version 4.34.0 or later to remediate this vulnerability. Patch status is confirmed by the vendor advisory. No alternative mitigations are documented.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-14T14:07:59.642Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-40611","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:21772","vendor":"Red Hat"}]
Threat ID: 69e7bb7219fe3cd2cdedac91
Added to database: 04/21/2026, 18:01:22 UTC
Last enriched: 07/15/2026, 09:11:41 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 156
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.