CVE-2022-31195 json
Path traversal vulnerability in Simple Archive Format package import in DSpace
published 2022-08-01 4 y ago modified 2026-06-17 4 mo ago also GHSA-8rmh-55h4-93h5 , EUVD-2022-6519
- cvss
- 7.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.0%
- EPSS 2.0% chance of exploitation in 30 days, percentile 80%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.dspace:dspace-api 5.11, 6.4
- duraspace dspace 6.4
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
1.97% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.dspace:dspace-api | >=4.0, <5.11 >=6.0, <6.4 |
5.11 6.4 |
Affected products
- DSpace DSpace
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/DSpace/DSpace/commit/56e76049185bbd87c994128a9d77735ad7af0199
web, patch, third-party-advisory
-
github.com
/DSpace/DSpace/commit/7af52a0883a9dbc475cf3001f04ed11b24c8a4c0
web, patch, third-party-advisory
-
github.com
/DSpace/DSpace/security/advisories/GHSA-8rmh-55h4-93h5
web, patch, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31195
advisory
-
github.com
/DSpace/DSpace
package
Sources
- CVE List CVE-2022-31195
- GitHub Advisory GHSA-8rmh-55h4-93h5
- NVD CVE-2022-31195
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.