Read the docs
TI-2023-10883 Aliases CVE-2023-25581GHSA-76mw-6p95-x9x5

Deserialization of untrusted data in InternalAttributeHandler in pac4j

Priority HIGH 81CWE-502Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-502.

Summary

pac4j is a security framework for Java. `pac4j-core` prior to version 4.0.0 is affected by a Java deserialization vulnerability. The vulnerability affects systems that store externally controlled values in attributes of the `UserProfile` class from pac4j-core. It can be exploited by providing an attribute that contains a serialized Java object with a special prefix `{#sb64}` and Base64 encoding. This issue may lead to Remote Code Execution (RCE) in the worst case. Although a `RestrictedObjectInputStream` is in place, that puts some restriction on what classes can be deserialized, it still allows a broad range of java packages and potentially exploitable with different gadget chains. pac4j versions 4.0.0 and greater are not affected by this issue. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01936 80th percentileScored 2026-11-07
Fix Fixed pac4j (pac4j): 4.0.0org.pac4j:pac4j-core (Maven): 4.0.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
pac4jpac4jbefore 4.0.04.0.0Patch availableCNA
—org.pac4j:pac4j-core (Maven)before 4.0.04.0.0Patch availableGHSA-76mw-6p95-x9x5
  • pac4j Vendorpac4j Affected before 4.0.0 Fixed in 4.0.0 Patch available CNA
  • org.pac4j:pac4j-core (Maven) Vendor— Affected before 4.0.0 Fixed in 4.0.0 Patch available GHSA-76mw-6p95-x9x5

CPE names CISA-ADP · 1

CPEVersionsRoleVendor
cpe:2.3:a:pac4j:pac4j:*:*:*:*:*:*:*:*——pac4j
  • cpe:2.3:a:pac4j:pac4j:*:*:*:*:*:*:*:* Versions — — ·pac4j

Remediation

  • Fix · CNA pac4j (pac4j) Fixed in 4.0.0
  • Fix · GHSA-76mw-6p95-x9x5 org.pac4j:pac4j-core (Maven) Fixed in 4.0.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-25581
  2. 2026-10-03 Alias added: GHSA-76mw-6p95-x9x5

References

  • TI-2026-23172 pac4j-jwt JwtAuthenticator Authentication Bypass CVSS 4.0CRITICAL 9.3
  • TI-2026-29211 LDAP Injection in PAC4J CVSS 4.0HIGH 8.7
  • TI-2026-56857 pac4j-core before 6.5.6 Authorization Bypass via Reversed Profile Type Check CVSS 4.0HIGH 8.6
  • TI-2026-56855 pac4j-oidc before 6.5.6 Privilege Escalation via Unverified Keycloak Access Token CVSS 4.0HIGH 8.6
  • TI-2026-56856 pac4j-oidc before 6.5.6 Authentication Bypass via Access Token Substitution CVSS 4.0MEDIUM 6.9
  • TI-2021-20310 If an OpenID Connect provider supports the "none" algorithm (i.e., tokens with no… CVSS 3.1HIGH 7.5
See all 10 →

Sources