CVE-2025-54799
Lego does not enforce HTTPS
Also known as GHSA-q82r-2j7m-9rv4, GO-2025-3847
Mitigation
- Upgrade github.com/go-acme/lego/v4 to 4.25.2 or later.
Who should check
- Projects that depend on Go package github.com/go-acme/lego (<= 4.25.1)
- Projects that depend on Go package github.com/go-acme/lego/v3 (<= 4.25.1)
- Projects that depend on Go package github.com/go-acme/lego/v4 (< 4.25.2)
- Anyone running go-acme lego < 4.25.2
Vulnerability facts
- Affected
- github.com/go-acme/lego <= 4.25.1; github.com/go-acme/lego/v3 <= 4.25.1; github.com/go-acme/lego/v4 < 4.25.2
- Fixed in
- 4.25.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 2.3 (v4.0, CNA)CVSS: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:UOpen in CVSS calculator
Show all 12 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Attack requirements: Present
- Privileges required: None
- User interaction: Passive
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- Exploit maturity: Unreported
- EPSS
- 0.35% chance of exploitation in 30 days (percentile 21, 2026-11-28)
- CWE
- CWE-319
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/go-acme/lego | <= 4.25.1 | — | osv |
| Go github.com/go-acme/lego/v3 | <= 4.25.1 | — | osv |
| Go github.com/go-acme/lego/v4 | < 4.25.2 | 4.25.2 | osv |
| go-acme lego | < 4.25.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-54799. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-54799.md Affected: github.com/go-acme/lego <= 4.25.1; github.com/go-acme/lego/v3 <= 4.25.1; github.com/go-acme/lego/v4 < 4.25.2 Fixed in: 4.25.2 Steps: 1. Search this machine and project for github.com/go-acme/lego (Go), github.com/go-acme/lego/v3 (Go), github.com/go-acme/lego/v4 (Go), go-acme lego: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2025-54799 being exploited?
There is no confirmed exploitation: CVE-2025-54799 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-28).
How serious is CVE-2025-54799?
Low: CVSS 2.3 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2025-54799?
github.com/go-acme/lego <= 4.25.1; github.com/go-acme/lego/v3 <= 4.25.1; github.com/go-acme/lego/v4 < 4.25.2.
Is there a fix for CVE-2025-54799?
Yes. Fixed in 4.25.2. Upgrade github.com/go-acme/lego/v4 to 4.25.2 or later.
How do I check if I'm affected by CVE-2025-54799?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.