Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.struts/struts2-core
  4. ›
  5. CVE-2017-5638

CVE-2017-5638: Possible Remote Code Execution when performing file upload based on Jakarta Multipart parser.

March 11, 2017 (updated March 4, 2018)

The Jakarta Multipart parser in Apache has incorrect exception handling and error-message generation during file-upload attempts, which allows remote attackers to execute arbitrary commands via a crafted Content-Type, Content-Disposition, or Content-Length HTTP header.

References

  • www.securityfocus.com/bid/96729
  • cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5638
  • cwiki.apache.org/confluence/display/WW/S2-045
  • exploit-db.com/exploits/41570
  • nvd.nist.gov/vuln/detail/CVE-2017-5638
  • packetstormsecurity.com/files/141494/S2-45-poc.py.txt

Code Behaviors & Features

Detect and mitigate CVE-2017-5638 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 starting from 2.3.5 up to 2.3.14.3, all versions starting from 2.3.15 up to 2.3.15.3, all versions starting from 2.3.16 up to 2.3.16.3, version 2.3.17, all versions starting from 2.3.19 up to 2.3.20.3, all versions starting from 2.3.21 up to 2.3.24.3, all versions starting from 2.3.25 up to 2.3.28.1, all versions starting from 2.3.29 up to 2.3.31, all versions starting from 2.5 up to 2.5.10

Fixed versions

  • 2.3.32
  • 2.5.10.1

Solution

Upgrade to versions 2.3.32, 2.5.10.1 or above.

Impact 10 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

maven/org.apache.struts/struts2-core/CVE-2017-5638.yml

Spotted a mistake? Edit the file on GitLab.

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

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