PT-2026-33383 · Lego · Lego
Published
2026-04-16
·
Updated
2026-04-23
·
CVE-2026-40611
CVSS v3.1
8.8
High
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Lego versions prior to 4.34.0
Description
The webroot HTTP-01 challenge provider in Lego is subject to arbitrary file write and deletion via path traversal. A malicious ACME server can provide a crafted challenge token containing
../ sequences, which the ChallengePath() function concatenates without validation. This allows the server to influence the file path, causing the software to write or delete content at any location writable by the Lego process. The issue occurs because the software fails to enforce the base64url alphabet constraint for ACME tokens as specified in RFC 8555. The vulnerable logic is present in the ChallengePath() function and the CleanUp() function.Recommendations
Update to version 4.34.0.
Exploit
Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Lego