Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2021-47756

CVE-2021-47756: Laravel Valet Privilege Escalation Flaw

CVE-2021-47756 is a local privilege escalation vulnerability in Laravel Valet versions 1.1.4 to 2.0.3. Attackers can modify symlinked commands to execute arbitrary code with root privileges. This article covers affected versions, impact, and mitigation strategies.

Published: January 23, 2026

CVE-2021-47756 Overview

CVE-2021-47756 is a local privilege escalation vulnerability affecting Laravel Valet versions 1.1.4 to 2.0.3. This vulnerability allows local users to modify the symlinked valet command to execute arbitrary code with root privileges without additional authentication. The flaw stems from improper permission handling (CWE-732) in how the Valet command is managed on macOS systems.

Critical Impact

Attackers with local access can escalate privileges to root by editing the symlinked valet command, enabling full system compromise without authentication.

Affected Products

  • Laravel Valet versions 1.1.4 through 2.0.3
  • macOS systems running vulnerable Valet installations

Discovery Timeline

  • 2026-01-16 - CVE CVE-2021-47756 published to NVD
  • 2026-01-16 - Last updated in NVD database

Technical Details for CVE-2021-47756

Vulnerability Analysis

This vulnerability exists due to incorrect permission assignments for critical resources in Laravel Valet's architecture. Laravel Valet creates a symlink to the valet command that runs with elevated privileges. The fundamental issue is that the symlink target can be modified by users who should not have the ability to influence privileged execution paths.

When Valet is installed, it establishes sudo privileges for certain operations to manage nginx, dnsmasq, and PHP-FPM services. However, the mechanism by which these privileges are granted fails to properly protect the command execution path. A local attacker can exploit this by editing the symlinked valet command to inject malicious code that will subsequently execute with root permissions.

The vulnerability is classified under CWE-732 (Incorrect Permission Assignment for Critical Resource), which describes scenarios where software does not assign or incorrectly assigns permissions to critical resources, leaving them accessible to unintended actors.

Root Cause

The root cause of this vulnerability lies in Laravel Valet's improper handling of file permissions for the symlinked valet executable. The symlink pointing to the valet binary is writable by users who can then replace or modify the target with malicious code. When sudo operations are performed through Valet, the modified code executes with root privileges, bypassing normal privilege boundaries.

Attack Vector

This is a local attack vector requiring the attacker to have user-level access to a macOS system with a vulnerable Laravel Valet installation. The attack does not require user interaction and can be executed with high privileges if the attacker can write to the symlink target location.

The exploitation process involves:

  1. Identifying a system running Laravel Valet versions 1.1.4 to 2.0.3
  2. Locating the symlinked valet command (typically in /usr/local/bin/valet)
  3. Modifying the symlink target or the underlying script to include malicious payload
  4. Triggering a Valet operation that invokes sudo, causing the malicious code to execute as root

For technical exploitation details and proof-of-concept code, see the Exploit-DB #50591 advisory.

Detection Methods for CVE-2021-47756

Indicators of Compromise

  • Unexpected modifications to the valet symlink or its target script
  • Unusual sudo operations originating from the valet command
  • Changes to file permissions on /usr/local/bin/valet or related Valet configuration directories
  • New or modified files in Valet's installation directory with unexpected ownership or permissions

Detection Strategies

  • Monitor file integrity of the valet binary and symlinks using host-based file integrity monitoring tools
  • Implement audit logging for sudo command executions, filtering for valet-related operations
  • Review system logs for privilege escalation attempts or unexpected root-level process spawning from PHP or composer contexts
  • Use endpoint detection tools to identify anomalous permission changes on developer tools

Monitoring Recommendations

  • Enable macOS Unified Logging and monitor for suspicious executil events related to valet
  • Configure SentinelOne's Deep Visibility to track symlink modifications in /usr/local/bin/
  • Set up alerts for any sudo executions that originate from modified valet scripts
  • Periodically audit Laravel Valet installations across development machines for version compliance

How to Mitigate CVE-2021-47756

Immediate Actions Required

  • Upgrade Laravel Valet to version 2.0.4 or later immediately
  • Audit all macOS development systems for vulnerable Laravel Valet installations
  • Review recent sudo logs for any suspicious activity related to the valet command
  • Restrict write access to the /usr/local/bin/ directory and Valet installation paths

Patch Information

The vulnerability is addressed in Laravel Valet version 2.0.4 and later releases. Organizations should upgrade all installations to the latest stable version available. For detailed upgrade instructions, consult the Laravel Valet Documentation.

Additional information about this vulnerability is available through the VulnCheck Advisory for Laravel Valet.

Workarounds

  • If immediate patching is not possible, remove sudo privileges from the valet command until upgrade can be performed
  • Change ownership of the valet symlink and target to root with restricted write permissions
  • Implement filesystem access controls to prevent modification of the valet executable path
  • Consider uninstalling Laravel Valet on production-adjacent systems where it is not strictly necessary
bash
# Verify Laravel Valet version
valet --version

# Upgrade Laravel Valet via Composer
composer global update laravel/valet

# Verify symlink permissions (should be root-owned)
ls -la /usr/local/bin/valet

# If needed, fix permissions manually
sudo chown root:wheel /usr/local/bin/valet
sudo chmod 755 /usr/local/bin/valet

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechLaravel Valet

  • SeverityHIGH

  • CVSS Score8.4

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-732
  • Technical References
  • Laravel Valet Documentation

  • Exploit-DB #50591

  • VulnCheck Advisory for Laravel Valet
  • Latest CVEs
  • CVE-2025-11419: Keycloak TLS DoS Vulnerability

  • CVE-2025-13947: WebKitGTK Information Disclosure Flaw

  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal 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