CVE-2025-54799: Lego does not enforce HTTPS
Vulnerability summary
CVE-2025-54799 is a low (CVSS 2.3) vulnerability in go-acme lego. EPSS estimates a 0.22% chance of exploitation in the next 30 days, higher than 12.3% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 2 · Related 11Timeline
- 07-08-2025PublishedVulnerability first disclosed.
- 07-08-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated6.0MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:UDiffers
- OSV · DebianEcosystem advisory · calculated6.0MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XDiffers
- OSV · WolfiEcosystem advisory · calculated6.0MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:UDiffers
- OSV · GoEcosystem advisory · calculated6.0MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:UDiffers
- OSV · ChainguardEcosystem advisory · calculated6.0MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:UDiffers
- NVDNIST2.3LowCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.22%
Chance of exploitation in the next 30 days
Percentile
12%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.22% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard9 products
- sftpgo< 2.6.6-r8
- terraform-provider-acme< 2.35.0-r1
- terraform-provider-acme-fips< 2.35.0-r1
- traefik-2.11< 2.11.28-r1
- traefik-3.3< 3.3.7-r6
Wolfi4 products
- sftpgo< 2.6.6-r8
- terraform-provider-acme< 2.35.0-r1
- traefik-3.3< 3.3.7-r6
- traefik-3.4< 3.4.5-r1
Github.com/go-acme/lego2 products
- v3≤ 4.25.1
- v4< 4.25.2
Debian1 product
- golang-github-xenolf-legoAll versions (No fix recorded) | < 4.35.2-1
Github.com/go-acme1 product
- lego≤ 4.25.1
Go-acme1 product
- lego< 4.25.2
Ubuntu1 product
- golang-github-xenolf-legoAll versions (No fix recorded)
7 vendors · 19 products
References
8 links- github.com/go-acme/legoPACKAGE