Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider
go-acme lego
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/go-acme/lego/v4 Go |
|
|
| github.com/go-acme/lego/v3 Go |
| No fix yet |
| github.com/go-acme/lego Go |
|
go-acme lego
| Product | Affected | Fixed in |
|---|---|---|
| github.com/go-acme/lego/v4 Go |
|
|
| github.com/go-acme/lego/v3 Go |
| No fix yet |
| github.com/go-acme/lego Go |
|
| No fix yet |
Let's Encrypt client and ACME library written in Go (Lego). Prior to 4.34.0, the 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 ../ sequences, causing lego to write attacker-influenced content to any path writable by the lego process. This vulnerability is fixed in 4.34.0.
From the CVE record · GitHub_M
The webroot HTTP-01 challenge provider in go-acme lego is vulnerable to path traversal. A malicious ACME server can supply a challenge token containing ../ sequences, causing lego to write attacker-influenced content to any path writable by the lego process; the vulnerability also permits file deletion.
Engineers using Go package github.com/go-acme/lego/v4 before 4.34.0, github.com/go-acme/lego/v3 through 3.9.0, or github.com/go-acme/lego through 2.7.2 should check their deployments.