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-2026-33942

CVE-2026-33942: Saloon PHP Library RCE Vulnerability

CVE-2026-33942 is a remote code execution flaw in Saloon PHP library caused by unsafe deserialization of OAuth tokens. Attackers can inject malicious objects to execute arbitrary code. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 27, 2026

CVE-2026-33942 Overview

CVE-2026-33942 is an insecure deserialization vulnerability in Saloon, a popular PHP library used for building API integrations and SDKs. The vulnerability exists in versions prior to 4.0.0 where the AccessTokenAuthenticator::unserialize() method uses PHP's native unserialize() function with allowed_classes => true to restore OAuth token state from cache or storage. This unsafe deserialization pattern allows attackers who can control the serialized string to inject malicious objects, potentially leading to remote code execution.

Critical Impact

Attackers can achieve remote code execution by injecting malicious serialized objects through cached token files or other injection vectors, particularly in environments with common PHP dependencies like Monolog that provide exploitation gadget chains.

Affected Products

  • Saloon versions prior to 4.0.0
  • Applications using AccessTokenAuthenticator for OAuth token persistence
  • PHP environments with gadget-chain-compatible dependencies (e.g., Monolog)

Discovery Timeline

  • 2026-03-26 - CVE CVE-2026-33942 published to NVD
  • 2026-03-26 - Last updated in NVD database

Technical Details for CVE-2026-33942

Vulnerability Analysis

This vulnerability is classified as CWE-502 (Deserialization of Untrusted Data), a well-known weakness that can have severe security implications in PHP applications. The root issue lies in the improper handling of serialized data within the OAuth authentication flow.

When applications use Saloon's AccessTokenAuthenticator class to persist OAuth tokens, the library serializes the authenticator object for storage. Upon retrieval, the unserialize() function is called with allowed_classes => true, which permits the instantiation of any PHP class present in the application's codebase. This creates an object injection vulnerability where an attacker-controlled serialized payload can trigger arbitrary class instantiation.

The attack surface expands significantly in environments that include popular PHP libraries containing "gadget classes" - classes with magic methods (__wakeup, __destruct, __toString) that can be chained together to achieve code execution. Libraries like Monolog, Guzzle, and various Laravel components have known gadget chains that attackers can leverage.

Root Cause

The vulnerability originates from the use of PHP's unserialize() function without proper class restrictions. When allowed_classes is set to true, PHP will instantiate any class found in the serialized string, executing magic methods during object reconstruction. The AccessTokenAuthenticator::unserialize() method did not implement adequate safeguards to prevent the deserialization of arbitrary objects.

Secure alternatives would include using allowed_classes => false or specifying an explicit whitelist of allowed classes, or avoiding PHP serialization entirely in favor of safer formats like JSON.

Attack Vector

The vulnerability is exploitable over the network with no authentication required and no user interaction necessary. An attacker must have the ability to control the serialized token data, which can be achieved through several attack vectors:

Cache Poisoning: If an attacker can write to the application's cache storage (Redis, Memcached, file-based cache), they can replace legitimate serialized tokens with malicious payloads.

File Injection: In scenarios where token files are stored on the filesystem, an attacker with write access to the token storage directory can inject malicious serialized objects.

Chained Vulnerabilities: Other vulnerabilities such as SQL injection, path traversal, or SSRF could potentially be used to manipulate where the serialized data is stored or what data is retrieved.

Once the malicious serialized payload is in place, the next time the application attempts to restore the OAuth token state, the unserialize() function will instantiate the attacker's gadget chain, leading to arbitrary code execution with the privileges of the web server process.

Detection Methods for CVE-2026-33942

Indicators of Compromise

  • Unexpected or malformed entries in OAuth token cache storage
  • Presence of serialized PHP objects containing class names not typically associated with authentication (e.g., Monolog handlers, stream wrappers)
  • Anomalous file modifications in token storage directories
  • PHP error logs indicating class instantiation failures during token restoration
  • Unexpected outbound network connections following OAuth token operations

Detection Strategies

  • Monitor cache and file storage for serialized PHP objects containing suspicious class references
  • Implement application-level logging for AccessTokenAuthenticator::unserialize() calls and flag unexpected class instantiations
  • Deploy file integrity monitoring on token storage directories
  • Use runtime application security tools to detect object injection attempts
  • Review application logs for PHP errors related to missing or unexpected classes during deserialization

Monitoring Recommendations

  • Enable verbose logging for authentication-related operations in Saloon-based applications
  • Configure alerts for write operations to token cache locations from unexpected sources
  • Implement behavioral analysis to detect anomalous process execution following web requests
  • Monitor for network connections to unexpected destinations that may indicate successful exploitation

How to Mitigate CVE-2026-33942

Immediate Actions Required

  • Upgrade Saloon to version 4.0.0 or later immediately
  • Audit all locations where OAuth tokens are stored (cache, database, filesystem) for signs of tampering
  • Review application dependencies for known gadget chain classes and assess exposure
  • Implement additional access controls on token storage locations to prevent unauthorized writes
  • Consider invalidating and regenerating all stored OAuth tokens after patching

Patch Information

The vulnerability is fully remediated in Saloon version 4.0.0. The fix removes PHP serialization from the AccessTokenAuthenticator class entirely, requiring users to store and resolve the authenticator manually using safer serialization methods. This architectural change eliminates the object injection attack surface.

For detailed upgrade instructions, refer to the Saloon Upgrade Guide. Additional vulnerability details are available in the GitHub Security Advisory.

Workarounds

  • If immediate upgrade is not possible, implement a wrapper around AccessTokenAuthenticator::unserialize() that validates the serialized data before deserialization
  • Restrict write access to token storage locations to prevent attacker-controlled data injection
  • Consider implementing a custom token storage mechanism using JSON instead of PHP serialization
  • Deploy Web Application Firewall (WAF) rules to detect and block serialized PHP object payloads in requests
  • Isolate applications using vulnerable Saloon versions in restricted network segments to limit post-exploitation impact
bash
# Upgrade Saloon to patched version
composer require saloonphp/saloon:^4.0.0

# Verify installed version
composer show saloonphp/saloon | grep versions

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSaloon

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.57%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/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-502
  • Technical References
  • Saloon Upgrade Guide
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-33182: Saloon PHP Library SSRF Vulnerability

  • CVE-2026-33183: Saloon PHP Library Path Traversal Flaw
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