Skip to content

CVE-2025-54799 Lego does not enforce HTTPS

LowCVSS 2.3 EPSS 0.26%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

Let's Encrypt client and ACME library written in Go (Lego). In versions 4.25.1 and below, the github.com/go-acme/lego/v4/acme/api package (thus the lego library and the lego cli as well) don't enforce HTTPS when talking to CAs as an ACME client. Unlike the http-01 challenge which solves an ACME challenge over unencrypted HTTP, the ACME protocol requires HTTPS when a client communicates with the CA to performs ACME functions. However, the library fails to enforce HTTPS both in the original discover URL (configured by the library user) and in the subsequent addresses returned by the CAs in the directory and order objects. If users input HTTP URLs or CAs misconfigure endpoints, protocol operations occur over HTTP instead of HTTPS. This compromises privacy by exposing request/response details like account and request identifiers to network attackers. This was fixed in version 4.25.2.

Upgrade path

9 packages: 2 fixed, 6 with no fix yet.

PackageAffectedFixed inStatus
debian/golang-github-xenolf-lego(Debian 12) = 4.9.1-1; = 4.9.1-2; = 4.9.1-3; = 4.9.1-4 +6 more No fix listed No fix yet
debian/golang-github-xenolf-lego(Debian 13) = 4.9.1-2; = 4.9.1-3; = 4.9.1-4; = 4.35.2-1 +5 more No fix listed No fix yet
ubuntu/golang-github-xenolf-lego(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/golang-github-xenolf-lego(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/golang-github-xenolf-lego(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/golang-github-xenolf-lego(Ubuntu 26.10) All versions No fix listed No fix yet
debian/golang-github-xenolf-lego(Debian 14) < 4.35.2-1; = 4.9.1-2; = 4.9.1-3; = 4.9.1-4 4.35.2-1 Fixed
go-acme github.com/go-acme/lego(Go) < 4.25.2; <= 4.25.1 4.25.2 Fixed
go-acme github.com/go-acme/lego = < 4.25.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
go-acme github.com/go-acme/lego(Go) <= 4.25.1 No fix listed
go-acme github.com/go-acme/lego(Go) < 4.25.2 4.25.2
debian/golang-github-xenolf-lego(Debian:12) All versions No fix listed
debian/golang-github-xenolf-lego(Debian:12) = 4.35.2-1 No fix listed
debian/golang-github-xenolf-lego(Debian:12) = 4.35.2-2 No fix listed
debian/golang-github-xenolf-lego(Debian:12) = 4.35.2-2~bpo13+1 No fix listed
debian/golang-github-xenolf-lego(Debian:12) = 4.35.2-3 No fix listed
debian/golang-github-xenolf-lego(Debian:12) = 4.35.2-3~bpo13+1 No fix listed
debian/golang-github-xenolf-lego(Debian:12) = 4.9.1-1 No fix listed
debian/golang-github-xenolf-lego(Debian:12) = 4.9.1-2 No fix listed
debian/golang-github-xenolf-lego(Debian:12) = 4.9.1-3 No fix listed
debian/golang-github-xenolf-lego(Debian:12) = 4.9.1-4 No fix listed
debian/golang-github-xenolf-lego(Debian:13) All versions No fix listed
debian/golang-github-xenolf-lego(Debian:13) = 4.35.2-1 No fix listed
debian/golang-github-xenolf-lego(Debian:13) = 4.35.2-2 No fix listed
debian/golang-github-xenolf-lego(Debian:13) = 4.35.2-2~bpo13+1 No fix listed
debian/golang-github-xenolf-lego(Debian:13) = 4.35.2-3 No fix listed
debian/golang-github-xenolf-lego(Debian:13) = 4.35.2-3~bpo13+1 No fix listed
debian/golang-github-xenolf-lego(Debian:13) = 4.9.1-2 No fix listed
debian/golang-github-xenolf-lego(Debian:13) = 4.9.1-3 No fix listed
debian/golang-github-xenolf-lego(Debian:13) = 4.9.1-4 No fix listed
debian/golang-github-xenolf-lego(Debian:14) < 4.35.2-1 4.35.2-1
debian/golang-github-xenolf-lego(Debian:14) = 4.9.1-2 No fix listed
debian/golang-github-xenolf-lego(Debian:14) = 4.9.1-3 No fix listed
debian/golang-github-xenolf-lego(Debian:14) = 4.9.1-4 No fix listed
Show 5 more
ProductAffected versionsFixed in
go-acme github.com/go-acme/lego = < 4.25.2 No fix listed
ubuntu/golang-github-xenolf-lego(Ubuntu:22.04) All versions No fix listed
ubuntu/golang-github-xenolf-lego(Ubuntu:24.04) All versions No fix listed
ubuntu/golang-github-xenolf-lego(Ubuntu:26.04) All versions No fix listed
ubuntu/golang-github-xenolf-lego(Ubuntu:26.10) All versions No fix listed

References