{"answers":{"affected":"7 open source packages ship an affected version, including github.com/go-acme/lego/v4, github.com/go-acme/lego and github.com/go-acme/lego/v3.","exploited":"There is no known exploitation of CVE-2025-54799 in the wild and no public exploit code.","fix":"Upgrade github.com/go-acme/lego/v4 to 4.25.2 or later.","what":"CVE-2025-54799 is a low-severity vulnerability in go-acme lego, published on 7 Aug 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-54799 and fix it if it is affected.\n\nWhat it is: CVE-2025-54799 is a low-severity vulnerability in go-acme lego, published on 7 Aug 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2025-54799 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/go-acme/lego/v4 (Go): affected all versions; fixed in 4.25.2\n- github.com/go-acme/lego/v4 (Go): affected all versions; fixed in 4.25.2\n- github.com/go-acme/lego/v4 (Go): affected all versions; fixed in 4.25.2\n- github.com/go-acme/lego (Go): affected all versions up to 4.25.1; no fix listed\n- github.com/go-acme/lego (Go): affected all versions up to 4.25.1; no fix listed\n- github.com/go-acme/lego/v3 (Go): affected all versions up to 4.25.1; no fix listed\n- github.com/go-acme/lego/v3 (Go): affected all versions up to 4.25.1; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-54799/ (Markdown: https://insights.sbomify.com/CVE-2025-54799/index.md)","id":"CVE-2025-54799","markdown":"https://insights.sbomify.com/CVE-2025-54799/index.md","name":"CVE-2025-54799","record":{"aliases":["CLEANSTART-2026-HZ83743","DEBIAN-CVE-2025-54799","GHSA-q82r-2j7m-9rv4","GO-2025-3847","MINI-2mv5-3crg-jv2p","MINI-fg45-x2pv-34gp","UBUNTU-CVE-2025-54799"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Go ACME client library","requires_auth":"none","summary":"Attackers can intercept ACME protocol traffic if HTTP URLs are used, exposing sensitive account and request identifiers due to missing HTTPS enforcement.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":2.3,"severity":"low","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-319","name":"Cleartext Transmission of Sensitive Information"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Lego does not enforce HTTPS","id":"CVE-2025-54799","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2025"},"n_packages":7,"n_references":2,"next":{"headline":"Hydra persistent XSS in build metrics","id":"CVE-2025-54800"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["4.25.1"],"package":"github.com/go-acme/lego","purl":null,"source":"GHSA-q82r-2j7m-9rv4"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["4.25.1"],"package":"github.com/go-acme/lego","purl":"pkg:golang/github.com/go-acme/lego","source":"GHSA-q82r-2j7m-9rv4"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["4.25.1"],"package":"github.com/go-acme/lego/v3","purl":null,"source":"GHSA-q82r-2j7m-9rv4"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["4.25.1"],"package":"github.com/go-acme/lego/v3","purl":"pkg:golang/github.com/go-acme/lego/v3","source":"GHSA-q82r-2j7m-9rv4"},{"ecosystem":"Go","fixed":["4.25.2"],"introduced":["0"],"last_affected":[],"package":"github.com/go-acme/lego/v4","purl":null,"source":"GHSA-q82r-2j7m-9rv4"},{"ecosystem":"Go","fixed":["4.25.2"],"introduced":["0"],"last_affected":[],"package":"github.com/go-acme/lego/v4","purl":"pkg:golang/github.com/go-acme/lego/v4","source":"GHSA-q82r-2j7m-9rv4"},{"ecosystem":"Go","fixed":["4.25.2"],"introduced":["0"],"last_affected":[],"package":"github.com/go-acme/lego/v4","purl":"pkg:golang/github.com/go-acme/lego/v4","source":"GO-2025-3847"}],"prev":{"headline":"tmp does not restrict arbitrary temporary file / directory write via symbolic link `dir` parameter","id":"CVE-2025-54798"},"products":["lego"],"published":"2025-08-07","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-08-07","vendors":["go-acme"]},"summary":"Attackers can intercept ACME protocol traffic if HTTP URLs are used, exposing sensitive account and request identifiers due to missing HTTPS enforcement.","url":"https://insights.sbomify.com/CVE-2025-54799/"}