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
    • 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-2024-6091

CVE-2024-6091: AutoGPT Auth Bypass Vulnerability

CVE-2024-6091 is an authentication bypass flaw in AutoGPT Classic version 0.5.1 that allows attackers to evade shell command denylist restrictions. This article covers the technical details, affected versions, and mitigation.

Published: April 8, 2026

CVE-2024-6091 Overview

A command injection vulnerability exists in significant-gravitas/autogpt version 0.5.1 that allows an attacker to bypass the shell commands denylist settings. The issue arises when the denylist is configured to block specific commands, such as whoami and /bin/whoami. An attacker can circumvent this restriction by executing commands with a modified path, such as /bin/./whoami, which is not recognized by the denylist. This path traversal technique enables attackers to execute arbitrary system commands that should otherwise be blocked by security controls.

Critical Impact

This vulnerability allows remote attackers to bypass command execution restrictions and execute arbitrary shell commands on the host system, potentially leading to full system compromise.

Affected Products

  • AutoGPT Classic version 0.5.1
  • agpt autogpt_classic

Discovery Timeline

  • 2024-09-11 - CVE CVE-2024-6091 published to NVD
  • 2025-08-05 - Last updated in NVD database

Technical Details for CVE-2024-6091

Vulnerability Analysis

This vulnerability is classified under CWE-78 (Improper Neutralization of Special Elements used in an OS Command), commonly known as OS Command Injection. The flaw exists in AutoGPT's shell command execution filtering mechanism, which is designed to prevent potentially dangerous commands from being executed by the AI agent.

The denylist implementation performs a simple string comparison against a list of blocked commands. When a user attempts to execute a command like whoami, the system correctly identifies and blocks it. However, the path normalization logic fails to account for path traversal sequences within the command string.

By inserting a ./ sequence in the path (e.g., /bin/./whoami instead of /bin/whoami), an attacker can effectively bypass the denylist while the underlying operating system still resolves and executes the intended command. This occurs because the file system treats /bin/./whoami as equivalent to /bin/whoami, but the string comparison in the denylist check fails to match.

Root Cause

The root cause of this vulnerability lies in the inadequate path canonicalization before performing security checks against the denylist. The application compares raw command strings against the blocked list without first normalizing the paths to their canonical form. This allows various path manipulation techniques, including the use of . (current directory) and potentially .. (parent directory) sequences, to evade detection.

Proper mitigation requires resolving all paths to their canonical absolute form before comparison, ensuring that functionally equivalent paths are recognized as the same command regardless of how they are represented syntactically.

Attack Vector

The attack can be executed remotely over the network without requiring authentication or user interaction. An attacker with access to the AutoGPT interface can craft malicious inputs that instruct the AI agent to execute shell commands using obfuscated paths.

The exploitation technique involves:

  1. Identifying which commands are blocked by the denylist configuration
  2. Constructing equivalent commands using path manipulation (e.g., adding ./ sequences)
  3. Submitting the obfuscated command to AutoGPT for execution
  4. The system fails to recognize the command as blocked and executes it with full privileges

For example, if whoami is blocked, an attacker can use /bin/./whoami, ./whoami (if in the appropriate directory), or variations like /usr/../bin/whoami to achieve the same result.

Detection Methods for CVE-2024-6091

Indicators of Compromise

  • Unusual shell command patterns in AutoGPT execution logs containing path traversal sequences like ./ or ../
  • Commands being executed that should have been blocked by the configured denylist
  • Unexpected system reconnaissance commands being run by the AutoGPT process
  • Anomalous process spawning from the AutoGPT application with obfuscated command paths

Detection Strategies

  • Monitor AutoGPT execution logs for commands containing path normalization characters (., ..) in unexpected positions
  • Implement additional logging at the OS level to capture all commands spawned by the AutoGPT process
  • Deploy file integrity monitoring on sensitive system binaries that may be targeted
  • Use behavioral analysis to detect unusual command execution patterns from AI agent processes

Monitoring Recommendations

  • Enable verbose logging in AutoGPT to capture all command execution attempts
  • Configure SIEM alerts for shell commands containing path traversal patterns originating from AutoGPT
  • Monitor for any outbound network connections following suspicious command execution
  • Review AutoGPT agent activity logs for attempts to enumerate system information or access sensitive files

How to Mitigate CVE-2024-6091

Immediate Actions Required

  • Upgrade AutoGPT Classic to a patched version that addresses this vulnerability
  • Review and restrict the commands available to AutoGPT in your deployment
  • Implement network segmentation to limit the impact of potential compromise
  • Consider running AutoGPT in a sandboxed or containerized environment with minimal privileges

Patch Information

The vendor has released a fix for this vulnerability. The patch is available in the GitHub commit ef691359b774a1f9f80cf4f5ace9821967b718ed. Users should update to a version containing this fix immediately.

Additional details about the vulnerability discovery and disclosure can be found in the Huntr bounty report.

Workarounds

  • Disable shell command execution entirely in AutoGPT if not required for your use case
  • Implement additional command filtering at the operating system level using tools like AppArmor or SELinux
  • Use a whitelist approach instead of a denylist to only allow explicitly approved commands
  • Run AutoGPT under a restricted user account with minimal system access permissions
  • Deploy AutoGPT in an isolated container with restricted system call capabilities
bash
# Example: Running AutoGPT in a restricted container environment
docker run --security-opt=no-new-privileges \
  --cap-drop=ALL \
  --read-only \
  --network=none \
  autogpt:latest

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechAgpt Autogpt Classic

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.18%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • Huntr Bounty Report
  • Vendor Resources
  • GitHub Commit Changes
  • Related CVEs
  • CVE-2024-8156: Agpt Autogpt Classic RCE Vulnerability
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