{"id":"CVE-2025-54799","published":"2025-08-07T00:04:14Z","modified":"2025-08-07T14:07:32Z","title":"Lego does not enforce HTTPS","vendor":"go-acme","product":"lego","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.3,"severity":"LOW","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00351,"percentile":0.2117,"provenance":"source"},"cwes":[{"id":"CWE-319","name":"Cleartext Transmission of Sensitive Information"}],"references":[{"url":"https://github.com/go-acme/lego/security/advisories/GHSA-q82r-2j7m-9rv4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/go-acme/lego/commit/238454b5f74f3cfcbb244ff0d0dc914a4ad44b96","tags":["x_refsource_MISC"]}],"priority":{"score":5.8,"factors":[{"name":"EPSS percentile","points":4.23},{"name":"CVSS severity","points":1.61}]},"vendorSlug":"go-acme","affectedVersions":[{"vendor":"go-acme","product":"lego","versions":["< 4.25.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-08-07T14:07:23.435795Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/go-acme/lego","vulnerableRanges":["<=4.25.1"],"patched":[],"from":["GHSA-q82r-2j7m-9rv4"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/go-acme/lego/v3","vulnerableRanges":["<=4.25.1"],"patched":[],"from":["GHSA-q82r-2j7m-9rv4"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/go-acme/lego/v4","vulnerableRanges":["<4.25.2"],"patched":["4.25.2"],"from":["GHSA-q82r-2j7m-9rv4","GO-2025-3847"],"provenance":"source"}],"summary":{"text":"The Lego ACME client and library from go-acme (github.com/go-acme/lego/v4/acme/api, including the lego CLI) fails to enforce HTTPS when communicating with certificate authorities, both for the user-supplied discovery URL and for endpoints returned by the CA in directory and order objects. An attacker with network access positioned to observe or intercept traffic can read sensitive protocol details such as account and request identifiers when a plain HTTP URL is supplied or a CA misconfigures its endpoints, and user interaction is required to trigger the exposure.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:32Z"},"euvd":{"id":"EUVD-2025-23896","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-54799","published":"2025-08-07","fixed":"4.25.2","kev":false},{"cve":"CVE-2026-40611","published":"2026-04-21","fixed":"4.34.0","kev":false,"link":{"from":"CVE-2025-54799","to":"CVE-2026-40611","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/go-acme/lego/v4","fromFixed":"4.25.2","toFixed":"4.34.0","daysApart":257}]}}],"package":"Go:github.com/go-acme/lego/v4"}}