CVE-2016-5019: Trinidad Apache MyFaces Trinidad Deserialization Vulnerability Vulnerability
CRITICALCVE-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.
CVE-2016-5019 at a Glance
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).
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.
<dependency>
<groupId>org.apache.myfaces.trinidad</groupId>
<artifactId>trinidad</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.apache.myfaces.trinidad</groupId>
<artifactId>trinidad</artifactId>
<version>1.2.15</version>
</dependency>
<dependency>
<groupId>org.apache.myfaces.trinidad</groupId>
<artifactId>trinidad</artifactId>
<version>2.0.2</version>
</dependency>
<dependency>
<groupId>org.apache.myfaces.trinidad</groupId>
<artifactId>trinidad</artifactId>
<version>2.1.2</version>
</dependency>
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
CVE-2016-5019 Affected Trinidad Versions
4 component(s)| 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
Frequently Asked Questions
What is CVE-2016-5019?
Which Trinidad versions are affected?
What version fixes CVE-2016-5019?
Is trinidad affected?
What is the CVSS score of CVE-2016-5019?
What CWE is associated with CVE-2016-5019?
How can I check Maven dependencies for CVE-2016-5019?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}