CVE-2018-1199 Improper Input Validation in org.springframework.security:spring-security-core, org.springframework.security:spring-security-core , and org.springframework:spring-core

Medium 5.3 Published Updated

Attackers can bypass security constraints on static resources by using specially encoded URL path parameters, requiring an upgrade to patched versions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-1199?

CVE-2018-1199 is a medium-severity vulnerability in Oracle Retail Xstore Point of Service, published on 16 Mar 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Spring Security (Spring Security 4.1.x before 4.1.5, 4.2.x before 4.2.4, and 5.0.x before 5.0.1; and Spring Framework 4.3.x before 4.3.14 and 5.0.x before 5.0.3) does not consider URL path parameters when processing security constraints. By adding a URL path parameter with special encodings, an attacker may be able to bypass a security constraint. The root cause of this issue is a lack of clarity regarding the handling of path parameters in the Servlet Specification. Some Servlet containers include path parameters in the value returned for getPathInfo() and some do not. Spring Security uses the value returned by getPathInfo() as part of the process of mapping requests to security constraints. In this particular attack, different character encodings used in path parameters allows secured Spring MVC static resource URLs to be bypassed.

Weakness: CWE-20

Which versions are affected by CVE-2018-1199?

10 open source packages ship an affected version, including org.springframework.security:spring-security-core and org.springframework:spring-core. It affects 5 products.

PackageAffectedFixed in
org.springframework.security:spring-security-core MavenFrom 4.1.04.1.5
org.springframework.security:spring-security-core MavenFrom 4.1.04.1.5
org.springframework.security:spring-security-core MavenFrom 4.2.04.2.4
org.springframework.security:spring-security-core MavenFrom 4.2.04.2.4
org.springframework.security:spring-security-core MavenFrom 5.0.05.0.1
org.springframework.security:spring-security-core MavenFrom 5.0.05.0.1
4 more packages
org.springframework:spring-core MavenFrom 4.3.04.3.14
org.springframework:spring-core MavenFrom 4.3.04.3.14
org.springframework:spring-core MavenFrom 5.0.05.0.3
org.springframework:spring-core MavenFrom 5.0.05.0.3

Products include Oracle Rapid Planning, Oracle Retail Xstore Point of Service, Redhat Fuse, Vmware Spring Framework, Vmware Spring Security.

How do I fix CVE-2018-1199?

Upgrade org.springframework.security:spring-security-core to a fixed version for your release line: 4.1.5, 4.2.4 or 5.0.1.

Is CVE-2018-1199 being exploited?

There is no known exploitation of CVE-2018-1199 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2018-1199, GHSA-v596-fwhq-8x48, UBUNTU-CVE-2018-1199.

Is CVE-2018-1199 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free