#VU126357 Path traversal in lego - CVE-2026-40611

 

#VU126357 Path traversal in lego - CVE-2026-40611

Published: April 16, 2026


Vulnerability identifier: #VU126357
Vulnerability risk: High
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2026-40611
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
lego
Software vendor:
go-acme

Description

The vulnerability allows a remote attacker to write or delete arbitrary files.

The vulnerability exists due to path traversal in the webroot HTTP-01 challenge provider when processing a crafted ACME challenge token. A remote attacker can supply a token containing traversal sequences to write or delete arbitrary files.

User interaction is required to run lego against a malicious or compromised ACME server with the HTTP-01 webroot challenge solver enabled.


Remediation

Install security update from vendor's website.

External links