ID CVE-2017-4995
Summary 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.
References
Vulnerable Configurations
  • cpe:2.3:a:vmware:spring_security:4.2.2:release:*:*:*:*:*:*
    cpe:2.3:a:vmware:spring_security:4.2.2:release:*:*:*:*:*:*
  • cpe:2.3:a:vmware:spring_security:4.2.0:release:*:*:*:*:*:*
    cpe:2.3:a:vmware:spring_security:4.2.0:release:*:*:*:*:*:*
  • cpe:2.3:a:vmware:spring_security:4.2.1:release:*:*:*:*:*:*
    cpe:2.3:a:vmware:spring_security:4.2.1:release:*:*:*:*:*:*
  • cpe:2.3:a:vmware:spring_security:5.0.0:m1:*:*:*:*:*:*
    cpe:2.3:a:vmware:spring_security:5.0.0:m1:*:*:*:*:*:*
CVSS
Base: 6.8 (as of 18-04-2022 - 17:54)
Impact:
Exploitability:
CWE CWE-502
CAPEC
  • Object Injection
    An adversary attempts to exploit an application by injecting additional, malicious content during its processing of serialized objects. Developers leverage serialization in order to convert data or state into a static, binary format for saving to disk or transferring over a network. These objects are then deserialized when needed to recover the data/state. By injecting a malformed object into a vulnerable application, an adversary can potentially compromise the application by manipulating the deserialization process. This can result in a number of unwanted outcomes, including remote code execution.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
cvss-vector via4 AV:N/AC:M/Au:N/C:P/I:P/A:P
refmap via4
bid 99080
confirm https://pivotal.io/security/cve-2017-4995
mlist [cassandra-commits] 20191113 [jira] [Created] (CASSANDRA-15416) CVE-2017-7525 ( jackson-databind is vulnerable to Remote Code Execution) on version 3.11.4
Last major update 18-04-2022 - 17:54
Published 27-11-2017 - 10:29
Last modified 18-04-2022 - 17:54
Back to Top