The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-40611

CVE-2026-40611: Lego ACME Path Traversal Vulnerability

CVE-2026-40611 is a path traversal flaw in Lego ACME client that allows malicious servers to write or delete arbitrary files. This article covers technical details, affected versions, security impact, and mitigation.

Published: April 23, 2026

CVE-2026-40611 Overview

CVE-2026-40611 is a path traversal vulnerability affecting Lego, the Let's Encrypt client and ACME library written in Go. Prior to version 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.

Critical Impact

A malicious ACME server can leverage this path traversal vulnerability to write arbitrary files to the system, potentially enabling remote code execution, configuration tampering, or complete system compromise depending on the privileges of the lego process.

Affected Products

  • Lego ACME client versions prior to 4.34.0
  • Applications using the lego Go library for ACME protocol operations
  • Systems utilizing the webroot HTTP-01 challenge provider

Discovery Timeline

  • 2026-04-21 - CVE CVE-2026-40611 published to NVD
  • 2026-04-22 - Last updated in NVD database

Technical Details for CVE-2026-40611

Vulnerability Analysis

This vulnerability (CWE-22: Path Traversal) exists in the webroot HTTP-01 challenge provider component of the lego ACME client library. The HTTP-01 challenge is a common method used by ACME servers (like Let's Encrypt) to verify domain ownership, requiring the client to place a specific file in a well-known location on the web server.

The vulnerability arises because lego fails to properly sanitize the challenge token received from the ACME server before using it to construct file paths. When a malicious ACME server sends a challenge token containing directory traversal sequences (such as ../), the client blindly uses this value to construct the destination path for writing the challenge response file.

This allows an attacker controlling a rogue ACME server to write attacker-controlled content to arbitrary locations on the filesystem, limited only by the permissions of the process running lego.

Root Cause

The root cause is insufficient input validation of the ACME challenge token. The webroot challenge provider constructs file paths by concatenating user-controlled input (the challenge token) with a base directory path without properly validating or sanitizing the token value. The library fails to reject or sanitize tokens containing path traversal sequences like ../ or absolute paths, allowing directory escape.

Attack Vector

The attack requires user interaction in the form of initiating a certificate request against a malicious or compromised ACME server. The attack flow is as follows:

  1. An attacker sets up a malicious ACME server or compromises an existing one
  2. A victim configures lego to request a certificate from this malicious server using the webroot HTTP-01 challenge
  3. The malicious server responds with a crafted challenge token containing path traversal sequences (e.g., ../../../../etc/cron.d/malicious)
  4. Lego constructs the file path by appending the malicious token to the webroot directory
  5. The path traversal sequences cause lego to write the challenge response (containing attacker-influenced content) outside the intended webroot directory
  6. Depending on the target path and process privileges, this can result in arbitrary file creation, code execution, or system compromise

The vulnerability requires network access and user interaction (initiating the certificate request), but once triggered, can have severe consequences including full system compromise.

Detection Methods for CVE-2026-40611

Indicators of Compromise

  • Unexpected files appearing outside the webroot .well-known/acme-challenge/ directory structure
  • Files with names containing .. or unusual path patterns in ACME challenge directories
  • Lego process writing to unexpected system directories such as /etc/cron.d, /etc/ssh, or other sensitive locations
  • Modified system configuration files coinciding with certificate renewal operations

Detection Strategies

  • Monitor file system operations performed by lego processes for writes outside expected webroot directories
  • Implement file integrity monitoring (FIM) on critical system directories to detect unauthorized file creation or modification
  • Review ACME server configurations and ensure only trusted certificate authorities are configured
  • Audit network connections from lego to identify communications with unexpected or untrusted ACME servers

Monitoring Recommendations

  • Enable comprehensive logging for certificate management operations and file system access
  • Configure alerting for any file writes by ACME clients to paths outside designated challenge directories
  • Monitor for the creation of new scheduled tasks, SSH keys, or service configurations coinciding with certificate operations
  • Implement network monitoring to detect connections to non-standard ACME endpoints

How to Mitigate CVE-2026-40611

Immediate Actions Required

  • Upgrade lego to version 4.34.0 or later immediately
  • Review ACME server configurations to ensure only trusted certificate authorities are used
  • Audit systems running vulnerable versions for signs of compromise, particularly unauthorized file modifications
  • Run lego processes with minimal filesystem permissions to limit potential impact

Patch Information

The vulnerability is fixed in lego version 4.34.0. Users should upgrade to this version or later to remediate the vulnerability. For detailed information about the security fix, refer to the GitHub Security Advisory.

Workarounds

  • If upgrading is not immediately possible, avoid using the webroot HTTP-01 challenge provider until the patch is applied
  • Consider using alternative challenge types such as DNS-01 that do not involve file system operations
  • Implement strict file system permissions to limit write access for the lego process to only the required challenge directory
  • Use containerization or sandboxing to isolate the lego process and restrict its file system access
bash
# Configuration example - Restrict lego process permissions
# Create a dedicated user with limited permissions
useradd -r -s /bin/false lego-service

# Set restrictive permissions on webroot challenge directory
chown lego-service:lego-service /var/www/html/.well-known/acme-challenge
chmod 755 /var/www/html/.well-known/acme-challenge

# Run lego with restricted user
sudo -u lego-service lego --webroot /var/www/html/.well-known/acme-challenge --domains example.com run

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechLego

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2026-8468: Elixir Plug Library DoS Vulnerability

  • CVE-2026-8295: simdjson Information Disclosure Vulnerability

  • CVE-2025-68421: Comarch ERP Optima Auth Bypass Vulnerability

  • CVE-2025-68420: Comarch ERP Optima Privilege Escalation
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English