github.com/go-acme/lego/v3
Let's Encrypt/ACME client and library written in Go
Activity
- Latest release
- 6y ago
- Total releases
- 13
- Cadence
- ~35 days
- Last 12 months
- 0
Reach
- Stars
- 9.9k
Details
- First release
- Aug 07, 2019
| Version | Released | |
|---|---|---|
v3.9.0
minor
2 CVEs
CVE-2026-40611
GHSA-qqx8-2xmm-jrv8
GO-2026-5593
Apr 16, 2026
ACME Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
SummaryThe webroot HTTP-01 challenge provider in lego is vulnerable to arbitrary file write and deletion via path traversal. A malicious ACME server can supply a crafted challenge token containing DetailsThe
The webroot provider in
RFC 8555 Section 8.3 specifies that ACME tokens must only contain characters from the base64url alphabet ( The same vulnerability exists in the
This additionally enables arbitrary file deletion. PoCIn a real attack scenario, the victim uses
The malicious server returns a challenge token containing path traversal sequences The following minimal Go program demonstrates the core vulnerability by directly calling the webroot provider with a crafted token:
Expected output:
ImpactThis is a path traversal vulnerability (CWE-22). Any user running lego with the HTTP-01 challenge solver against a malicious or compromised ACME server is affected. A malicious ACME server can:
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-54799
GHSA-q82r-2j7m-9rv4
GO-2025-3847
Aug 06, 2025
github.com/go-acme/lego/v4/acme/api does not enforce HTTPS
Low
Network
High
None
SummaryIt was discovered that 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. DetailsUnlike 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. This is stated in 6.1 of RFC 8555: https://datatracker.ietf.org/doc/html/rfc8555#section-6.1
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 the library user accidentally inputs an HTTP URL, or the CA similarly misconfigures its endpoints, this will cause the relevant parts of the protocol to be performed over HTTP. This can result, at the very least, in a lost of privacy of the request/response details, such as account and request identifiers (which could be intercepted by an attacker in a privileged network position). We did not investigate whether other more serious threats could result from the ability to impersonate a CA for some of the protocol requests, but enforcing HTTPS usage is definitely the safe choice. ReproducingThis is illustrated in the attached http_acme_test.go. Since it uses private field Core.directory, this test must be placed inside the source directory of https://github.com/go-acme/lego/v4/acme/api to run. Please note that this only checks getting the directory and creating a new account, but other ACME functions are likely impacted as well, such as creating orders, getting and checking order authorizations.
_ References Updated Sep 10, 2026 · Source: OSV.dev |
v3.9.0
minor
Dependencies (46)
+ 38 more |
|
v3.8.0
minor
2 CVEs
CVE-2026-40611
GHSA-qqx8-2xmm-jrv8
GO-2026-5593
Apr 16, 2026
ACME Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
SummaryThe webroot HTTP-01 challenge provider in lego is vulnerable to arbitrary file write and deletion via path traversal. A malicious ACME server can supply a crafted challenge token containing DetailsThe
The webroot provider in
RFC 8555 Section 8.3 specifies that ACME tokens must only contain characters from the base64url alphabet ( The same vulnerability exists in the
This additionally enables arbitrary file deletion. PoCIn a real attack scenario, the victim uses
The malicious server returns a challenge token containing path traversal sequences The following minimal Go program demonstrates the core vulnerability by directly calling the webroot provider with a crafted token:
Expected output:
ImpactThis is a path traversal vulnerability (CWE-22). Any user running lego with the HTTP-01 challenge solver against a malicious or compromised ACME server is affected. A malicious ACME server can:
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-54799
GHSA-q82r-2j7m-9rv4
GO-2025-3847
Aug 06, 2025
github.com/go-acme/lego/v4/acme/api does not enforce HTTPS
Low
Network
High
None
SummaryIt was discovered that 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. DetailsUnlike 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. This is stated in 6.1 of RFC 8555: https://datatracker.ietf.org/doc/html/rfc8555#section-6.1
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 the library user accidentally inputs an HTTP URL, or the CA similarly misconfigures its endpoints, this will cause the relevant parts of the protocol to be performed over HTTP. This can result, at the very least, in a lost of privacy of the request/response details, such as account and request identifiers (which could be intercepted by an attacker in a privileged network position). We did not investigate whether other more serious threats could result from the ability to impersonate a CA for some of the protocol requests, but enforcing HTTPS usage is definitely the safe choice. ReproducingThis is illustrated in the attached http_acme_test.go. Since it uses private field Core.directory, this test must be placed inside the source directory of https://github.com/go-acme/lego/v4/acme/api to run. Please note that this only checks getting the directory and creating a new account, but other ACME functions are likely impacted as well, such as creating orders, getting and checking order authorizations.
_ References Updated Sep 10, 2026 · Source: OSV.dev |
v3.8.0
minor
Dependencies (43)
+ 35 more |
|
v3.7.0
minor
2 CVEs
CVE-2026-40611
GHSA-qqx8-2xmm-jrv8
GO-2026-5593
Apr 16, 2026
ACME Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
SummaryThe webroot HTTP-01 challenge provider in lego is vulnerable to arbitrary file write and deletion via path traversal. A malicious ACME server can supply a crafted challenge token containing DetailsThe
The webroot provider in
RFC 8555 Section 8.3 specifies that ACME tokens must only contain characters from the base64url alphabet ( The same vulnerability exists in the
This additionally enables arbitrary file deletion. PoCIn a real attack scenario, the victim uses
The malicious server returns a challenge token containing path traversal sequences The following minimal Go program demonstrates the core vulnerability by directly calling the webroot provider with a crafted token:
Expected output:
ImpactThis is a path traversal vulnerability (CWE-22). Any user running lego with the HTTP-01 challenge solver against a malicious or compromised ACME server is affected. A malicious ACME server can:
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-54799
GHSA-q82r-2j7m-9rv4
GO-2025-3847
Aug 06, 2025
github.com/go-acme/lego/v4/acme/api does not enforce HTTPS
Low
Network
High
None
SummaryIt was discovered that 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. DetailsUnlike 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. This is stated in 6.1 of RFC 8555: https://datatracker.ietf.org/doc/html/rfc8555#section-6.1
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 the library user accidentally inputs an HTTP URL, or the CA similarly misconfigures its endpoints, this will cause the relevant parts of the protocol to be performed over HTTP. This can result, at the very least, in a lost of privacy of the request/response details, such as account and request identifiers (which could be intercepted by an attacker in a privileged network position). We did not investigate whether other more serious threats could result from the ability to impersonate a CA for some of the protocol requests, but enforcing HTTPS usage is definitely the safe choice. ReproducingThis is illustrated in the attached http_acme_test.go. Since it uses private field Core.directory, this test must be placed inside the source directory of https://github.com/go-acme/lego/v4/acme/api to run. Please note that this only checks getting the directory and creating a new account, but other ACME functions are likely impacted as well, such as creating orders, getting and checking order authorizations.
_ References Updated Sep 10, 2026 · Source: OSV.dev |
v3.7.0
minor
Dependencies (42)
+ 34 more |
|
v3.6.0
minor
2 CVEs
CVE-2026-40611
GHSA-qqx8-2xmm-jrv8
GO-2026-5593
Apr 16, 2026
ACME Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
SummaryThe webroot HTTP-01 challenge provider in lego is vulnerable to arbitrary file write and deletion via path traversal. A malicious ACME server can supply a crafted challenge token containing DetailsThe
The webroot provider in
RFC 8555 Section 8.3 specifies that ACME tokens must only contain characters from the base64url alphabet ( The same vulnerability exists in the
This additionally enables arbitrary file deletion. PoCIn a real attack scenario, the victim uses
The malicious server returns a challenge token containing path traversal sequences The following minimal Go program demonstrates the core vulnerability by directly calling the webroot provider with a crafted token:
Expected output:
ImpactThis is a path traversal vulnerability (CWE-22). Any user running lego with the HTTP-01 challenge solver against a malicious or compromised ACME server is affected. A malicious ACME server can:
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-54799
GHSA-q82r-2j7m-9rv4
GO-2025-3847
Aug 06, 2025
github.com/go-acme/lego/v4/acme/api does not enforce HTTPS
Low
Network
High
None
SummaryIt was discovered that 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. DetailsUnlike 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. This is stated in 6.1 of RFC 8555: https://datatracker.ietf.org/doc/html/rfc8555#section-6.1
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 the library user accidentally inputs an HTTP URL, or the CA similarly misconfigures its endpoints, this will cause the relevant parts of the protocol to be performed over HTTP. This can result, at the very least, in a lost of privacy of the request/response details, such as account and request identifiers (which could be intercepted by an attacker in a privileged network position). We did not investigate whether other more serious threats could result from the ability to impersonate a CA for some of the protocol requests, but enforcing HTTPS usage is definitely the safe choice. ReproducingThis is illustrated in the attached http_acme_test.go. Since it uses private field Core.directory, this test must be placed inside the source directory of https://github.com/go-acme/lego/v4/acme/api to run. Please note that this only checks getting the directory and creating a new account, but other ACME functions are likely impacted as well, such as creating orders, getting and checking order authorizations.
_ References Updated Sep 10, 2026 · Source: OSV.dev |
v3.6.0
minor
Dependencies (42)
+ 34 more |
|
v3.5.0
minor
2 CVEs
CVE-2026-40611
GHSA-qqx8-2xmm-jrv8
GO-2026-5593
Apr 16, 2026
ACME Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
SummaryThe webroot HTTP-01 challenge provider in lego is vulnerable to arbitrary file write and deletion via path traversal. A malicious ACME server can supply a crafted challenge token containing DetailsThe
The webroot provider in
RFC 8555 Section 8.3 specifies that ACME tokens must only contain characters from the base64url alphabet ( The same vulnerability exists in the
This additionally enables arbitrary file deletion. PoCIn a real attack scenario, the victim uses
The malicious server returns a challenge token containing path traversal sequences The following minimal Go program demonstrates the core vulnerability by directly calling the webroot provider with a crafted token:
Expected output:
ImpactThis is a path traversal vulnerability (CWE-22). Any user running lego with the HTTP-01 challenge solver against a malicious or compromised ACME server is affected. A malicious ACME server can:
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-54799
GHSA-q82r-2j7m-9rv4
GO-2025-3847
Aug 06, 2025
github.com/go-acme/lego/v4/acme/api does not enforce HTTPS
Low
Network
High
None
SummaryIt was discovered that 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. DetailsUnlike 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. This is stated in 6.1 of RFC 8555: https://datatracker.ietf.org/doc/html/rfc8555#section-6.1
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 the library user accidentally inputs an HTTP URL, or the CA similarly misconfigures its endpoints, this will cause the relevant parts of the protocol to be performed over HTTP. This can result, at the very least, in a lost of privacy of the request/response details, such as account and request identifiers (which could be intercepted by an attacker in a privileged network position). We did not investigate whether other more serious threats could result from the ability to impersonate a CA for some of the protocol requests, but enforcing HTTPS usage is definitely the safe choice. ReproducingThis is illustrated in the attached http_acme_test.go. Since it uses private field Core.directory, this test must be placed inside the source directory of https://github.com/go-acme/lego/v4/acme/api to run. Please note that this only checks getting the directory and creating a new account, but other ACME functions are likely impacted as well, such as creating orders, getting and checking order authorizations.
_ References Updated Sep 10, 2026 · Source: OSV.dev |
v3.5.0
minor
Dependencies (43)
+ 35 more |
|
v3.4.0
minor
2 CVEs
CVE-2026-40611
GHSA-qqx8-2xmm-jrv8
GO-2026-5593
Apr 16, 2026
ACME Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
SummaryThe webroot HTTP-01 challenge provider in lego is vulnerable to arbitrary file write and deletion via path traversal. A malicious ACME server can supply a crafted challenge token containing DetailsThe
The webroot provider in
RFC 8555 Section 8.3 specifies that ACME tokens must only contain characters from the base64url alphabet ( The same vulnerability exists in the
This additionally enables arbitrary file deletion. PoCIn a real attack scenario, the victim uses
The malicious server returns a challenge token containing path traversal sequences The following minimal Go program demonstrates the core vulnerability by directly calling the webroot provider with a crafted token:
Expected output:
ImpactThis is a path traversal vulnerability (CWE-22). Any user running lego with the HTTP-01 challenge solver against a malicious or compromised ACME server is affected. A malicious ACME server can:
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-54799
GHSA-q82r-2j7m-9rv4
GO-2025-3847
Aug 06, 2025
github.com/go-acme/lego/v4/acme/api does not enforce HTTPS
Low
Network
High
None
SummaryIt was discovered that 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. DetailsUnlike 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. This is stated in 6.1 of RFC 8555: https://datatracker.ietf.org/doc/html/rfc8555#section-6.1
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 the library user accidentally inputs an HTTP URL, or the CA similarly misconfigures its endpoints, this will cause the relevant parts of the protocol to be performed over HTTP. This can result, at the very least, in a lost of privacy of the request/response details, such as account and request identifiers (which could be intercepted by an attacker in a privileged network position). We did not investigate whether other more serious threats could result from the ability to impersonate a CA for some of the protocol requests, but enforcing HTTPS usage is definitely the safe choice. ReproducingThis is illustrated in the attached http_acme_test.go. Since it uses private field Core.directory, this test must be placed inside the source directory of https://github.com/go-acme/lego/v4/acme/api to run. Please note that this only checks getting the directory and creating a new account, but other ACME functions are likely impacted as well, such as creating orders, getting and checking order authorizations.
_ References Updated Sep 10, 2026 · Source: OSV.dev |
v3.4.0
minor
Dependencies (43)
+ 35 more |
|
v3.3.0
minor
2 CVEs
CVE-2026-40611
GHSA-qqx8-2xmm-jrv8
GO-2026-5593
Apr 16, 2026
ACME Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
SummaryThe webroot HTTP-01 challenge provider in lego is vulnerable to arbitrary file write and deletion via path traversal. A malicious ACME server can supply a crafted challenge token containing DetailsThe
The webroot provider in
RFC 8555 Section 8.3 specifies that ACME tokens must only contain characters from the base64url alphabet ( The same vulnerability exists in the
This additionally enables arbitrary file deletion. PoCIn a real attack scenario, the victim uses
The malicious server returns a challenge token containing path traversal sequences The following minimal Go program demonstrates the core vulnerability by directly calling the webroot provider with a crafted token:
Expected output:
ImpactThis is a path traversal vulnerability (CWE-22). Any user running lego with the HTTP-01 challenge solver against a malicious or compromised ACME server is affected. A malicious ACME server can:
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-54799
GHSA-q82r-2j7m-9rv4
GO-2025-3847
Aug 06, 2025
github.com/go-acme/lego/v4/acme/api does not enforce HTTPS
Low
Network
High
None
SummaryIt was discovered that 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. DetailsUnlike 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. This is stated in 6.1 of RFC 8555: https://datatracker.ietf.org/doc/html/rfc8555#section-6.1
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 the library user accidentally inputs an HTTP URL, or the CA similarly misconfigures its endpoints, this will cause the relevant parts of the protocol to be performed over HTTP. This can result, at the very least, in a lost of privacy of the request/response details, such as account and request identifiers (which could be intercepted by an attacker in a privileged network position). We did not investigate whether other more serious threats could result from the ability to impersonate a CA for some of the protocol requests, but enforcing HTTPS usage is definitely the safe choice. ReproducingThis is illustrated in the attached http_acme_test.go. Since it uses private field Core.directory, this test must be placed inside the source directory of https://github.com/go-acme/lego/v4/acme/api to run. Please note that this only checks getting the directory and creating a new account, but other ACME functions are likely impacted as well, such as creating orders, getting and checking order authorizations.
_ References Updated Sep 10, 2026 · Source: OSV.dev |
v3.3.0
minor
Dependencies (42)
+ 34 more |
|
v3.2.0
minor
2 CVEs
CVE-2026-40611
GHSA-qqx8-2xmm-jrv8
GO-2026-5593
Apr 16, 2026
ACME Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
SummaryThe webroot HTTP-01 challenge provider in lego is vulnerable to arbitrary file write and deletion via path traversal. A malicious ACME server can supply a crafted challenge token containing DetailsThe
The webroot provider in
RFC 8555 Section 8.3 specifies that ACME tokens must only contain characters from the base64url alphabet ( The same vulnerability exists in the
This additionally enables arbitrary file deletion. PoCIn a real attack scenario, the victim uses
The malicious server returns a challenge token containing path traversal sequences The following minimal Go program demonstrates the core vulnerability by directly calling the webroot provider with a crafted token:
Expected output:
ImpactThis is a path traversal vulnerability (CWE-22). Any user running lego with the HTTP-01 challenge solver against a malicious or compromised ACME server is affected. A malicious ACME server can:
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-54799
GHSA-q82r-2j7m-9rv4
GO-2025-3847
Aug 06, 2025
github.com/go-acme/lego/v4/acme/api does not enforce HTTPS
Low
Network
High
None
SummaryIt was discovered that 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. DetailsUnlike 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. This is stated in 6.1 of RFC 8555: https://datatracker.ietf.org/doc/html/rfc8555#section-6.1
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 the library user accidentally inputs an HTTP URL, or the CA similarly misconfigures its endpoints, this will cause the relevant parts of the protocol to be performed over HTTP. This can result, at the very least, in a lost of privacy of the request/response details, such as account and request identifiers (which could be intercepted by an attacker in a privileged network position). We did not investigate whether other more serious threats could result from the ability to impersonate a CA for some of the protocol requests, but enforcing HTTPS usage is definitely the safe choice. ReproducingThis is illustrated in the attached http_acme_test.go. Since it uses private field Core.directory, this test must be placed inside the source directory of https://github.com/go-acme/lego/v4/acme/api to run. Please note that this only checks getting the directory and creating a new account, but other ACME functions are likely impacted as well, such as creating orders, getting and checking order authorizations.
_ References Updated Sep 10, 2026 · Source: OSV.dev |
v3.2.0
minor
Dependencies (41)
+ 33 more |
|
v3.1.0
minor
2 CVEs
CVE-2026-40611
GHSA-qqx8-2xmm-jrv8
GO-2026-5593
Apr 16, 2026
ACME Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
SummaryThe webroot HTTP-01 challenge provider in lego is vulnerable to arbitrary file write and deletion via path traversal. A malicious ACME server can supply a crafted challenge token containing DetailsThe
The webroot provider in
RFC 8555 Section 8.3 specifies that ACME tokens must only contain characters from the base64url alphabet ( The same vulnerability exists in the
This additionally enables arbitrary file deletion. PoCIn a real attack scenario, the victim uses
The malicious server returns a challenge token containing path traversal sequences The following minimal Go program demonstrates the core vulnerability by directly calling the webroot provider with a crafted token:
Expected output:
ImpactThis is a path traversal vulnerability (CWE-22). Any user running lego with the HTTP-01 challenge solver against a malicious or compromised ACME server is affected. A malicious ACME server can:
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-54799
GHSA-q82r-2j7m-9rv4
GO-2025-3847
Aug 06, 2025
github.com/go-acme/lego/v4/acme/api does not enforce HTTPS
Low
Network
High
None
SummaryIt was discovered that 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. DetailsUnlike 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. This is stated in 6.1 of RFC 8555: https://datatracker.ietf.org/doc/html/rfc8555#section-6.1
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 the library user accidentally inputs an HTTP URL, or the CA similarly misconfigures its endpoints, this will cause the relevant parts of the protocol to be performed over HTTP. This can result, at the very least, in a lost of privacy of the request/response details, such as account and request identifiers (which could be intercepted by an attacker in a privileged network position). We did not investigate whether other more serious threats could result from the ability to impersonate a CA for some of the protocol requests, but enforcing HTTPS usage is definitely the safe choice. ReproducingThis is illustrated in the attached http_acme_test.go. Since it uses private field Core.directory, this test must be placed inside the source directory of https://github.com/go-acme/lego/v4/acme/api to run. Please note that this only checks getting the directory and creating a new account, but other ACME functions are likely impacted as well, such as creating orders, getting and checking order authorizations.
_ References Updated Sep 10, 2026 · Source: OSV.dev |
v3.1.0
minor
Dependencies (41)
+ 33 more |
|
v3.0.2
patch
2 CVEs
CVE-2026-40611
GHSA-qqx8-2xmm-jrv8
GO-2026-5593
Apr 16, 2026
ACME Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
SummaryThe webroot HTTP-01 challenge provider in lego is vulnerable to arbitrary file write and deletion via path traversal. A malicious ACME server can supply a crafted challenge token containing DetailsThe
The webroot provider in
RFC 8555 Section 8.3 specifies that ACME tokens must only contain characters from the base64url alphabet ( The same vulnerability exists in the
This additionally enables arbitrary file deletion. PoCIn a real attack scenario, the victim uses
The malicious server returns a challenge token containing path traversal sequences The following minimal Go program demonstrates the core vulnerability by directly calling the webroot provider with a crafted token:
Expected output:
ImpactThis is a path traversal vulnerability (CWE-22). Any user running lego with the HTTP-01 challenge solver against a malicious or compromised ACME server is affected. A malicious ACME server can:
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-54799
GHSA-q82r-2j7m-9rv4
GO-2025-3847
Aug 06, 2025
github.com/go-acme/lego/v4/acme/api does not enforce HTTPS
Low
Network
High
None
SummaryIt was discovered that 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. DetailsUnlike 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. This is stated in 6.1 of RFC 8555: https://datatracker.ietf.org/doc/html/rfc8555#section-6.1
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 the library user accidentally inputs an HTTP URL, or the CA similarly misconfigures its endpoints, this will cause the relevant parts of the protocol to be performed over HTTP. This can result, at the very least, in a lost of privacy of the request/response details, such as account and request identifiers (which could be intercepted by an attacker in a privileged network position). We did not investigate whether other more serious threats could result from the ability to impersonate a CA for some of the protocol requests, but enforcing HTTPS usage is definitely the safe choice. ReproducingThis is illustrated in the attached http_acme_test.go. Since it uses private field Core.directory, this test must be placed inside the source directory of https://github.com/go-acme/lego/v4/acme/api to run. Please note that this only checks getting the directory and creating a new account, but other ACME functions are likely impacted as well, such as creating orders, getting and checking order authorizations.
_ References Updated Sep 10, 2026 · Source: OSV.dev |
v3.0.2
patch
Dependencies (40)
+ 32 more |
|
v3.0.1-1
pre
2 CVEs
CVE-2026-40611
GHSA-qqx8-2xmm-jrv8
GO-2026-5593
Apr 16, 2026
ACME Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
SummaryThe webroot HTTP-01 challenge provider in lego is vulnerable to arbitrary file write and deletion via path traversal. A malicious ACME server can supply a crafted challenge token containing DetailsThe
The webroot provider in
RFC 8555 Section 8.3 specifies that ACME tokens must only contain characters from the base64url alphabet ( The same vulnerability exists in the
This additionally enables arbitrary file deletion. PoCIn a real attack scenario, the victim uses
The malicious server returns a challenge token containing path traversal sequences The following minimal Go program demonstrates the core vulnerability by directly calling the webroot provider with a crafted token:
Expected output:
ImpactThis is a path traversal vulnerability (CWE-22). Any user running lego with the HTTP-01 challenge solver against a malicious or compromised ACME server is affected. A malicious ACME server can:
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-54799
GHSA-q82r-2j7m-9rv4
GO-2025-3847
Aug 06, 2025
github.com/go-acme/lego/v4/acme/api does not enforce HTTPS
Low
Network
High
None
SummaryIt was discovered that 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. DetailsUnlike 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. This is stated in 6.1 of RFC 8555: https://datatracker.ietf.org/doc/html/rfc8555#section-6.1
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 the library user accidentally inputs an HTTP URL, or the CA similarly misconfigures its endpoints, this will cause the relevant parts of the protocol to be performed over HTTP. This can result, at the very least, in a lost of privacy of the request/response details, such as account and request identifiers (which could be intercepted by an attacker in a privileged network position). We did not investigate whether other more serious threats could result from the ability to impersonate a CA for some of the protocol requests, but enforcing HTTPS usage is definitely the safe choice. ReproducingThis is illustrated in the attached http_acme_test.go. Since it uses private field Core.directory, this test must be placed inside the source directory of https://github.com/go-acme/lego/v4/acme/api to run. Please note that this only checks getting the directory and creating a new account, but other ACME functions are likely impacted as well, such as creating orders, getting and checking order authorizations.
_ References Updated Sep 10, 2026 · Source: OSV.dev |
v3.0.1-1
pre
Dependencies (40)
+ 32 more |
|
v3.0.1
patch
2 CVEs
CVE-2026-40611
GHSA-qqx8-2xmm-jrv8
GO-2026-5593
Apr 16, 2026
ACME Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
SummaryThe webroot HTTP-01 challenge provider in lego is vulnerable to arbitrary file write and deletion via path traversal. A malicious ACME server can supply a crafted challenge token containing DetailsThe
The webroot provider in
RFC 8555 Section 8.3 specifies that ACME tokens must only contain characters from the base64url alphabet ( The same vulnerability exists in the
This additionally enables arbitrary file deletion. PoCIn a real attack scenario, the victim uses
The malicious server returns a challenge token containing path traversal sequences The following minimal Go program demonstrates the core vulnerability by directly calling the webroot provider with a crafted token:
Expected output:
ImpactThis is a path traversal vulnerability (CWE-22). Any user running lego with the HTTP-01 challenge solver against a malicious or compromised ACME server is affected. A malicious ACME server can:
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-54799
GHSA-q82r-2j7m-9rv4
GO-2025-3847
Aug 06, 2025
github.com/go-acme/lego/v4/acme/api does not enforce HTTPS
Low
Network
High
None
SummaryIt was discovered that 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. DetailsUnlike 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. This is stated in 6.1 of RFC 8555: https://datatracker.ietf.org/doc/html/rfc8555#section-6.1
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 the library user accidentally inputs an HTTP URL, or the CA similarly misconfigures its endpoints, this will cause the relevant parts of the protocol to be performed over HTTP. This can result, at the very least, in a lost of privacy of the request/response details, such as account and request identifiers (which could be intercepted by an attacker in a privileged network position). We did not investigate whether other more serious threats could result from the ability to impersonate a CA for some of the protocol requests, but enforcing HTTPS usage is definitely the safe choice. ReproducingThis is illustrated in the attached http_acme_test.go. Since it uses private field Core.directory, this test must be placed inside the source directory of https://github.com/go-acme/lego/v4/acme/api to run. Please note that this only checks getting the directory and creating a new account, but other ACME functions are likely impacted as well, such as creating orders, getting and checking order authorizations.
_ References Updated Sep 10, 2026 · Source: OSV.dev |
v3.0.1
patch
Dependencies (40)
+ 32 more |
|
v3.0.0
initial
2 CVEs
CVE-2026-40611
GHSA-qqx8-2xmm-jrv8
GO-2026-5593
Apr 16, 2026
ACME Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
8.8
/ 10
High
Network
Low
None
Required
Unchanged
High
High
High
SummaryThe webroot HTTP-01 challenge provider in lego is vulnerable to arbitrary file write and deletion via path traversal. A malicious ACME server can supply a crafted challenge token containing DetailsThe
The webroot provider in
RFC 8555 Section 8.3 specifies that ACME tokens must only contain characters from the base64url alphabet ( The same vulnerability exists in the
This additionally enables arbitrary file deletion. PoCIn a real attack scenario, the victim uses
The malicious server returns a challenge token containing path traversal sequences The following minimal Go program demonstrates the core vulnerability by directly calling the webroot provider with a crafted token:
Expected output:
ImpactThis is a path traversal vulnerability (CWE-22). Any user running lego with the HTTP-01 challenge solver against a malicious or compromised ACME server is affected. A malicious ACME server can:
References Updated Sep 10, 2026 · Source: OSV.dev
CVE-2025-54799
GHSA-q82r-2j7m-9rv4
GO-2025-3847
Aug 06, 2025
github.com/go-acme/lego/v4/acme/api does not enforce HTTPS
Low
Network
High
None
SummaryIt was discovered that 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. DetailsUnlike 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. This is stated in 6.1 of RFC 8555: https://datatracker.ietf.org/doc/html/rfc8555#section-6.1
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 the library user accidentally inputs an HTTP URL, or the CA similarly misconfigures its endpoints, this will cause the relevant parts of the protocol to be performed over HTTP. This can result, at the very least, in a lost of privacy of the request/response details, such as account and request identifiers (which could be intercepted by an attacker in a privileged network position). We did not investigate whether other more serious threats could result from the ability to impersonate a CA for some of the protocol requests, but enforcing HTTPS usage is definitely the safe choice. ReproducingThis is illustrated in the attached http_acme_test.go. Since it uses private field Core.directory, this test must be placed inside the source directory of https://github.com/go-acme/lego/v4/acme/api to run. Please note that this only checks getting the directory and creating a new account, but other ACME functions are likely impacted as well, such as creating orders, getting and checking order authorizations.
_ References Updated Sep 10, 2026 · Source: OSV.dev |
v3.0.0
initial
Dependencies (40)
+ 32 more |