CVE-2019-12416: Deltaspike Injection Vulnerability

MODERATE
Advisory Identifier: GHSA-rhg5-fqr3-hrf5
CVSS 6.1
CWE-74
Published
Advisory Summary

CVE-2019-12416 is a MODERATE (CVSS 6.1) injection vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Deltaspike libraries in the Maven ecosystem. The issue involves injection in deltaspike. Remediation is available by upgrading affected packages to version 1.9.4.

CVE-2019-12416 at a Glance

CVE Identifier CVE-2019-12416
GHSA Identifier GHSA-rhg5-fqr3-hrf5
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected Product Deltaspike
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.1

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

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

How to Fix CVE-2019-12416

To remediate this vulnerability, upgrade all affected Deltaspike 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.apache.deltaspike:deltaspike fixed: 1.9.4
<dependency>
    <groupId>org.apache.deltaspike</groupId>
    <artifactId>deltaspike</artifactId>
    <version>1.9.4</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.apache.deltaspike

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apache.deltaspike

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

Note: The mvn dependency:tree -Dincludes=org.apache.deltaspike 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-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Deltaspike, 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

we got reports for 2 injection attacks against the DeltaSpike windowhandler.js. This is only active if a developer selected the ClientSideWindowStrategy which is not the default.

CVE-2019-12416 Affected Deltaspike Versions

1 component(s)
Fixed Versions:
1.9.4
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.deltaspike:deltaspike
Maven
< 1.9.4
1.9.4

References

Frequently Asked Questions

What is CVE-2019-12416?
CVE-2019-12416 is a security vulnerability in Deltaspike involving Injection in DeltaSpike under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection').
Which Deltaspike versions are affected?
Affected versions include releases prior to 1.9.4 across affected packages: org.apache.deltaspike:deltaspike.
What version fixes CVE-2019-12416?
Upgrading to 1.9.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is deltaspike affected?
Yes, org.apache.deltaspike:deltaspike is affected in releases prior to 1.9.4. Upgrade your dependency to 1.9.4 or later.
What is the CVSS score of CVE-2019-12416?
CVE-2019-12416 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2019-12416?
CVE-2019-12416 is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.).
How can I check Maven dependencies for CVE-2019-12416?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.deltaspike'. 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-rhg5-fqr3-hrf5",
  "modified" : "2023-01-20T18:52:58Z",
  "published" : "2022-02-10T20:54:31Z",
  "aliases" : [ "CVE-2019-12416" ],
  "summary" : "Injection in DeltaSpike",
  "details" : "we got reports for 2 injection attacks against the DeltaSpike windowhandler.js. This is only active if a developer selected the ClientSideWindowStrategy which is not the default.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.deltaspike:deltaspike"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.9.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.9.3"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-12416"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r848d7d4c0bf637da55f01103eb8ba0fce344c295fda53264cbaa1568@%3Ccommits.camel.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r8f327712b2b07f867fde1e77cbafcf8cc6a3facaa693ffdd2c3285e3%40%3Cdev.deltaspike.apache.org%3E"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-74" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-04T21:47:46Z",
    "nvd_published_at" : "2020-03-19T15:15:00Z"
  }
}