CVEfocus › CVE database › CVE-2025-54799

CVE-2025-54799Lego does not enforce HTTPS

CVSS 2.3 LowEPSS 0.4% (higher than 21% of CVEs)Published 2025-08-07Updated 2025-08-07Assigner: GitHub_M

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.

CWE-319

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

2Fixed
8Fix pending
2Under investigation
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10golang-github-xenolf-legoFix pendingUBUNTU-CVE-2025-54799
Ubuntu 26.04golang-github-xenolf-legoUnder investigationUBUNTU-CVE-2025-54799
Ubuntu 25.10golang-github-xenolf-legoWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-54799
Ubuntu 24.04golang-github-xenolf-legoFix pendingUBUNTU-CVE-2025-54799
Ubuntu 22.04golang-github-xenolf-legoUnder investigationUBUNTU-CVE-2025-54799
Ubuntu 20.04golang-github-xenolf-legoFix pendingUBUNTU-CVE-2025-54799
Ubuntu 18.04golang-github-xenolf-legoFix pendingUBUNTU-CVE-2025-54799
Debian 14golang-github-xenolf-legoFixed4.35.2-1DEBIAN-CVE-2025-54799
Debian 13golang-github-xenolf-legoFix pendingDEBIAN-CVE-2025-54799
Debian 12golang-github-xenolf-legoFix pendingDEBIAN-CVE-2025-54799
Go librarygithub.com/go-acme/legoFix pendingGHSA-q82r-2j7m-9rv4
Go librarygithub.com/go-acme/lego/v3Fix pendingGHSA-q82r-2j7m-9rv4
Go librarygithub.com/go-acme/lego/v4Fixed4.25.2GO-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.

References

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.