Loading...
Skip to main content

CVE-2023-25581 — Vulnerability in org.pac4j:pac4j-core — CVE Details

CRITICAL

pac4j-core affected by a Java deserialization vulnerability

Published October 11, 2024Updated October 14, 2024Source: osv

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.

Advisory Timeline

  • First published October 11, 2024 (731 days ago).
  • Last revised October 14, 2024 — 3 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.pac4j:pac4j-core to 4.0.0 or later
<!-- Update pom.xml dependency version to 4.0.0 for org.pac4j:pac4j-core -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: maven (1).

PackageEcosystemAffectedFixed In
org.pac4j:pac4j-core
maven
1.4.0, 1.4.1, 1.5.0, 1.5.1 (+55 more)4.0.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-502
    Deserialization of Untrusted DataMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
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

Frequently Asked Questions

What is CVE-2023-25581?
pac4j-core affected by a Java deserialization vulnerability This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2023-25581?
CVE-2023-25581 affects org.pac4j:pac4j-core. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-25581 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-76mw-6p95-x9x5

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies