CVE-2025-54799 Lego does not enforce HTTPS
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed 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
- https://github.com/go-acme/lego/security/advisories/GHSA-q82r-2j7m-9rv4 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/go-acme/lego/commit/238454b5f74f3cfcbb244ff0d0dc914a4ad44b96 patch
- github.com product
- Debian Security Tracker CVE-2025-54799 vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking