CVE-2026-33942
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedSaloon 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceSaloon PHP library versions before 4.0.0 have a critical object injection vulnerability in AccessTokenAuthenticator::unserialize() which uses PHP's unserialize() with allowed_classes => true. An attacker who can control serialized token data (e.g., via cache file overwrite or injection) can supply malicious 'gadget' objects that execute __wakeup, __destruct, or other magic methods upon deserialization, enabling RCE when chained with common dependencies like Monolog.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 4.0.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify Saloon library versionRun 'composer show saloon/saloon' or check your composer.lock file for the installed version of the saloon/saloon packageAffected if The installed version is below 4.0.0
-
Locate AccessTokenAuthenticator classSearch for the AccessTokenAuthenticator class file within the Saloon library installation directory and inspect its contents for unserialize() callsAffected if The file contains an unserialize() call with allowed_classes parameter set to true or not restricted
-
Identify serialized token storageSearch project codebase for cache files, storage directories, or configuration where AccessTokenAuthenticator serializes token dataAffected if Serialized token objects are stored in files or storage that could be modified by an attacker
-
Check for gadget chain dependenciesRun 'composer show' and check if Monolog, Symfony components, or other common PHP unserialize gadget libraries are installed alongside SaloonAffected if Libraries known to contain gadget chains for PHP object injection are present in the same PHP environment
A user is affected if Saloon version is below 4.0.0, the AccessTokenAuthenticator uses unsafe unserialize, and an attacker can control or inject serialized token data.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped4.0.0
Upgrade to Saloon version 4.0.0 or later which removes PHP serialization from the AccessTokenAuthenticator class. Alternatively, ensure cache/storage files containing serialized tokens are protected from unauthorized modification and implement integrity validation on deserialized data.
Saloon 4.0.0
- Upgrade the Saloon PHP library to version 4.0.0 or later via Composer: `composer require saloonphp/saloon:^4.0`
- After upgrading, review any custom AccessTokenAuthenticator implementations as the class no longer supports PHP serialization
- Update your token storage mechanism to store raw token data (access_token, refresh_token, expires_at) instead of serialized objects
- Implement the manual authenticator resolution logic as required by version 4.0.0 - the AccessTokenAuthenticator now expects you to handle token restoration from your own storage
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing6.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,808.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-33942 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-33942 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data