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.

Project Subscriptions

No data.

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
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Wed, 22 Apr 2026 00:00:00 +0000

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'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-04-21T19:17:54.210Z

Reserved: 2026-04-14T14:07:59.642Z

Link: CVE-2026-40611

cve-icon Vulnrichment

Updated: 2026-04-21T18:58:11.603Z

cve-icon NVD

Status : Received

Published: 2026-04-21T18:16:52.457

Modified: 2026-04-21T20:16:59.990

Link: CVE-2026-40611

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses