CVE-2026-40611go-acme lego
High 8.8 No auth needed
Follow: this CVE · go-acme · go-acme lego We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.1
- 8.8
- EPSS
- —
- Auth required
- No
- Published
- Apr 21, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for lego.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/go-acme/lego |
≤ 2.7.2 |
no fixed version | — |
| Go | github.com/go-acme/lego/v3 |
≤ 3.9.0 |
no fixed version | — |
| Go | github.com/go-acme/lego/v4 |
< 4.34.0 |
4.34.0 |
go get github.com/go-acme/lego/v4@v4.34.0 |
| Go | github.com/go-acme/lego/v4 |
< 4.34.0 |
4.34.0 |
go get github.com/go-acme/lego/v4@v4.34.0 |
Per OSV / GitHub Advisories (GHSA-qqx8-2xmm-jrv8, GO-2026-5593). Check the version in your lockfile before upgrading.
Affected products
- go-acme · lego
- Red Hat · Red Hat OpenShift Dev Spaces 3.28
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21551-1 · Aug 10, 2026 Critical
- Security update for govulncheck-vulndb · SUSE · SUSE-SU-2026:23216-1 · Aug 10, 2026 Critical
- Security update for govulncheck-vulndb · SUSE · SUSE-SU-2026:23227-1 · Aug 10, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.