{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-40611","id":"CVE-2026-40611","title":"Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider","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 fixe","descriptionLong":"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.","published":"2026-04-21T17:58:35.221Z","updated":"2026-10-28T02:30:45.590361805Z","reserved":"2026-04-14T14:07:59.642Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"0b0ca135-0b70-47e7-9f44-1890c2a1c46c"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"redhat-SADP"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["go-acme lego"],"affectedProducts":[{"vendor":"go-acme","product":"lego","defaultStatus":null,"versions":[{"version":"< 4.34.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/go-acme/lego/v4","purl":"pkg:golang/github.com/go-acme/lego/v4","ranges":["<4.34.0"],"fixed":["4.34.0"],"advisory":"GHSA-qqx8-2xmm-jrv8"},{"ecosystem":"Go","name":"github.com/go-acme/lego/v3","purl":"pkg:golang/github.com/go-acme/lego/v3","ranges":["<=3.9.0"],"fixed":[],"advisory":"GHSA-qqx8-2xmm-jrv8"},{"ecosystem":"Go","name":"github.com/go-acme/lego","purl":"pkg:golang/github.com/go-acme/lego","ranges":["<=2.7.2"],"fixed":[],"advisory":"GHSA-qqx8-2xmm-jrv8"}],"cwes":["CWE-22"],"aliases":["GHSA-qqx8-2xmm-jrv8","GO-2026-5593"],"references":[{"url":"https://github.com/go-acme/lego/security/advisories/GHSA-qqx8-2xmm-jrv8","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-40611","tags":["vdb-entry","x_refsource_REDHAT","advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2460233","tags":["issue-tracking","x_refsource_REDHAT","report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40611.json","tags":["x_sadp-csaf-vex","web"]},{"url":"https://access.redhat.com/errata/RHSA-2026:21772","tags":["vendor-advisory","x_refsource_REDHAT","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40611.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40611","tags":["advisory"]},{"url":"https://github.com/go-acme/lego","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00435,"epssPercentile":0.38486,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-40611","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40611","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-40611","ok":true,"note":"3 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-qqx8-2xmm-jrv8","ok":true,"note":"GHSA-qqx8-2xmm-jrv8"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-40611","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}