Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/go-acme/lego/v3
  4. ›
  5. CVE-2026-40611

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

April 16, 2026 (updated April 27, 2026)

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.

References

  • github.com/advisories/GHSA-qqx8-2xmm-jrv8
  • github.com/go-acme/lego/security/advisories/GHSA-qqx8-2xmm-jrv8
  • nvd.nist.gov/vuln/detail/CVE-2026-40611

Code Behaviors & Features

Detect and mitigate CVE-2026-40611 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 3.9.0

Solution

Unfortunately, there is no solution available yet.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/go-acme/lego/v3/CVE-2026-40611.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:05 +0000.