CVE-2017-4995
Summary
| CVE | CVE-2017-4995 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2017-11-27 10:29:00 UTC |
| Updated | 2023-11-07 02:48:00 UTC |
| Description | An issue was discovered in Pivotal Spring Security 4.2.0.RELEASE through 4.2.2.RELEASE, and Spring Security 5.0.0.M1. When configured to enable default typing, Jackson contained a deserialization vulnerability that could lead to arbitrary code execution. Jackson fixed this vulnerability by blacklisting known "deserialization gadgets." Spring Security configures Jackson with global default typing enabled, which means that (through the previous exploit) arbitrary code could be executed if all of the following is true: (1) Spring Security's Jackson support is being leveraged by invoking SecurityJackson2Modules.getModules(ClassLoader) or SecurityJackson2Modules.enableDefaultTyping(ObjectMapper); (2) Jackson is used to deserialize data that is not trusted (Spring Security does not perform deserialization using Jackson, so this is an explicit choice of the user); and (3) there is an unknown (Jackson is not blacklisting it already) "deserialization gadget" that allows code execution present on the classpath. Jackson provides a blacklisting approach to protecting against this type of attack, but Spring Security should be proactive against blocking unknown "deserialization gadgets" when Spring Security enables default typing. |
Risk And Classification
Problem Types: CWE-502
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Pivotal Software | Spring Security | 4.2.0 | release | All | All |
| Application | Pivotal Software | Spring Security | 4.2.1 | release | All | All |
| Application | Pivotal Software | Spring Security | 4.2.2 | release | All | All |
| Application | Pivotal Software | Spring Security | 5.0.0 | m1 | All | All |
| Application | Pivotal Software | Spring Security | 4.2.0 | release | All | All |
| Application | Pivotal Software | Spring Security | 4.2.1 | release | All | All |
| Application | Pivotal Software | Spring Security | 4.2.2 | release | All | All |
| Application | Pivotal Software | Spring Security | 5.0.0 | m1 | All | All |
| Application | Vmware | Spring Security | 4.2.0 | release | All | All |
| Application | Vmware | Spring Security | 4.2.1 | release | All | All |
| Application | Vmware | Spring Security | 4.2.2 | release | All | All |
| Application | Vmware | Spring Security | 5.0.0 | m1 | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Pony Mail! | lists.apache.org | ||
| Pivotal Spring Security Deserialization CVE-2017-4995 Remote Code Execution Vulnerability | BID | www.securityfocus.com | Third Party Advisory, VDB Entry |
| [cassandra-commits] 20210927 [jira] [Updated] (CASSANDRA-15416) CVE-2017-7525 ( jackson-databind is vulnerable to Remote Code Execution) on version 3.11.4 | lists.apache.org | ||
| Pony Mail! | MLIST | lists.apache.org | |
| [cassandra-commits] 20210927 [jira] [Commented] (CASSANDRA-15416) CVE-2017-7525 ( jackson-databind is vulnerable to Remote Code Execution) on version 3.11.4 | lists.apache.org | ||
| Pony Mail! | MLIST | lists.apache.org | |
| Pony Mail! | MLIST | lists.apache.org | |
| CVE-2017-4995: Jackson Configuration Allows Code Execution with Unknown “Serialization Gadgets” | Security | Pivotal | CONFIRM | pivotal.io | Issue Tracking, Vendor Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.