SecurityContext

CVE-2026-40611: Lego - Path Traversal

  • Cve: CVE-2026-40611
  • Name: Lego - Path Traversal
  • 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.
  • Impact: A malicious ACME server can write or delete arbitrary files with the privileges of the Lego process, potentially leading to system compromise.
  • Remediation: Upgrade to version 4.34.0 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_write, denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.00435
  • Epss percentile: 0.38505
  • Assignee: [email protected]
  • Published at: 2026-04-21T18:16:52Z
  • Age in days: 217
  • Modified at: 2026-10-26T21:10:00Z
  • References total: 5
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-40611
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/go-acme/lego/security/advisories/GHSA-qqx8-2xmm-jrv8
https://access.redhat.com/errata/RHSA-2026:21772
https://access.redhat.com/security/cve/CVE-2026-40611
https://bugzilla.redhat.com/show_bug.cgi?id=2460233
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40611.json

Projects

RepositoryLink kindsIndexedUrl
go-acme/legopackage, security_advisoryyes/v1/repositories/go-acme/lego

Index

  • Repositories: 16
  • Repositories high signal: 4
  • Packages: 3

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts