Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2017-4995

HIGH 8.1EPSS 86%

Deserialization of Untrusted Data in Spring Security

Also known as GHSA-vhrg-v3cv-p247

Mitigation

  • Upgrade org.springframework.security:spring-security-core to one of 4.2.3.RELEASE, 5.0.0.M2 (or later in the same release line).

Who should check

  • Projects that depend on Maven package org.springframework.security:spring-security-core (>= 4.2.0.RELEASE, < 4.2.3.RELEASE)
  • Anyone running Spring Security Spring Security 4.2.0.RELEASE 4.2.2.RELEASE and Spring Security 5.0.0.M1 Spring Security Spring Security 4.2.0.RELEASE 4.2.2.RELEASE and Spring Security 5.0.0.M1

Vulnerability facts

Affected
org.springframework.security:spring-security-core >= 4.2.0.RELEASE, < 4.2.3.RELEASE
Fixed in
4.2.3.RELEASE, 5.0.0.M2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
8.1 (v3.1, NVD)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
2.55% chance of exploitation in 30 days (percentile 86, 2026-11-26)
CWE
CWE-502
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Maven org.springframework.security:spring-security-core>= 4.2.0.RELEASE, < 4.2.3.RELEASE4.2.3.RELEASE, 5.0.0.M2osv
Spring Security Spring Security 4.2.0.RELEASE 4.2.2.RELEASE and Spring Security 5.0.0.M1Spring Security Spring Security 4.2.0.RELEASE 4.2.2.RELEASE and Spring Security 5.0.0.M1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2017-4995. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2017-4995.md
Affected: org.springframework.security:spring-security-core >= 4.2.0.RELEASE, < 4.2.3.RELEASE
Fixed in: 4.2.3.RELEASE, 5.0.0.M2

Steps:
1. Search this machine and project for org.springframework.security:spring-security-core (Maven), Spring Security Spring Security 4.2.0.RELEASE 4.2.2.RELEASE and Spring Security 5.0.0.M1: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2017-4995 being exploited?

There is no confirmed exploitation: CVE-2017-4995 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.55% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2017-4995?

High: CVSS 8.1 (v3.1, scored by NVD). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2017-4995?

org.springframework.security:spring-security-core >= 4.2.0.RELEASE, < 4.2.3.RELEASE.

Is there a fix for CVE-2017-4995?

Yes. Fixed in 4.2.3.RELEASE, 5.0.0.M2. Upgrade org.springframework.security:spring-security-core to one of 4.2.3.RELEASE, 5.0.0.M2 (or later in the same release line).

How do I check if I'm affected by CVE-2017-4995?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors