CVE-2026-33942 Details
Description
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.
A vulnerability exists in the Saloon PHP library, specifically in versions prior to 4.0.0, within the AccessTokenAuthenticator class. The issue arises from the use of PHP's unserialize() function to restore OAuth token state from cache or storage, with allowed_classes set to true. This allows an attacker to control the serialized string, potentially by overwriting a cached token file or through another injection method, and supply a serialized 'gadget' object. When unserialize() is executed, PHP instantiates the object and triggers its magic methods, such as __wakeup and __destruct, leading to object injection. In environments with common dependencies like Monolog, this vulnerability can be exploited to execute remote code. The issue has been patched in Saloon version 4.0.0, which removes PHP serialization from the AccessTokenAuthenticator class, requiring users to manually store and resolve the authenticator.
Users are advised to upgrade to Saloon version 4.0.0 or later. An upgrade guide is available in the Saloon official documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 28, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://docs.saloon.dev/upgrade/upgrading-from-v3-to-v4 | [email protected] | Release Notes |
| https://github.com/saloonphp/saloon/security/advisories/GHSA-rf88-776r-rcq9 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-502 | Deserialization of Untrusted Data | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| saloon saloon | < 4.0.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 26, 2026 | Initial Analysis | [email protected] |
| Mar 26, 2026 | New CVE Received | [email protected] |