CVE-2026-40611

Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider

Published Apr 21, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-qqx8-2xmm-jrv8 ACME Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
History
Type Values Removed Values Added
First Time appeared Go-acme
Go-acme lego
Vendors & Products Go-acme
Go-acme lego
Type Values Removed Values Added
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.
Title Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 15, 2026, 1:00 AM
Reserved
Apr 14, 2026, 2:07 PM
Status
Deferred
Published
Apr 21, 2026, 6:16 PM
Modified
Oct 26, 2026, 9:10 PM
Severity
Important
Public date
Apr 21, 2026, 5:58 PM