Medium

DSpace is vulnerable to Path Traversal attacks when importing packages using Simple Archive Format

  • Disclosed: 15.07.2025
  • Updated: 11.10.2026 12:21

Impact

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. This vulnerability likely impacts all versions of DSpace 1.x <= 7.6.3, 8.0 <= 8.1, and 9.0.

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 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.
  • An attacker without administrative credentials might use some other tactic to convince an administrator to import a malicious SAF archive they have supplied.

Patches

The fix is included in DSpace 7.6.4, 8.2 and 9.1. Please upgrade to one of these versions.

If 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.

Apply the patch to your DSpace

If 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:

  1. Download the appropriate patch file to the machine where DSpace backend is running
  2. From the [dspace-src] folder, apply the patch, e.g. git apply [name-of-file].patch
  3. Now, update your DSpace site (based loosely on the Upgrade instructions). This generally involves three steps:
    1. Rebuild DSpace, e.g. mvn -U clean package (This will recompile all DSpace backend code)
    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.
    3. Restart Tomcat (or runnable JAR)

Workarounds

Patching the system is the recommended fix. It is not possible to fully protect your system via workarounds.

That said, until you are able to patch your system or upgrade, you can apply these best practices:

  • 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.
  • If SAF archives are too large to manually inspect, you should avoid importing them until your site is patched.

Credits

Discovered & reported by Marcin Miłosz (@MMilosz) of PCG Academia Code fix developed by Marcin Miłosz of PCG Academia and Kim Shepherd (@kshepherd) of The Library Code

For more information

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.dspace:dspace-api < 7.6.4, >= 8.0, < 8.2, >= 9.0, < 9.1 7.6.4, 8.2, 9.1

References

CVSS score 5.2/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:L
Weakness (CWE)
CWE-22
Platform
Java / Kotlin (Maven)
Package
org.dspace:dspace-api
Disclosed
15.07.2025
Updated
11.10.2026 12:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-vhvx-8xgc-99wf - CC BY 4.0

Vulnerability history: org.dspace:dspace-api

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
8
First → latest
11.2021 07.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 3
  • Medium 5

Disclosures per year

  1. 2021: 1
  2. 2022: 1
  3. 2023: 0
  4. 2024: 0
  5. 2025: 2
  6. 2026: 4
  1. Medium · 5.5 CVE-2026-49833 >= 8.0-rc1, < 8.4, >= 9.0-rc1, < 9.3, >= 10.0-rc1, < 10.0 8.4, 9.3, 10.0
  2. Medium · 4.4 CVE-2026-49830 < 7.6.7, >= 8.0-rc1, < 8.4, >= 9.0-rc1, < 9.3, >= 10-rc1, < 10.0 7.6.7, 8.4, 9.3, 10.0
  3. Medium · 5.5 CVE-2026-49831 < 7.6.7, >= 8.0-rc1, < 8.4, >= 9.0-rc1, < 9.3, >= 10-rc1, < 10.0 7.6.7, 8.4, 9.3, 10.0
  4. High · 8.0 CVE-2026-49832 >= 8.0-rc1, < 8.4, >= 9.0-rc1, < 9.3, >= 10.0-rc1, < 10.0 8.4, 9.3, 10.0
  5. DSpace is vulnerable to Path Traversal attacks when importing packages using Simple Archive Format this entry
    Medium · 5.2 CVE-2025-53622 < 7.6.4, >= 8.0, < 8.2, >= 9.0, < 9.1 7.6.4, 8.2, 9.1
  6. Medium · 6.9 CVE-2025-53621 < 7.6.4, >= 8.0, < 8.2, >= 9.0, < 9.1 7.6.4, 8.2, 9.1
  7. High · 7.2 CVE-2022-31195 >= 4.0, < 5.11, >= 6.0, < 6.4 5.11, 6.4

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.