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

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-16T21:28:55.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-qqx8-2xmm-jrv8, GO-2026-5593
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- go-acme lego: < 4.34.0
- devspaces/traefik-rhel9: no versions given (not affected: from 1779786779 before *)
- github.com/go-acme/lego/v4 (Go): before 4.34.0
- github.com/go-acme/lego/v3 (Go): up to 3.9.0
- github.com/go-acme/lego (Go): up to 2.7.2

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/go-acme/lego/security/advisories/GHSA-qqx8-2xmm-jrv8> (exploit, advisory, web)
- <https://access.redhat.com/security/cve/CVE-2026-40611> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2460233> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40611.json>
- <https://access.redhat.com/errata/RHSA-2026:21772> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40611> (advisory)
- <https://github.com/go-acme/lego> (package)

## Sources

- CVE List: [CVE-2026-40611](https://www.cve.org/CVERecord?id=CVE-2026-40611), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-qqx8-2xmm-jrv8](https://github.com/advisories/GHSA-qqx8-2xmm-jrv8), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5593](https://pkg.go.dev/vuln/GO-2026-5593), CC-BY-4.0, modified 2026-07-24
- NVD: [CVE-2026-40611](https://nvd.nist.gov/vuln/detail/CVE-2026-40611), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40611 · Whole record: https://cve.day/CVE-2026-40611.json · Rebuilt by cve.day 2026-11-25T22:59:19.128Z
