CVE-2025-48951: Auth0-PHP SDK Critical Deserialization Vulnerability

auth0/auth0-php Updated 14 Dec 2025

Summary

04/06/2025
Yes i
Critical
9.3

CVE-2025-48951: Auth0-PHP SDK Deserialization of Untrusted Data vulnerability. Affects auth0/auth0-php versions >= 8.0.0-BETA3, < 8.3.1. Fixed in 8.3.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Auth0-PHP SDK is a popular library used for integrating authentication and authorization into PHP applications. It provides developers with tools to manage user identities and secure access to applications. However, versions between 8.0.0-BETA3 and 8.3.0 are vulnerable to a critical issue involving insecure deserialization of cookie data, which can be exploited by attackers.

Vulnerability Detail

The vulnerability arises from the way the Auth0-PHP SDK processes cookie content without prior authentication. This insecure deserialization allows a threat actor to send a specially crafted cookie containing malicious serialized data. If exploited, this could lead to unauthorized access, data manipulation, or other malicious actions within the application.

How To Fix

Minimum fixed version

8.3.1

This is the first release that contains the fix.

composer require auth0/auth0-php:8.3.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can implement additional validation on cookie data before deserialization, although this is not a substitute for upgrading to the patched version.

Conclusion

The Auth0-PHP SDK has a critical vulnerability due to insecure deserialization of cookie data in versions 8.0.0-BETA3 to 8.3.0. It is essential to upgrade to version 8.3.1 or later to protect your application from potential exploitation. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for auth0/auth0-php →

Share this vulnerability

FAQ

Versions between 8.0.0-BETA3 and 8.3.0 are affected by this vulnerability.

Exploitation of this vulnerability could lead to unauthorized access, data manipulation, and other malicious actions within your application.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

While the best solution is to upgrade, you can implement additional validation on cookie data as a temporary workaround.

The vulnerability was discovered by Andreas Forsblom, and Okta has acknowledged his contribution.

Related vulnerabilities

Recent vulnerabilities recorded for auth0/auth0-php.

How To Fix

Minimum fixed version

8.3.1

This is the first release that contains the fix.

composer require auth0/auth0-php:8.3.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback