CVE-2026-40611

High

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.

SeverityHigh
CVSS8.8
Exploit probability—
ProductGithub.com/go-acme/lego/v4
PublishedApr 21, 2026
First seenApr 21, 2026

How to fix

Update
  • github.com/go-acme/lego/v44.34.0 or later

Affected products

ProductAffected versionsFixed in
github.com/go-acme/lego/v4Gov < 4.34.04.34.0
github.com/go-acme/lego/v3Gov ≤ 3.9.0—
github.com/go-acme/legoGov ≤ 2.7.2—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-40611 · Github.com/go-acme/lego/v4 · Dark Radar