{"id":"CVE-2025-53622","published":"2025-07-15T14:47:45Z","modified":"2025-07-15T15:47:46Z","title":"DSpace has path traversal vulnerability in Simple Archive Format (SAF) package import via contents file","vendor":"DSpace","product":"DSpace","tier":"tail","description":{"text":"DSpace open source software is a repository application which provides durable access to digital resources. Prior to versions 7.6.4, 8.2, and 9.1, a path traversal vulnerability is possible during the import of an archive (in Simple Archive Format), either from command-line (`./dspace import` command) or from the \"Batch Import (Zip)\" user interface feature. An attacker may craft a malicious Simple Archive Format (SAF) package where the `contents` file references any system files (using relative traversal sequences) which are readable by the Tomcat user.  If such a package is imported, this will result in sensitive content disclose, including retrieving arbitrary files or configurations from the server where DSpace is running. The Simple Archive Format (SAF) importer / Batch Import (Zip) is only usable by site administrators (from user interface / REST API) or system administrators (from command-line). Therefore, to exploit this vulnerability, the malicious payload would have to be provided by an attacker and trusted by an administrator (who would trigger the import). The fix is included in DSpace 7.6.4, 8.2 and 9.1. For those who cannot upgrade immediately, it is possible to manually patch the DSpace backend. (No changes are necessary to the frontend.)  A pull request exists which can be used to patch systems running DSpace 7.6.x, 8.x or 9.0. Although it is not possible to fully protect the system via workarounds, one may can apply a best practice. Administrators must carefully inspect any SAF archives (they did not construct themselves) before importing, paying close attention to the `contents` file to validate it does not reference files outside of the SAF archives.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0048,"percentile":0.4233,"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-vhvx-8xgc-99wf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/DSpace/DSpace/pull/11036","tags":["x_refsource_MISC"]},{"url":"https://github.com/DSpace/DSpace/pull/11036.patch","tags":["x_refsource_MISC"]},{"url":"https://github.com/DSpace/DSpace/pull/11037","tags":["x_refsource_MISC"]},{"url":"https://github.com/DSpace/DSpace/pull/11037.patch","tags":["x_refsource_MISC"]},{"url":"https://github.com/DSpace/DSpace/pull/11038","tags":["x_refsource_MISC"]},{"url":"https://github.com/DSpace/DSpace/pull/11038.patch","tags":["x_refsource_MISC"]}],"priority":{"score":12.1,"factors":[{"name":"EPSS percentile","points":8.47},{"name":"CVSS severity","points":3.64}]},"vendorSlug":"dspace","affectedVersions":[{"vendor":"DSpace","product":"DSpace","versions":["< 7.6.4",">= 8.0, < 8.2",">= 9.0, < 9.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-07-15T15:45:25.660140Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.dspace:dspace-api","vulnerableRanges":["<7.6.4",">=8.0, <8.2",">=9.0, <9.1"],"patched":["7.6.4","8.2","9.1"],"from":["GHSA-vhvx-8xgc-99wf"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in DSpace's Simple Archive Format (SAF) package importer, which is reached through the ./dspace import command and the \"Batch Import (Zip)\" feature, lets a crafted package's contents file reference arbitrary files on the server that the Tomcat user can read. An attacker who can supply a malicious package would need an administrator to trust it and run the import (requiring high privileges and user interaction), at which point sensitive files or configuration can be disclosed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:03Z"},"euvd":{"id":"EUVD-2025-21448","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-31195","published":"2022-08-01","fixed":"6.4","kev":false},{"cve":"CVE-2021-41189","published":"2021-10-29","fixed":"7.1","kev":false},{"cve":"CVE-2025-53621","published":"2025-07-15","fixed":"9.1","kev":false},{"cve":"CVE-2025-53622","published":"2025-07-15","fixed":"9.1","kev":false},{"cve":"CVE-2026-49830","published":"2026-09-02","fixed":"10.0","kev":false,"link":{"from":"CVE-2025-53622","to":"CVE-2026-49830","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.dspace:dspace-api","fromFixed":"7.6.4","toFixed":"7.6.7","daysApart":414}]}},{"cve":"CVE-2026-49831","published":"2026-09-02","fixed":"10.0","kev":false,"link":{"from":"CVE-2025-53622","to":"CVE-2026-49831","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.dspace:dspace-api","fromFixed":"7.6.4","toFixed":"7.6.7","daysApart":414}]}},{"cve":"CVE-2026-49832","published":"2026-09-02","fixed":"10.0","kev":false}],"package":"Maven:org.dspace:dspace-api"}}