Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate via weaker client (form/basic login)
-
DeliveryObtain CommonProfile session token
-
ExploitRequest resource requiring SamlProfile/OidcProfile
-
ExecutionCheckProfileTypeAuthorizer evaluates reversed isAssignableFrom check
-
PersistAuthorization incorrectly granted
-
ImpactAccess protected resource
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The application must use pac4j-core's CheckProfileTypeAuthorizer to enforce profile-type-based access control - this is the specific, non-default configuration required for exploitation. The attacker must have valid credentials for any authentication client supported by the application (PR:L); unauthenticated access is not possible. Exploitation is limited to resources explicitly protected by CheckProfileTypeAuthorizer configured with a specific subtype (e.g., OidcProfile, SamlProfile, or a custom subclass); resources protected only by standard role-based or permission-based authorizers are unaffected. Applications that authenticate all users through a single client type producing identical profile classes are also unaffected, as no meaningful type distinction exists to bypass. |
| Impact | The CVSS 4.0 score of 8.6 with vector AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N reflects a high-severity but not maximally critical issue: network-exploitable, low complexity, but requiring prior authentication (PR:L). The practical risk is significant for applications that rely on CheckProfileTypeAuthorizer to distinguish access tiers - for example, allowing API access only to SAML-authenticated users while excluding form-login users. Any application not using this specific authorizer class is unaffected. No EPSS data was provided; no KEV listing exists, and no public exploit has been identified at time of analysis. The risk is real but narrowly scoped to deployments that have implemented profile-type-based access control using pac4j's CheckProfileTypeAuthorizer. The fix was bundled with five other security improvements in the same 6.5.6 release, suggesting these were discovered and patched together rather than in response to observed exploitation. |
| Exploit ScenarioDerived | An attacker registers or already holds credentials for a weaker authentication path - for example, a form-login account that produces a CommonProfile - in an application that also supports SAML SSO producing a SamlProfile for privileged users. The attacker authenticates via the weaker client and then requests a resource guarded by CheckProfileTypeAuthorizer configured to require SamlProfile; due to the inverted check, the authorizer returns true for the CommonProfile and grants access to the protected resource. No public exploit code has been identified, but the logic inversion is straightforward to reproduce from the public commit diff. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 29, 2026
Authentication bypass in pac4j-core before 6.5.6 allows authenticated users holding a weaker profile type to access resources that enforce a stronger profile type requirement, due to a reversed Java class inheritance check in CheckProfileTypeAuthorizer. The single-character logical inversion - swapping the operands of isAssignableFrom - causes the authorizer to grant access when a base/generic profile is presented against a check expecting a specific subtype (e.g., SAML or OIDC profile), instead of blocking it. No public exploit has been identified at time of analysis, but the fix is confirmed in the 6.5.6 release commit alongside five other security hardening changes.
RemediationAI
Upgrade pac4j-core to version 6.5.6 or later, which contains the confirmed fix per the vendor advisory at https://www.pac4j.org/blog/security-advisory-pac4j-core-oidc-saml.html and commit https://github.com/pac4j/pac4j/commit/2270c3ff70e93cc43831e75702acd5135531237e. Applications not using CheckProfileTypeAuthorizer for profile-type-based access control are not vulnerable and face no behavioral change; note the release notes explicitly warn that the fix 'may change the outcome of existing type checks in both directions,' so regression testing of authorization paths is recommended before deploying to production. As a temporary workaround, applications can replace CheckProfileTypeAuthorizer with a custom authorizer that uses the correct element.isAssignableFrom(profile.getClass()) logic, or enforce profile-type separation at the authentication client layer by routing stronger-authentication requirements to a dedicated endpoint that only accepts the appropriate client.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
pac4j is a Java security framework (CPE: cpe:2.3:a:pac4j:pac4j) used for authentication and authorization across JEE, Spring, Play, and other Java stacks. The vulnerability is in CheckProfileTypeAuthorizer, which enforces that an authenticated user's profile object is an instance of a required class hierarchy. Java's Class.isAssignableFrom(Class) method returns true when the calling class is the same as or a supertype of the argument. The buggy code called profile.getClass().isAssignableFrom(element) - checking if the user's profile class is a supertype of the required type - which is the reverse of intent. A CommonProfile (base class) is a supertype of OidcProfile, so the check returned true for exactly the wrong case: a generic login profile satisfying a check meant to require a more specific, stronger-authenticated profile. CWE-863 (Incorrect Authorization) applies: the authorization decision was computed and acted upon, but the logic was inverted. The one-line fix changes the call to element.isAssignableFrom(profile.getClass()), correctly verifying the user's profile is an instance of the required type.
Know when Pac4J gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Network-exploitable with low complexity, but PR:L because a valid (weaker) authenticated session is required; no scope change since impact stays within the same application boundary.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
pac4j-core before 6.5.6 contains an authentication bypass vulnerability in CheckProfileTypeAuthorizer that reverses the profile type validation logic. Attackers can authenticate through a weaker client and access resources requiring a stronger profile type by satisfying generic profile checks.
Executive ViewAI
pac4j-core before version 6.5.6 fails to properly validate user access permissions, allowing users to access resources beyond their authorization level. Organizations using this library face immediate risk of unauthorized resource access and potential data exposure. The high CVSS score (8.6) warrants urgent patching despite no current public exploitation.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
LDAP injection vulnerabilities in PAC4J authentication library allow low-privileged remote attackers to execute arbitrar
Privilege escalation in pac4j-oidc before 6.5.6 allows authenticated attackers to forge Keycloak access tokens and claim
CSRF protection bypass in PAC4J authentication library allows remote attackers to forge state-changing requests without
Session termination via unsigned SAML LogoutRequest in pac4j-saml before 6.5.6 allows unauthenticated remote attackers t
Authentication bypass in pac4j-oidc before 6.5.6 allows remote unauthenticated attackers to establish authenticated sess
Open redirect in pac4j-core before 6.5.6 allows network-accessible attackers to redirect authenticated users to attacker
The SAML identifier generated within SAML2Utils.java was found to make use of the apache commons-lang3 RandomStringUtils
EUVD-2026-68120
GHSA-f66h-84rm-53q7
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB