8.8High

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

go-acme lego; Red Hat Red Hat OpenShift Dev Spaces 3.28 Published: (6 months ago)

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.

Weakness (CWE): CWE-22

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
go-acme lego < 4.34.0
openshift devspaces 3.28 —
Red Hat Red Hat OpenShift Dev Spaces 3.28 all versions

References and patches