CVE-2025-53622: Dspace api Path Traversal Vulnerability
MODERATECVE-2025-53622 is a MODERATE (CVSS 5.2) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Dspace api libraries in the Maven ecosystem. The issue involves dspace is vulnerable to path traversal attacks when importing packages using simple archive format. Remediation is available by upgrading affected packages to version 7.6.4, 8.2, 9.1.
CVE-2025-53622 at a Glance
Security Impact
CVSS: 5.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:L).
How to Fix CVE-2025-53622
To remediate this vulnerability, upgrade all affected Dspace api dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-api</artifactId>
<version>7.6.4</version>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-api</artifactId>
<version>8.2</version>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
<artifactId>dspace-api</artifactId>
<version>9.1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.dspace
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-53622, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.dspace
Analyze the terminal output to locate any version of Dspace api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.6.4), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.dspace command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Dspace api, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-53622 Affected Dspace api Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.dspace:dspace-api
|
Maven |
< 7.6.4
|
7.6.4
|
|
org.dspace:dspace-api
|
Maven |
≥ 8.0
< 8.2
|
8.2
|
|
org.dspace:dspace-api
|
Maven |
≥ 9.0
< 9.1
|
9.1
|
References
Frequently Asked Questions
What is CVE-2025-53622?
Which Dspace api versions are affected?
What version fixes CVE-2025-53622?
Is dspace-api affected?
What is the CVSS score of CVE-2025-53622?
What CWE is associated with CVE-2025-53622?
How can I check Maven dependencies for CVE-2025-53622?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vhvx-8xgc-99wf",
"modified" : "2025-07-15T18:05:31Z",
"published" : "2025-07-15T18:05:31Z",
"aliases" : [ "CVE-2025-53622" ],
"summary" : "DSpace is vulnerable to Path Traversal attacks when importing packages using Simple Archive Format",
"details" : "### Impact\n\nA path traversal vulnerability is possible during the import of an archive (in [Simple Archive Format](https://wiki.lyrasis.org/pages/viewpage.action?pageId=104566653)), either from command-line (`./dspace import` command) or from the \"Batch Import (Zip)\" user interface feature. _This vulnerability likely impacts all versions of DSpace 1.x <= 7.6.3, 8.0 <= 8.1, and 9.0_.\n\nAn 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.\n\n**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).\n* **The most severe practical impact** is a case where an attacker obtains DSpace administrator credentials and uses the Batch Import feature with a malicious SAF archive to expose sensitive local files readable by the Tomcat user.\n* An attacker without administrative credentials might use some other tactic to convince an administrator to import a malicious SAF archive they have supplied.\n\n### Patches\n\nThe fix is included in DSpace 7.6.4, 8.2 and 9.1. Please upgrade to one of these versions.\n\nIf you cannot upgrade immediately, it is possible to manually patch your 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. This pull request provides validation checks of paths in the `contents` file of an SAF package to ensure it does not reference any files outside of the SAF package.\n* Pull request for 7.x: https://github.com/DSpace/DSpace/pull/11036 ([Downloadable patch file](https://github.com/DSpace/DSpace/pull/11036.patch))\n* Pull request for 8.x: https://github.com/DSpace/DSpace/pull/11037 ([Downloadable patch file](https://github.com/DSpace/DSpace/pull/11037.patch))\n* Pull request for 9.0: https://github.com/DSpace/DSpace/pull/11038 ([Downloadable patch file](https://github.com/DSpace/DSpace/pull/11038.patch))\n\n#### Apply the patch to your DSpace\nIf at all possible, we recommend upgrading your DSpace site based on the upgrade instructions. However, if you are unable to do so, you can manually apply the above patches to your DSpace backend as follows:\n1. Download the appropriate patch file to the machine where DSpace backend is running\n2. From the `[dspace-src]` folder, apply the patch, e.g. `git apply [name-of-file].patch`\n3. Now, update your DSpace site (based loosely on the Upgrade instructions). This generally involves three steps:\n 1. Rebuild DSpace, e.g. `mvn -U clean package` (This will recompile all DSpace backend code)\n 2. Redeploy DSpace, e.g. `ant update` (This will copy all newly built code to your installation directory). Depending on your setup you also may need to copy the updated \"server\" webapp over to your Tomcat webapps folder.\n 3. Restart Tomcat (or runnable JAR)\n\n### Workarounds\n**Patching the system is the recommended fix.** It is not possible to fully protect your system via workarounds.\n\nThat said, until you are able to patch your system or upgrade, you can apply these best practices:\n* 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.\n* If SAF archives are too large to manually inspect, you should avoid importing them until your site is patched.\n\n### Credits\nDiscovered & reported by Marcin Miłosz (@MMilosz) of PCG Academia\nCode fix developed by Marcin Miłosz of PCG Academia and Kim Shepherd (@kshepherd) of The Library Code\n\n### For more information\n* [Path Traversal Vulnerability explained](https://owasp.org/www-community/attacks/Path_Traversal)\n* If you have any questions or comments about this advisory, please contact us at [security@dspace.org](mailto:security@dspace.org)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.dspace:dspace-api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "7.6.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.dspace:dspace-api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0"
}, {
"fixed" : "8.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.dspace:dspace-api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.0"
}, {
"fixed" : "9.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/DSpace/DSpace/security/advisories/GHSA-vhvx-8xgc-99wf"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-53622"
}, {
"type" : "WEB",
"url" : "https://github.com/DSpace/DSpace/pull/11036"
}, {
"type" : "WEB",
"url" : "https://github.com/DSpace/DSpace/pull/11036.patch"
}, {
"type" : "WEB",
"url" : "https://github.com/DSpace/DSpace/pull/11037"
}, {
"type" : "WEB",
"url" : "https://github.com/DSpace/DSpace/pull/11037.patch"
}, {
"type" : "WEB",
"url" : "https://github.com/DSpace/DSpace/pull/11038"
}, {
"type" : "WEB",
"url" : "https://github.com/DSpace/DSpace/pull/11038.patch"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/DSpace/DSpace"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-15T18:05:31Z",
"nvd_published_at" : "2025-07-15T15:15:25Z"
}
}