CVE-2026-40611
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.
How to fix
- github.com/go-acme/lego/v44.34.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| github.com/go-acme/lego/v4Go | v < 4.34.0 | 4.34.0 |
| github.com/go-acme/lego/v3Go | v ≤ 3.9.0 | — |
| github.com/go-acme/legoGo | v ≤ 2.7.2 | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.