{"id":"CVE-2018-1271","published":"2018-04-06T13:00:00Z","modified":"2024-09-16T23:16:43Z","title":"Spring Framework, versions 5.0 prior to 5.0.5 and versions 4.3 prior to 4.3.15 and older unsupported versions, allow…","vendor":"Spring by Pivotal","product":"Spring Framework","tier":"tail","description":{"text":"Spring Framework, versions 5.0 prior to 5.0.5 and versions 4.3 prior to 4.3.15 and older unsupported versions, allow applications to configure Spring MVC to serve static resources (e.g. CSS, JS, images). When static resources are served from a file system on Windows (as opposed to the classpath, or the ServletContext), a malicious user can send a request using a specially crafted URL that can lead a directory traversal attack.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.30338,"percentile":0.9827,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"http://www.securityfocus.com/bid/103699","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2669","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2939","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2018:1320","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html","tags":["x_refsource_CONFIRM"]},{"url":"http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html","tags":["x_refsource_CONFIRM"]},{"url":"https://www.oracle.com/security-alerts/cpujul2020.html","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html","tags":["x_refsource_CONFIRM"]},{"url":"https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html","tags":["x_refsource_MISC"]},{"url":"https://pivotal.io/security/cve-2018-1271","tags":["x_refsource_CONFIRM"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["x_refsource_MISC"]}],"priority":{"score":24.7,"factors":[{"name":"EPSS percentile","points":19.65},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"nuclei":[{"id":"CVE-2018-1271","name":"Spring MVC Framework - Local File Inclusion","severity":"medium","path":"http/cves/2018/CVE-2018-1271.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-1271.yaml"}],"provenance":"source"},"vendorSlug":"spring-by-pivotal","affectedVersions":[{"vendor":"Spring by Pivotal","product":"Spring Framework","versions":["Versions prior to 5.0.5 and 4.3.15"]}],"affected":[{"ecosystem":"Maven","package":"org.springframework:spring-core","vulnerableRanges":[">=5.0.0, <5.0.5","<4.3.15"],"patched":["5.0.5","4.3.15"],"from":["GHSA-g8hw-794c-4j9g"],"provenance":"source"}],"summary":{"text":"A directory traversal flaw exists in Spring Framework's Spring MVC static resource handling, specifically when static resources are served from a file system on Windows rather than from the classpath or ServletContext. An attacker who sends a specially crafted URL can use it to traverse outside the intended directory and access files the application was not meant to expose.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T15:01:56Z"},"euvd":{"id":"EUVD-2018-0599","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-spring-framework-cve-2014-3625","parents":[{"from":"CVE-2014-3625","to":"CVE-2018-1271","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java"],"commits":["https://github.com/spring-projects/spring-framework/commit/161d3e3049f129e211f68a4e94b544e0f0d8384d","https://github.com/spring-projects/spring-framework/commit/3f68cd633f03370d33c2603a6496e81273782601","https://github.com/spring-projects/spring-framework/commit/0e28bee0f155b9bf240b4bafc4646e4810cb23f8","https://github.com/spring-projects/spring-framework/commit/13356a7ee2240f740737c5c83bdccdacc30603ab"],"basis":"shared function","functions":["getResource"]}]}],"packageHistory":[{"cve":"CVE-2015-5211","published":"2017-05-25","fixed":"4.2.2","kev":false},{"cve":"CVE-2016-5007","published":"2017-05-25","fixed":"4.3.1","kev":false},{"cve":"CVE-2018-1199","published":"2018-03-16","fixed":"5.0.3","kev":false,"link":{"from":"CVE-2018-1199","to":"CVE-2018-1271","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework:spring-core","fromFixed":"4.3.14","toFixed":"4.3.15","daysApart":21},{"kind":"version-step","provenance":"source","package":"Maven:org.springframework:spring-core","fromFixed":"5.0.3","toFixed":"5.0.5","daysApart":21}]}},{"cve":"CVE-2018-1271","published":"2018-04-06","fixed":"5.0.5","kev":false},{"cve":"CVE-2018-1272","published":"2018-04-06","fixed":"5.0.5","kev":false},{"cve":"CVE-2018-1257","published":"2018-05-11","fixed":"5.0.6","kev":false},{"cve":"CVE-2018-1258","published":"2018-05-11","fixed":"5.0.6.RELEASE","kev":false}],"package":"Maven:org.springframework:spring-core"}}