Vulnerabilities in pkg:maven/org.apache.activemq/artemis-pom

PACKAGE
Advisory Identifier: GHSA-r9vv-xj4w-g8m8
Advisory Summary

CVE-2016-4978 is a HIGH (CVSS 7.2) remote code execution vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Artemis pom libraries in the Maven ecosystem. The issue involves apache activemq artemis rce via deserialization gadget chain. Remediation is available by upgrading affected packages to version 1.4.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.activemq/artemis-pom

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.activemq/artemis-pom. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-r9vv-xj4w-g8m8 CVE-2016-4978 HIGH Apache ActiveMQ Artemis RCE Via Deserialization Gadget Chain

CVE-2016-4978 at a Glance

CVE Identifier CVE-2016-4978
GHSA Identifier GHSA-r9vv-xj4w-g8m8
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Artemis pom
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.2

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

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

How to Fix CVE-2016-4978

To remediate this vulnerability, upgrade all affected Artemis pom 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.activemq:artemis-pom fixed: 1.4.0
<dependency>
    <groupId>org.apache.activemq</groupId>
    <artifactId>artemis-pom</artifactId>
    <version>1.4.0</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.activemq

How to Check if You Are Affected

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

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

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

Note: The mvn dependency:tree -Dincludes=org.apache.activemq 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Artemis pom, 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

The getObject method of the `javax.jms.ObjectMessage` class in the (1) JMS Core client, (2) Artemis broker, and (3) Artemis REST component in Apache ActiveMQ Artemis before 1.4.0 might allow remote authenticated users with permission to send messages to the Artemis broker to deserialize arbitrary objects and execute arbitrary code by leveraging gadget classes being present on the Artemis classpath.

CVE-2016-4978 Affected Artemis pom Versions

1 component(s)
Fixed Versions:
1.4.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.activemq:artemis-pom
Maven
< 1.4.0
1.4.0

References

NVD — CVE-2016-4978 NVD
https://nvd.nist.gov/vuln/detail/CVE-2016-4978
www.blackhat.com/docs/us-16/material... WEB
https://www.blackhat.com/docs/us-16/materials/us-16-Kaiser-Pwning-Your-Java-Messaging-With-Deserialization-Vulnerabilities.pdf
Artemis pom Security Information SECURITY
https://web.archive.org/web/20210123172653/http://www.securityfocus.com/bid/93142
Artemis pom Source Repository REPOSITORY
https://github.com/apache/activemq-artemis
lists.apache.org/thread.html/rc96ad6... WEB
https://lists.apache.org/thread.html/rc96ad63f148f784c84ea7f0a178c84a8985c6afccabbcd9847a82088@%3Ccommits.activemq.apache.org%3E
lists.apache.org/thread.html/rc96ad6... WEB
https://lists.apache.org/thread.html/rc96ad63f148f784c84ea7f0a178c84a8985c6afccabbcd9847a82088%40%3Ccommits.activemq.apache.org%3E
lists.apache.org/thread.html/rb2fd3b... WEB
https://lists.apache.org/thread.html/rb2fd3bf2dce042e0ab3f3c94c4767c96bb2e7e6737624d63162df36d@%3Ccommits.activemq.apache.org%3E
lists.apache.org/thread.html/rb2fd3b... WEB
https://lists.apache.org/thread.html/rb2fd3bf2dce042e0ab3f3c94c4767c96bb2e7e6737624d63162df36d%40%3Ccommits.activemq.apache.org%3E
lists.apache.org/thread.html/d4ffbc6... WEB
https://lists.apache.org/thread.html/d4ffbc6a43a915324a394b2913ceb7d07bc352f2d08caa19df0aff02@%3Cissues.activemq.apache.org%3E
lists.apache.org/thread.html/d4ffbc6... WEB
https://lists.apache.org/thread.html/d4ffbc6a43a915324a394b2913ceb7d07bc352f2d08caa19df0aff02%40%3Cissues.activemq.apache.org%3E
lists.apache.org/thread.html/7260bd0... WEB
https://lists.apache.org/thread.html/7260bd0955c12aac5bd892039d3356ba3aa0ff4caaf2aa4fd4fe84a2@%3Cissues.activemq.apache.org%3E
lists.apache.org/thread.html/7260bd0... WEB
https://lists.apache.org/thread.html/7260bd0955c12aac5bd892039d3356ba3aa0ff4caaf2aa4fd4fe84a2%40%3Cissues.activemq.apache.org%3E
access.redhat.com/errata/rhsa-2018:14... WEB
https://access.redhat.com/errata/RHSA-2018:1451
access.redhat.com/errata/rhsa-2018:14... WEB
https://access.redhat.com/errata/RHSA-2018:1450
access.redhat.com/errata/rhsa-2018:14... WEB
https://access.redhat.com/errata/RHSA-2018:1449
access.redhat.com/errata/rhsa-2018:14... WEB
https://access.redhat.com/errata/RHSA-2018:1448
access.redhat.com/errata/rhsa-2018:14... WEB
https://access.redhat.com/errata/RHSA-2018:1447
access.redhat.com/errata/rhsa-2017:34... WEB
https://access.redhat.com/errata/RHSA-2017:3458
access.redhat.com/errata/rhsa-2017:34... WEB
https://access.redhat.com/errata/RHSA-2017:3456
access.redhat.com/errata/rhsa-2017:34... WEB
https://access.redhat.com/errata/RHSA-2017:3455
access.redhat.com/errata/rhsa-2017:34... WEB
https://access.redhat.com/errata/RHSA-2017:3454
access.redhat.com/errata/rhsa-2017:18... WEB
https://access.redhat.com/errata/RHSA-2017:1837
access.redhat.com/errata/rhsa-2017:18... WEB
https://access.redhat.com/errata/RHSA-2017:1836
access.redhat.com/errata/rhsa-2017:18... WEB
https://access.redhat.com/errata/RHSA-2017:1835
access.redhat.com/errata/rhsa-2017:18... WEB
https://access.redhat.com/errata/RHSA-2017:1834
mail-archives.apache.org/mod_mbox/activemq-u... WEB
http://mail-archives.apache.org/mod_mbox/activemq-users/201609.mbox/%3CCAH6wpnqzeNtpykT7emtDU1-GV7AvjFP5-YroWcCC4UZyQEFvtA%40mail.gmail.com%3E

