Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework/spring-webmvc
  4. ›
  5. CVE-2018-1271

CVE-2018-1271: Path Traversal

April 6, 2018 (updated July 23, 2019)

Spring Framework allows 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.

References

  • www.securityfocus.com/bid/103699
  • nvd.nist.gov/vuln/detail/CVE-2018-1271
  • pivotal.io/security/cve-2018-1271

Code Behaviors & Features

Detect and mitigate CVE-2018-1271 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 4.2.9.RELEASE, all versions starting from 4.3.0.RELEASE before 4.3.15.RELEASE, all versions starting from 5.0.RELEASE before 5.0.5.RELEASE

Fixed versions

  • 4.3.15.RELEASE
  • 5.0.5.RELEASE

Solution

Upgrade to versions 4.3.15.RELEASE, 5.0.5.RELEASE or above.

Impact 5.9 MEDIUM

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

maven/org.springframework/spring-webmvc/CVE-2018-1271.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:16 +0000.