Vulnerabilities in pkg:maven/org.apache.myfaces.trinidad/trinidad

PACKAGE
Advisory Identifier: GHSA-x7rc-4gqw-3q6q
Advisory Summary

CVE-2016-5019 is a CRITICAL (CVSS 9.8) apache myfaces trinidad deserialization vulnerability vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Trinidad libraries in the Maven ecosystem. The issue involves apache myfaces trinidad deserialization vulnerability. Remediation is available by upgrading affected packages to version 1.2.15, 2.0.2, 2.1.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.myfaces.trinidad/trinidad

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.myfaces.trinidad/trinidad. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-x7rc-4gqw-3q6q CVE-2016-5019 CRITICAL Apache MyFaces Trinidad Deserialization Vulnerability

CVE-2016-5019 at a Glance

CVE Identifier CVE-2016-5019
GHSA Identifier GHSA-x7rc-4gqw-3q6q
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Trinidad
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.8

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
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-5019

To remediate this vulnerability, upgrade all affected Trinidad 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.myfaces.trinidad:trinidad fixed: Latest secure release
<dependency>
    <groupId>org.apache.myfaces.trinidad</groupId>
    <artifactId>trinidad</artifactId>
    <version>Latest secure release</version>
</dependency>
org.apache.myfaces.trinidad:trinidad fixed: 1.2.15
<dependency>
    <groupId>org.apache.myfaces.trinidad</groupId>
    <artifactId>trinidad</artifactId>
    <version>1.2.15</version>
</dependency>
org.apache.myfaces.trinidad:trinidad fixed: 2.0.2
<dependency>
    <groupId>org.apache.myfaces.trinidad</groupId>
    <artifactId>trinidad</artifactId>
    <version>2.0.2</version>
</dependency>
org.apache.myfaces.trinidad:trinidad fixed: 2.1.2
<dependency>
    <groupId>org.apache.myfaces.trinidad</groupId>
    <artifactId>trinidad</artifactId>
    <version>2.1.2</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.myfaces.trinidad

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apache.myfaces.trinidad

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

Note: The mvn dependency:tree -Dincludes=org.apache.myfaces.trinidad 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 Trinidad, 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

`CoreResponseStateManager` in Apache MyFaces Trinidad 1.0.0 through 1.0.13, 1.2.x before 1.2.15, 2.0.x before 2.0.2, and 2.1.x before 2.1.2 might allow attackers to conduct deserialization attacks via a crafted serialized viewstate string.

CVE-2016-5019 Affected Trinidad Versions

4 component(s)
Fixed Versions:
1.2.152.0.22.1.2
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.myfaces.trinidad:trinidad
Maven
≥ 1.0.0
≤ 1.0.13
org.apache.myfaces.trinidad:trinidad
Maven
≥ 1.2.0
< 1.2.15
1.2.15
org.apache.myfaces.trinidad:trinidad
Maven
≥ 2.0.0
< 2.0.2
2.0.2
org.apache.myfaces.trinidad:trinidad
Maven
≥ 2.1.0
< 2.1.2
2.1.2

References

NVD — CVE-2016-5019 NVD
https://nvd.nist.gov/vuln/detail/CVE-2016-5019
Trinidad Source Repository REPOSITORY
https://github.com/apache/myfaces-trinidad
issues.apache.org/jira/browse/trinida... WEB
https://issues.apache.org/jira/browse/TRINIDAD-2542
Trinidad Security Information SECURITY
https://web.archive.org/web/20171129092136/http://www.securitytracker.com/id/1037633
Trinidad Security Information SECURITY
https://web.archive.org/web/20210123173557/http://www.securityfocus.com/bid/93236
Trinidad Security Information SECURITY
https://www.oracle.com/security-alerts/cpujan2020.html
Trinidad Security Information SECURITY
https://www.oracle.com/security-alerts/cpujul2020.html
mail-archives.apache.org/mod_mbox/myfaces-us... WEB
http://mail-archives.apache.org/mod_mbox/myfaces-users/201609.mbox/%3CCAM1yOjYM%2BEW3mLUfX0pNAVLfUFRAw-Bhvkp3UE5%3DEQzR8Yxsfw%40mail.gmail.com%3E
Trinidad Security Information SECURITY
http://packetstormsecurity.com/files/138920/Apache-MyFaces-Trinidad-Information-Disclosure.html
Trinidad Security Information SECURITY
http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html
Trinidad Security Information SECURITY
http://www.oracle.com/technetwork/security-advisory/cpujul2016-2881720.html
Trinidad Security Information SECURITY
http://www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.html
Trinidad Security Information SECURITY
http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
Trinidad Security Information SECURITY
http://www.oracle.com/technetwork/security-advisory/cpuoct2017-3236626.html
Trinidad Security Information SECURITY
http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html

Frequently Asked Questions

What is CVE-2016-5019?
CVE-2016-5019 is a security vulnerability in Trinidad involving Apache MyFaces Trinidad Deserialization Vulnerability under CWE-502: Deserialization of Untrusted Data.
Which Trinidad versions are affected?
Affected versions include releases prior to 1.2.15, 2.0.2, 2.1.2 across affected packages: org.apache.myfaces.trinidad:trinidad.
What version fixes CVE-2016-5019?
Upgrading to 1.2.15, 2.0.2, 2.1.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is trinidad affected?
Yes, org.apache.myfaces.trinidad:trinidad is affected in releases prior to Latest secure release, 1.2.15, 2.0.2, 2.1.2. Upgrade your dependency to Latest secure release, 1.2.15, 2.0.2, 2.1.2 or later.
What is the CVSS score of CVE-2016-5019?
CVE-2016-5019 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2016-5019?
CVE-2016-5019 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-5019?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.myfaces.trinidad'. 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-x7rc-4gqw-3q6q",
  "modified" : "2023-11-01T20:50:36Z",
  "published" : "2022-05-13T01:25:19Z",
  "aliases" : [ "CVE-2016-5019" ],
  "summary" : "Apache MyFaces Trinidad Deserialization Vulnerability",
  "details" : "`CoreResponseStateManager` in Apache MyFaces Trinidad 1.0.0 through 1.0.13, 1.2.x before 1.2.15, 2.0.x before 2.0.2, and 2.1.x before 2.1.2 might allow attackers to conduct deserialization attacks via a crafted serialized viewstate string.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.myfaces.trinidad:trinidad"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "last_affected" : "1.0.13"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.myfaces.trinidad:trinidad"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.2.0"
      }, {
        "fixed" : "1.2.15"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.myfaces.trinidad:trinidad"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.myfaces.trinidad:trinidad"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-5019"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/myfaces-trinidad"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/TRINIDAD-2542"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20171129092136/http://www.securitytracker.com/id/1037633"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20210123173557/http://www.securityfocus.com/bid/93236"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpujan2020.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpujul2020.html"
  }, {
    "type" : "WEB",
    "url" : "http://mail-archives.apache.org/mod_mbox/myfaces-users/201609.mbox/%3CCAM1yOjYM%2BEW3mLUfX0pNAVLfUFRAw-Bhvkp3UE5%3DEQzR8Yxsfw%40mail.gmail.com%3E"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/138920/Apache-MyFaces-Trinidad-Information-Disclosure.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/security-advisory/cpujul2016-2881720.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/security-advisory/cpuoct2017-3236626.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-31T18:20:06Z",
    "nvd_published_at" : "2016-10-03T18:59:00Z"
  }
}