Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.3%top 73%

CVE-2026-40611: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in go-acme lego

0
High
VulnerabilityCVE-2026-40611cvecve-2026-40611cwe-22
Published: 04/21/2026 (04/21/2026, 17:58:35 UTC)
Source: CVE Database V5
Vendor/Project: go-acme
Product: lego

Description

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.

CVSS v3.1

Score 8.8high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

github.com/go-acme/lego
pkg:golang/github.com/go-acme/lego
Affected versions
<4.34.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 09:11:41 UTC

Technical Analysis

The go-acme lego client, used for Let's Encrypt ACME challenges, has a path traversal vulnerability in its webroot HTTP-01 challenge provider in versions before 4.34.0. A malicious ACME server can exploit this by providing a challenge token containing directory traversal sequences (../), which lego does not properly sanitize. This leads to arbitrary file write and deletion on the filesystem paths writable by the lego process. The issue is addressed and fixed in version 4.34.0.

Potential Impact

Successful exploitation allows an unauthenticated remote attacker (a malicious ACME server) to write or delete arbitrary files on the system where lego runs, limited to paths writable by the lego process. This can lead to full compromise of the affected system's confidentiality, integrity, and availability.

Mitigation Recommendations

A fix is available in go-acme lego version 4.34.0. Users should upgrade to version 4.34.0 or later to remediate this vulnerability. Patch status is confirmed by the vendor advisory. No alternative mitigations are documented.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-14T14:07:59.642Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-40611","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:21772","vendor":"Red Hat"}]

Threat ID: 69e7bb7219fe3cd2cdedac91

Added to database: 04/21/2026, 18:01:22 UTC

Last enriched: 07/15/2026, 09:11:41 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 156

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses