Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. saloonphp/saloon
  4. ›
  5. CVE-2026-33942

CVE-2026-33942: Saloon has insecure deserialization in AccessTokenAuthenticator

March 27, 2026

The Saloon PHP library 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 removes PHP serialization from the AccessTokenAuthenticator class requiring users to store and resolve the authenticator manually.

References

  • docs.saloon.dev/upgrade/upgrading-from-v3-to-v4
  • github.com/advisories/GHSA-rf88-776r-rcq9
  • github.com/saloonphp/saloon
  • github.com/saloonphp/saloon/security/advisories/GHSA-rf88-776r-rcq9
  • nvd.nist.gov/vuln/detail/CVE-2026-33942

Code Behaviors & Features

Detect and mitigate CVE-2026-33942 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.0.0

Fixed versions

  • 4.0.0

Solution

Upgrade to version 4.0.0 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-502: Deserialization of Untrusted Data

Source file

packagist/saloonphp/saloon/CVE-2026-33942.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:17:55 +0000.