CVE-2025-54799Lego does not enforce HTTPS
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.
What to do
Fixed builds are available from Debian, Go: see the table below for the fixed version per release.
Debian, Go, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | golang-github-xenolf-lego | Fix pending | UBUNTU-CVE-2025-54799 | |
| Ubuntu 26.04 | golang-github-xenolf-lego | Under investigation | UBUNTU-CVE-2025-54799 | |
| Ubuntu 25.10 | golang-github-xenolf-lego | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-54799 | |
| Ubuntu 24.04 | golang-github-xenolf-lego | Fix pending | UBUNTU-CVE-2025-54799 | |
| Ubuntu 22.04 | golang-github-xenolf-lego | Under investigation | UBUNTU-CVE-2025-54799 | |
| Ubuntu 20.04 | golang-github-xenolf-lego | Fix pending | UBUNTU-CVE-2025-54799 | |
| Ubuntu 18.04 | golang-github-xenolf-lego | Fix pending | UBUNTU-CVE-2025-54799 | |
| Debian 14 | golang-github-xenolf-lego | Fixed | 4.35.2-1 | DEBIAN-CVE-2025-54799 |
| Debian 13 | golang-github-xenolf-lego | Fix pending | DEBIAN-CVE-2025-54799 | |
| Debian 12 | golang-github-xenolf-lego | Fix pending | DEBIAN-CVE-2025-54799 | |
| Go library | github.com/go-acme/lego | Fix pending | GHSA-q82r-2j7m-9rv4 | |
| Go library | github.com/go-acme/lego/v3 | Fix pending | GHSA-q82r-2j7m-9rv4 | |
| Go library | github.com/go-acme/lego/v4 | Fixed | 4.25.2 | GO-2025-3847 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- go-acme lego: affected: < 4.25.2
References
- https://github.com/go-acme/lego/security/advisories/GHSA-q82r-2j7m-9rv4
- https://github.com/go-acme/lego/commit/238454b5f74f3cfcbb244ff0d0dc914a4ad44b96
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.