{"cve":"CVE-2022-31195","nvd":{"published":"2022-08-01T21:15:13.557","modified":"2026-06-17T04:45:00.470","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2},"cwes":["CWE-22"],"references":["https://github.com/DSpace/DSpace/commit/56e76049185bbd87c994128a9d77735ad7af0199","https://github.com/DSpace/DSpace/commit/7af52a0883a9dbc475cf3001f04ed11b24c8a4c0","https://github.com/DSpace/DSpace/security/advisories/GHSA-8rmh-55h4-93h5","https://github.com/DSpace/DSpace/commit/56e76049185bbd87c994128a9d77735ad7af0199","https://github.com/DSpace/DSpace/commit/7af52a0883a9dbc475cf3001f04ed11b24c8a4c0"],"products":["duraspace:dspace"],"source":"nvd","synced_at":"2026-10-19T21:34:18.502168378+00:00"},"epss":{"cve":"CVE-2022-31195","score":0.01968,"percentile":0.80388,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-8rmh-55h4-93h5","url":"https://osv.dev/vulnerability/GHSA-8rmh-55h4-93h5","summary":"DSpace ItemImportService API Vulnerable to Path Traversal in Simple Archive Format Package Import","modified":"2023-11-08T04:09:29.748768Z","packages":[{"ecosystem":"Maven","name":"org.dspace:dspace-api","purl":"pkg:maven/org.dspace/dspace-api","ranges":[">=4.0 <5.11"],"fixed":["5.11"]},{"ecosystem":"Maven","name":"org.dspace:dspace-api","purl":"pkg:maven/org.dspace/dspace-api","ranges":[">=6.0 <6.4"],"fixed":["6.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}