CVE-2025-3984: Cas management webapp support Apereo CAS Code Injection Vulnerability Vulnerability

LOW
Advisory Identifier: GHSA-37pq-893f-g7q5
CVSS 5.0
CWE-94 CWE-74
Published
Advisory Summary

CVE-2025-3984 is a LOW (CVSS 5.0) apereo cas code injection vulnerability vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Cas management webapp support libraries in the Maven ecosystem. The issue involves apereo cas code injection vulnerability. Remediation is available in the latest vendor maintenance releases.

CVE-2025-3984 at a Glance

CVE Identifier CVE-2025-3984
GHSA Identifier GHSA-37pq-893f-g7q5
Severity LOW
CVSS v3.1 Base Score 5.0
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Cas management webapp support
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2025-3984

To remediate this vulnerability, upgrade all affected Cas management webapp support dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apereo.cas:cas-management-webapp-support fixed: Latest secure release
<dependency>
    <groupId>org.apereo.cas</groupId>
    <artifactId>cas-management-webapp-support</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apereo.cas

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-3984, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apereo.cas

Analyze the terminal output to locate any version of Cas management webapp support in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apereo.cas command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Cas management webapp support, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A vulnerability was found in Apereo CAS 5.2.6 and classified as critical. Affected by this issue is the function saveService of the file cas-5.2.6\webapp-mgmt\cas-management-webapp-support\src\main\java\org\apereo\cas\mgmt\services\web\RegisteredServiceSimpleFormController.java of the component Groovy Code Handler. The manipulation leads to code injection. The attack may be launched remotely. The complexity of an attack is rather high. The exploitation is known to be difficult. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

CVE-2025-3984 Affected Cas management webapp support Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
org.apereo.cas:cas-management-webapp-support
Maven
≤ 5.2.6

References

Frequently Asked Questions

What is CVE-2025-3984?
CVE-2025-3984 is a security vulnerability in Cas management webapp support involving Apereo CAS code injection vulnerability under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Cas management webapp support versions are affected?
Affected versions include releases prior to current release patches across affected packages: org.apereo.cas:cas-management-webapp-support.
What version fixes CVE-2025-3984?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is cas-management-webapp-support affected?
Yes, org.apereo.cas:cas-management-webapp-support is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-3984?
CVE-2025-3984 has a CVSS v3.1 base score of 5.0 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2025-3984?
CVE-2025-3984 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Maven dependencies for CVE-2025-3984?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apereo.cas'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-37pq-893f-g7q5",
  "modified" : "2025-11-05T22:01:03Z",
  "published" : "2025-04-27T21:34:47Z",
  "aliases" : [ "CVE-2025-3984" ],
  "summary" : "Apereo CAS code injection vulnerability",
  "details" : "A vulnerability was found in Apereo CAS 5.2.6 and classified as critical. Affected by this issue is the function saveService of the file cas-5.2.6\\webapp-mgmt\\cas-management-webapp-support\\src\\main\\java\\org\\apereo\\cas\\mgmt\\services\\web\\RegisteredServiceSimpleFormController.java of the component Groovy Code Handler. The manipulation leads to code injection. The attack may be launched remotely. The complexity of an attack is rather high. The exploitation is known to be difficult. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apereo.cas:cas-management-webapp-support"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "5.2.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-3984"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apereo/cas"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.306320"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.306320"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?submit.557100"
  }, {
    "type" : "WEB",
    "url" : "https://wx.mail.qq.com/s?k=ilW4ixcMaVgGU49Dij"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-74", "CWE-94" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-28T20:39:01Z",
    "nvd_published_at" : "2025-04-27T20:15:15Z"
  }
}