{"id":"CVE-2022-31195","published":"2022-08-01T20:35:11Z","modified":"2025-04-23T17:55:08Z","title":"Path traversal vulnerability in Simple Archive Format package import in DSpace","vendor":"DSpace","product":"DSpace","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01965,"percentile":0.80987,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/DSpace/DSpace/security/advisories/GHSA-8rmh-55h4-93h5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/DSpace/DSpace/commit/56e76049185bbd87c994128a9d77735ad7af0199","tags":["x_refsource_MISC"]},{"url":"https://github.com/DSpace/DSpace/commit/7af52a0883a9dbc475cf3001f04ed11b24c8a4c0","tags":["x_refsource_MISC"]}],"priority":{"score":21.2,"factors":[{"name":"EPSS percentile","points":16.2},{"name":"CVSS severity","points":5.04}]},"vendorSlug":"dspace","affectedVersions":[{"vendor":"DSpace","product":"DSpace","versions":[">= 6.0, < 6.4",">= 4.0, < 5.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:51:15.550830Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.dspace:dspace-api","vulnerableRanges":[">=4.0, <5.11",">=6.0, <6.4"],"patched":["5.11","6.4"],"from":["GHSA-8rmh-55h4-93h5"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in the ItemImportServiceImpl component of DSpace's Simple Archive Format (SAF) package import lets a malicious package create files or directories at arbitrary locations writable by the Tomcat/DSpace user. Exploitation requires a high-privilege user, either an administrator or someone with command-line access to the server, and the attacker must supply or upload a crafted SAF package.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:09:43Z"},"euvd":{"id":"EUVD-2022-6519","exploited":false,"provenance":"source"}}