Frequently Asked Questions

What is CVE-2016-4978?
CVE-2016-4978 is a security vulnerability in Artemis pom involving Apache ActiveMQ Artemis RCE Via Deserialization Gadget Chain under CWE-502: Deserialization of Untrusted Data.
Which Artemis pom versions are affected?
Affected versions include releases prior to 1.4.0 across affected packages: org.apache.activemq:artemis-pom.
What version fixes CVE-2016-4978?
Upgrading to 1.4.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is artemis-pom affected?
Yes, org.apache.activemq:artemis-pom is affected in releases prior to 1.4.0. Upgrade your dependency to 1.4.0 or later.
What is the CVSS score of CVE-2016-4978?
CVE-2016-4978 has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2016-4978?
CVE-2016-4978 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Maven dependencies for CVE-2016-4978?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.activemq'. 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-r9vv-xj4w-g8m8",
  "modified" : "2023-11-01T20:55:36Z",
  "published" : "2022-05-13T01:11:53Z",
  "aliases" : [ "CVE-2016-4978" ],
  "summary" : "Apache ActiveMQ Artemis RCE Via Deserialization Gadget Chain",
  "details" : "The getObject method of the `javax.jms.ObjectMessage` class in the (1) JMS Core client, (2) Artemis broker, and (3) Artemis REST component in Apache ActiveMQ Artemis before 1.4.0 might allow remote authenticated users with permission to send messages to the Artemis broker to deserialize arbitrary objects and execute arbitrary code by leveraging gadget classes being present on the Artemis classpath.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.activemq:artemis-pom"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.4.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-4978"
  }, {
    "type" : "WEB",
    "url" : "https://www.blackhat.com/docs/us-16/materials/us-16-Kaiser-Pwning-Your-Java-Messaging-With-Deserialization-Vulnerabilities.pdf"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20210123172653/http://www.securityfocus.com/bid/93142"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rc96ad63f148f784c84ea7f0a178c84a8985c6afccabbcd9847a82088@%3Ccommits.activemq.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rc96ad63f148f784c84ea7f0a178c84a8985c6afccabbcd9847a82088%40%3Ccommits.activemq.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rb2fd3bf2dce042e0ab3f3c94c4767c96bb2e7e6737624d63162df36d@%3Ccommits.activemq.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rb2fd3bf2dce042e0ab3f3c94c4767c96bb2e7e6737624d63162df36d%40%3Ccommits.activemq.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/d4ffbc6a43a915324a394b2913ceb7d07bc352f2d08caa19df0aff02@%3Cissues.activemq.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/d4ffbc6a43a915324a394b2913ceb7d07bc352f2d08caa19df0aff02%40%3Cissues.activemq.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/7260bd0955c12aac5bd892039d3356ba3aa0ff4caaf2aa4fd4fe84a2@%3Cissues.activemq.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/7260bd0955c12aac5bd892039d3356ba3aa0ff4caaf2aa4fd4fe84a2%40%3Cissues.activemq.apache.org%3E"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/activemq-artemis"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:1451"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:1450"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:1449"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:1448"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:1447"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2017:3458"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2017:3456"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2017:3455"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2017:3454"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2017:1837"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2017:1836"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2017:1835"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2017:1834"
  }, {
    "type" : "WEB",
    "url" : "http://mail-archives.apache.org/mod_mbox/activemq-users/201609.mbox/%3CCAH6wpnqzeNtpykT7emtDU1-GV7AvjFP5-YroWcCC4UZyQEFvtA%40mail.gmail.com%3E"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-31T18:15:46Z",
    "nvd_published_at" : "2016-09-27T15:59:00Z"
  }
}