GitHub Advisoryadvisory · Maven, RubyGems, PyPI, NuGet
GHSA-j945-c44v-97g6 MPXJ has a Potential Path Traversal Vulnerability
MEDIUM
Official page ↗
- Aliases
- CVE-2024-49771
- Ecosystem
- Maven, RubyGems, PyPI, NuGet
- Packages
- net.sf.mpxj:mpxj, mpxj, net.sf.mpxj, net.sf.mpxj-for-csharp, net.sf.mpxj-for-vb, MPXJ.Net
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Weaknesses
- CWE-22
- Reviewed
- 2024-10-28
Affected packages
• Maven net.sf.mpxj:mpxj: >= 8.3.5, < 13.5.1 → fixed in 13.5.1
• RubyGems mpxj: >= 8.3.5, < 13.5.1 → fixed in 13.5.1
• PyPI mpxj: >= 8.3.5, < 13.5.1 → fixed in 13.5.1
• NuGet net.sf.mpxj: >= 8.3.5, < 13.5.1 → fixed in 13.5.1
• NuGet net.sf.mpxj-for-csharp: >= 8.3.5, < 13.5.1 → fixed in 13.5.1
• NuGet net.sf.mpxj-for-vb: >= 8.3.5, < 13.5.1 → fixed in 13.5.1
• NuGet MPXJ.Net: >= 13.0.0, < 13.5.1 → fixed in 13.5.1
Description
Impact
The patch for the historical vulnerability CVE-2020-35460 in MPXJ is incomplete as there is still a possibility that a malicious path could be constructed which would not be picked up by the original fix and allow files to be written to arbitrary locations.
Patches
The issue is addressed in MPXJ version 13.5.1
Workarounds
Do not pass zip files to MPXJ.
References
N/A
Credits
Issue report and patch provided by yyjLF and sprinkle
Related
Alias · CVE (1)
- CVE-2024-49771 MPXJ is an open source library to read and write project plans from a variety of file formats and databases. vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://github.com/joniles/mpxj/security/advisories/GHSA-j945-c44v-97g6 web
- https://nvd.nist.gov/vuln/detail/CVE-2024-49771 advisory
- https://github.com/joniles/mpxj/commit/8002802890dfdc8bc74259f37e053e15b827eea0 web
- https://github.com/joniles/mpxj package
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/mpxj/CVE-2024-49771.yml web