PT-2026-33383 · Lego · Lego

CVE-2026-40611

·

Published

2026-04-16

·

Updated

2026-08-10

CVSS v3.1

8.8

High

VectorAV: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

CVE-2026-40611
GHSA-QQX8-2XMM-JRV8
GO-2026-5593
OPENSUSE-SU-2026:21551-1
SUSE-SU-2026:23216-1
SUSE-SU-2026:23227-1

Affected Products

Lego