DSpace ItemImportServiceImpl Path Traversal Vulnerability
CVE-2022-31195 Published on August 1, 2022
Path traversal vulnerability in Simple Archive Format package import in DSpace
DSpace open source software is a repository application which provides durable access to digital resources. In affected versions the ItemImportServiceImpl is vulnerable to a path traversal vulnerability. This means a malicious SAF (simple archive format) package could cause a file/directory to be created anywhere the Tomcat/DSpace user can write to on the server. However, this path traversal vulnerability is only possible by a user with special privileges (either Administrators or someone with command-line access to the server). This vulnerability impacts the XMLUI, JSPUI and command-line. Users are advised to upgrade. As a basic workaround, users may block all access to the following URL paths: If you are using the XMLUI, block all access to /admin/batchimport path (this is the URL of the Admin Batch Import tool). Keep in mind, if your site uses the path "/xmlui", then you'd need to block access to /xmlui/admin/batchimport. If you are using the JSPUI, block all access to /dspace-admin/batchimport path (this is the URL of the Admin Batch Import tool). Keep in mind, if your site uses the path "/jspui", then you'd need to block access to /jspui/dspace-admin/batchimport. Keep in mind, only an Administrative user or a user with command-line access to the server is able to import/upload SAF packages. Therefore, assuming those users do not blindly upload untrusted SAF packages, then it is unlikely your site could be impacted by this vulnerability.
Vulnerability Analysis
CVE-2022-31195 can be exploited with network access, and requires user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be very high.
Weakness Type
What is a Directory traversal Vulnerability?
The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the software does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
CVE-2022-31195 has been classified to as a Directory traversal vulnerability or weakness.
Products Associated with CVE-2022-31195
Want to know whenever a new CVE is published for Duraspace Dspace? stack.watch will email you.
Affected Versions
DSpace:- Version >= 6.0, < 6.4 is affected.
- Version >= 4.0, < 5.11 is affected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2022-31195
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| maven | org.dspace:dspace-api | >= 4.0, < 5.11 | 5.11 |
| maven | org.dspace:dspace-api | >= 6.0, < 6.4 | 6.4 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.