# CVE-2025-54799: Lego does not enforce HTTPS

- Severity: Low 2.3 (CVSS:4.0, scored by GitHub_M) `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:U`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-08-06T17:08:52.000Z
- Modified: 2026-09-10T03:50:27.302Z
- Also known as: GHSA-q82r-2j7m-9rv4, GO-2025-3847
- Related: CGA-rf2h-qpxv-88h9
- Weaknesses: CWE-319
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- go-acme lego: < 4.25.2
- github.com/go-acme/lego (Go): up to 4.25.1
- github.com/go-acme/lego/v3 (Go): up to 4.25.1
- github.com/go-acme/lego/v4 (Go): before 4.25.2

## Every score

- GitHub_M: CVSS:4.0 2.3 Low `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:U`
- GitHub: CVSS:4.0 Low `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:U`

## References

- <https://github.com/go-acme/lego/security/advisories/GHSA-q82r-2j7m-9rv4> (advisory, web)
- <https://github.com/go-acme/lego/commit/238454b5f74f3cfcbb244ff0d0dc914a4ad44b96> (fix, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54799> (advisory)
- <https://github.com/go-acme/lego> (package)

## Sources

- CVE List: [CVE-2025-54799](https://www.cve.org/CVERecord?id=CVE-2025-54799), CVE Terms of Use, modified 2025-08-07
- GitHub Advisory Database: [GHSA-q82r-2j7m-9rv4](https://github.com/advisories/GHSA-q82r-2j7m-9rv4), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-3847](https://pkg.go.dev/vuln/GO-2025-3847), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-54799](https://nvd.nist.gov/vuln/detail/CVE-2025-54799), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-54799 · Whole record: https://cve.day/CVE-2025-54799.json · Rebuilt by cve.day 2026-11-25T22:59:02.174Z
