p PatchFirst

CVE-2025-54799

CVE-2025-54799 · Lego does not enforce HTTPS

CVSS 2.3 · Low · EPSS 0.3% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="golang-github-xenolf-lego"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • lego

    Versions
    • < 4.25.2: Affected

    No fix published

  • golang-github-xenolf-lego Debian 12

    Versions
    • 4.35.2-1
    • 4.35.2-2
    • 4.35.2-2~bpo13+1
    • 4.35.2-3
    • 4.35.2-3~bpo13+1
    • 4.9.1-1
    All versions (9)
    • 4.9.1-2
    • 4.9.1-3
    • 4.9.1-4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-xenolf-lego Debian 13

    Versions
    • 4.35.2-1
    • 4.35.2-2
    • 4.35.2-2~bpo13+1
    • 4.35.2-3
    • 4.35.2-3~bpo13+1
    • 4.9.1-2
    All versions (8)
    • 4.9.1-3
    • 4.9.1-4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-xenolf-lego Debian 14

    Versions
    • 4.9.1-2
    • 4.9.1-3
    • 4.9.1-4
    Affected ranges
    • ECOSYSTEM: < 4.35.2-1

    Update to 4.35.2-1

  • golang-github-xenolf-lego Ubuntu 18.04 LTS

    Versions
    • 0.3.1-5
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-xenolf-lego Ubuntu 20.04 LTS

    Versions
    • 0.3.1-5
    • 2.7.2+dfsg-1
    • 3.2.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-xenolf-lego Ubuntu 22.04 LTS

    Versions
    • 3.2.0-3.1
    • 4.1.3-3ubuntu1
    • 4.1.3-3ubuntu1.22.04.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-xenolf-lego Ubuntu Pro 24.04 LTS

    Versions
    • 4.9.1-1build1
    • 4.9.1-2
    • 4.9.1-2ubuntu0.24.04.1
    • 4.9.1-2ubuntu0.24.04.2
    • 4.9.1-2ubuntu0.24.04.2+esm1
    • 4.9.1-2ubuntu0.24.04.3
    All versions (8)
    • 4.9.1-2ubuntu0.24.04.3+esm1
    • 4.9.1-2ubuntu0.24.04.3+esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-xenolf-lego Ubuntu 25.10

    Versions
    • 4.9.1-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-xenolf-lego Ubuntu 26.10

    Versions
    • 4.9.1-4
    • 4.35.2-3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-xenolf-lego Ubuntu 26.04 LTS

    Versions
    • 4.9.1-2
    • 4.9.1-3
    • 4.9.1-4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →