{"api_version":"1","generated_at":"2026-07-23T16:44:36+00:00","cve":"CVE-2022-31195","urls":{"html":"https://cve.report/CVE-2022-31195","api":"https://cve.report/api/cve/CVE-2022-31195.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-31195","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-31195"},"summary":{"title":"CVE-2022-31195","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-08-01 21:15:00","updated_at":"2022-08-08 17:16:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://github.com/DSpace/DSpace/security/advisories/GHSA-8rmh-55h4-93h5","name":"https://github.com/DSpace/DSpace/security/advisories/GHSA-8rmh-55h4-93h5","refsource":"CONFIRM","tags":[],"title":"Path traversal vulnerability in Simple Archive Format package import (ItemImportService API) · Advisory · DSpace/DSpace · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/DSpace/DSpace/commit/56e76049185bbd87c994128a9d77735ad7af0199","name":"https://github.com/DSpace/DSpace/commit/56e76049185bbd87c994128a9d77735ad7af0199","refsource":"MISC","tags":[],"title":"[DS-4131] Better path handling in ItemImport zips · DSpace/DSpace@56e7604 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/DSpace/DSpace/commit/7af52a0883a9dbc475cf3001f04ed11b24c8a4c0","name":"https://github.com/DSpace/DSpace/commit/7af52a0883a9dbc475cf3001f04ed11b24c8a4c0","refsource":"MISC","tags":[],"title":"[DS-4131] Fix zip import handling to avoid path traversal exploit · DSpace/DSpace@7af52a0 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-31195","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31195","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"31195","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"duraspace","cpe5":"dspace","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"31195","vulnerable":"1","versionEndIncluding":"5.10","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"duraspace","cpe5":"dspace","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-31195","STATE":"PUBLIC","TITLE":"Path traversal vulnerability in Simple Archive Format package import in DSpace"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"DSpace","version":{"version_data":[{"version_value":">= 6.0, < 6.4"},{"version_value":">= 4.0, < 5.11"}]}}]},"vendor_name":"DSpace"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.2,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"}]}]},"references":{"reference_data":[{"name":"https://github.com/DSpace/DSpace/security/advisories/GHSA-8rmh-55h4-93h5","refsource":"CONFIRM","url":"https://github.com/DSpace/DSpace/security/advisories/GHSA-8rmh-55h4-93h5"},{"name":"https://github.com/DSpace/DSpace/commit/56e76049185bbd87c994128a9d77735ad7af0199","refsource":"MISC","url":"https://github.com/DSpace/DSpace/commit/56e76049185bbd87c994128a9d77735ad7af0199"},{"name":"https://github.com/DSpace/DSpace/commit/7af52a0883a9dbc475cf3001f04ed11b24c8a4c0","refsource":"MISC","url":"https://github.com/DSpace/DSpace/commit/7af52a0883a9dbc475cf3001f04ed11b24c8a4c0"}]},"source":{"advisory":"GHSA-8rmh-55h4-93h5","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-08-01 21:15:00","lastModifiedDate":"2022-08-08 17:16:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"HIGH","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.2,"baseSeverity":"HIGH"},"exploitabilityScore":1.2,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:duraspace:dspace:*:*:*:*:*:*:*:*","versionStartExcluding":"6.0","versionEndExcluding":"6.4","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:duraspace:dspace:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0","versionEndIncluding":"5.10","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}