CVSS 3.1
8.8 highCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HHigh (8.8) in go-acme lego. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/go-acme/lego/v4 4.34.0.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:Hgithub.com/go-acme/lego/v4 (Go): fixed in 4.34.0Explain CVE-2026-40611 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40611?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40611?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40611 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| go-acme lego | < 4.34.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-qqx8-2xmm-jrv8 | Go | github.com/go-acme/lego/v4 | <4.34.0 | 4.34.0 |
| GHSA-qqx8-2xmm-jrv8 | Go | github.com/go-acme/lego/v3 | <=3.9.0 | no fix published |
| GHSA-qqx8-2xmm-jrv8 | Go | github.com/go-acme/lego | <=2.7.2 | no fix published |
| GO-2026-5593 | Go | github.com/go-acme/lego/v4 | <4.34.0 | 4.34.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13 | golang-github-xenolf-lego | no fix listed | DEBIAN-CVE-2026-40611 |
| Debian | 14 | golang-github-xenolf-lego | 4.35.2-1 | DEBIAN-CVE-2026-40611 |
| Ubuntu | 18.04:LTS, 20.04:LTS, 22.04:LTS and 4 more | golang-github-xenolf-lego | no fix listed | UBUNTU-CVE-2026-40611 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | govulncheck-vulndb | 0.0.20260727T201416-160000.1.1 | SUSE-SU-2026:23216-1 SUSE-SU-2026:23227-1 |
| openSUSE | Leap 16.0 | govulncheck-vulndb | 0.0.20260727T201416-160000.1.1 | openSUSE-SU-2026:21551-1 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.
Red Hat rates this Important.
The `lego` client, utilized in Red Hat OpenShift Dev Spaces, is susceptible to a path traversal vulnerability within its webroot HTTP-01 challenge provider. A malicious ACME server could exploit this flaw by sending a specially crafted challenge token, enabling arbitrary file write or deletion on the system running `lego`. The impact of this flaw is directly limited to the level of privileges the process running the `lego` client has, since the attacker would be able to create, write or delete only files that the lego's running UID has permission to perform the analogue operation.
To exploit this vulnerability the user needs to be tricked to connect to a malicious ACME server or the attacker needs to firstly compromise the ACME server to send the crafted challenge token in order to trigger the path traversal vulnerability.
To mitigate this issue, ensure that the `lego` client only interacts with trusted ACME servers. Additionally, run the `lego` process with the least necessary privileges and in a restricted environment to limit the potential impact of arbitrary file operations. This may involve containerization or specific filesystem access controls.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat OpenShift Dev Spaces 3.28 | devspaces/traefik-rhel9:1779786779 | Fixed 2026-05-28 | RHSA-2026:21772 |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40611.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.