Skip to content
Heist/ feed
Back to feed
Low

Lego does not enforce HTTPS

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-54799
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 03:53 UTC · Revision 1

Source evidence

Lego does not enforce HTTPS

core-osv · Original source

Published 7 Aug 2025, 00:04 UTC

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.

osv:CVE-2025-54799
Complete source record
{
  "id": "c7f0a4e776c0dc6b9d206738af75e899a9d0b02337052d277b125cdaafef8fcd",
  "url": "https://osv.dev/vulnerability/CVE-2025-54799",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Lego does not enforce HTTPS",
    "summary": "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.",
    "evidence": "osv:CVE-2025-54799",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2025-54799",
      "aliases": [
        "CVE-2025-54799",
        "GHSA-q82r-2j7m-9rv4",
        "GO-2025-3847"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/go-acme/lego",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "8737b36c859540bf102df044bbb8e237c6de814f"
                },
                {
                  "fixed": "238454b5f74f3cfcbb244ff0d0dc914a4ad44b96"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.25.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "238454b5f74f3cfcbb244ff0d0dc914a4ad44b96"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v4.25.1",
            "v4.25.0",
            "v4.24.0",
            "v4.23.1",
            "v4.23.0",
            "v4.22.2",
            "v4.22.1",
            "v4.22.0",
            "v4.21.0",
            "v4.20.4",
            "v4.20.3",
            "v4.20.2",
            "v4.20.1",
            "v4.20.0",
            "v4.19.2",
            "v4.19.1",
            "v4.19.0",
            "v4.18.0",
            "v4.17.4",
            "v4.17.3",
            "v4.17.2",
            "v4.17.1",
            "v4.17.0",
            "v4.16.1",
            "v4.16.0",
            "v4.15.0",
            "v4.14.2",
            "v4.14.1",
            "v4.14.0",
            "v4.13.3",
            "v4.13.2",
            "v4.13.1",
            "v4.13.0",
            "v4.12.3",
            "v4.12.2",
            "v4.12.1",
            "v4.12.0",
            "v4.11.0",
            "v4.10.2",
            "v4.10.1",
            "v4.10.0",
            "v4.9.1",
            "v4.9.0",
            "v4.8.0",
            "v4.7.0",
            "v4.6.0",
            "v4.5.3",
            "v4.5.2",
            "v4.5.1",
            "v4.5.0",
            "v4.4.0",
            "v4.3.1",
            "v4.3.0",
            "v4.2.0",
            "v4.1.3",
            "v4.1.2",
            "v4.1.1",
            "v4.1.0",
            "v4.0.1",
            "v4.0.0",
            "v3.9.0",
            "v3.8.0",
            "v3.7.0",
            "v3.6.0",
            "v3.5.0",
            "v3.4.0",
            "v3.3.0",
            "v3.2.0",
            "v3.1.0",
            "v3.0.2",
            "v3.0.0",
            "v2.7.2",
            "v2.7.1",
            "v2.7.0",
            "v2.6.0",
            "v2.5.0",
            "v2.4.0",
            "v2.3.0",
            "v2.2.0",
            "v2.1.0",
            "v2.0.1",
            "v2.0.0",
            "v1.2.1",
            "v1.2.0",
            "v1.1.0",
            "v1.0.1",
            "v1.0.0",
            "v0.5.0",
            "v0.4.1",
            "v0.4.0",
            "v0.3.1",
            "v0.3.0",
            "v0.2.0",
            "v0.1.1",
            "v0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-54799.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.544820041Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54799.json",
        "https://github.com/go-acme/lego/security/advisories/GHSA-q82r-2j7m-9rv4",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-54799",
        "https://github.com/go-acme/lego/commit/238454b5f74f3cfcbb244ff0d0dc914a4ad44b96"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-319"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54799.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-54799",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517910,
  "published_at": "2025-08-07T00:04:14.718+00:00"
}