CVE-2017-4995 · dell
CVE-2017-4995
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...
Published 2017-11-27, last changed 2026-06-17. Weakness: CWE-502.
How to fix
Upgrade to a fixed version: org.springframework.security:spring-security-core 4.2.3.RELEASE, 5.0.0.M2 (Maven) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Timeline
| 2017-11-27 | Published |
| 2022-05-13 | Package advisory GHSA-vhrg-v3cv-p247 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 2.55% |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-vhrg-v3cv-p247 | org.springframework.security:spring-security-core (Maven) | 4.2.3.RELEASE |
| GHSA-vhrg-v3cv-p247 | org.springframework.security:spring-security-core (Maven) | 5.0.0.M2 |
Also known as: GHSA-vhrg-v3cv-p247
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-22746 | 2026-04-22 | 3.7 | User Attribute Enumeration when Using DaoAuthenticationProvider |
| CVE-2026-22751 | 2026-04-21 | 4.8 | Spring Security JdbcOneTimeTokenService allows a one-time token to authenticate multiple sessions |
| CVE-2025-22234 | 2026-01-22 | 5.3 | Spring Security - BCrypt Password Encoder maximum password length breaks timing attack mitigation |
| CVE-2025-41248 | 2025-09-16 | 7.5 | CVE-2025-41248: Spring Security authorization bypass for method security annotations on parameterized types |
| CVE-2025-41232 | 2025-05-21 | 9.1 | CVE-2025-41232: Spring Security authorization bypass for method security annotations on private methods |
| CVE-2025-22223 | 2025-03-24 | 5.3 | same package: org.springframework.security:spring-security-core (Maven) |
| CVE-2024-38827 | 2024-12-02 | 4.8 | Spring Security Authorization Bypass for Case Sensitive Comparisons |
| CVE-2024-38810 | 2024-08-20 | 7.5 | Missing Authorization When Using @AuthorizeReturnObject |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2017-4995, or call /api/v1/vulnerabilities/CVE-2017-4995. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.