# CVE-2026-33942: Saloon has insecure deserialization in AccessTokenAuthenticator (object injection / RCE)

- Severity: High 8.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.71%, higher than 54% of CVEs (2026-12-01)
- Published: 2026-03-26T00:27:23.776Z
- Modified: 2026-06-17T10:38:20.547Z
- Also known as: GHSA-rf88-776r-rcq9
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- saloonphp saloon: < 4.0.0
- saloonphp/saloon (Packagist): before 4.0.0
- saloon saloon: before 4.0.0

## Every score

- GitHub_M: CVSS:4.0 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`
- GitHub: CVSS:4.0 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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/saloonphp/saloon/security/advisories/GHSA-rf88-776r-rcq9> (vendor-advisory, web)
- <https://docs.saloon.dev/upgrade/upgrading-from-v3-to-v4> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33942> (advisory)
- <https://github.com/saloonphp/saloon> (package)

## Sources

- CVE List: [CVE-2026-33942](https://www.cve.org/CVERecord?id=CVE-2026-33942), CVE Terms of Use, modified 2026-03-28
- GitHub Advisory Database: [GHSA-rf88-776r-rcq9](https://github.com/advisories/GHSA-rf88-776r-rcq9), CC-BY-4.0, modified 2026-03-27
- NVD: [CVE-2026-33942](https://nvd.nist.gov/vuln/detail/CVE-2026-33942), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33942 · Whole record: https://cve.day/CVE-2026-33942.json · Rebuilt by cve.day 2026-11-25T22:59:16.948Z
