Skip to main content
Vulnerability Database/CVE-2025-53621

CVE-2025-53621: DSpace XXE Injection Vulnerability

CVE-2025-53621 is an XXE injection vulnerability in DSpace repository software that allows attackers to access sensitive server files through malicious XML payloads during archive imports or external service parsing. This article covers technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-53621 Overview

CVE-2025-53621 is an XML External Entity (XXE) injection vulnerability [CWE-611] affecting DSpace, an open source repository application providing durable access to digital resources. The flaw exists in all versions prior to 7.6.4, 8.2, and 9.1. External entities are not disabled when DSpace parses XML files during Simple Archive Format (SAF) imports or when parsing XML responses from upstream services such as ArXiv, Crossref, OpenAIRE, and Creative Commons. An administrator who imports an attacker-supplied archive can trigger connections to attacker-controlled hosts or disclose local files readable by the Tomcat user.

Critical Impact

Successful exploitation enables disclosure of arbitrary files and server configurations accessible to the DSpace Tomcat process, with payloads injected into metadata fields.

Affected Products

  • DSpace versions prior to 7.6.4
  • DSpace versions prior to 8.2
  • DSpace versions prior to 9.1

Discovery Timeline

  • 2025-07-15 - CVE-2025-53621 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-53621

Vulnerability Analysis

The vulnerability resides in two XML parsing paths within the DSpace backend. The first path handles Simple Archive Format imports invoked via the ./dspace import command-line tool or through the "Batch Import (Zip)" user interface. The second path parses XML responses returned by upstream metadata providers, including ArXiv, Crossref, OpenAIRE, and Creative Commons, during import from external sources via the UI or REST API.

In both paths, the XML parsers do not explicitly disable external entity resolution. An attacker who controls either the SAF archive content or an upstream XML response can define external entities that force the parser to fetch remote URLs or read local files from the DSpace server. Retrieved content may be injected directly into metadata fields, producing visible exfiltration of file contents or configuration data.

Exploitation requires administrator action. The SAF importer is restricted to site administrators via the UI and REST API, and to system administrators via the command line. The attacker must therefore convince a trusted administrator to import a malicious archive or trigger an external-source lookup that returns a crafted response.

Root Cause

The root cause is missing hardening of the XML parser configuration. DSpace's XML processing code paths do not set the parser features that disable DOCTYPE declarations, external general entities, and external parameter entities, which is the standard mitigation for [CWE-611]. The pull requests #11032, #11034, and #11035 apply these parser restrictions.

Attack Vector

The attack vector is network-based with high privileges and user interaction required. An attacker crafts an SAF archive containing XML with external entity references pointing to local file paths such as /etc/passwd or attacker-controlled URLs. When an administrator imports the archive, the parser resolves the entities and either exfiltrates data via out-of-band HTTP requests or embeds file contents into item metadata. Alternatively, an attacker who can influence responses from an upstream metadata API, or who registers a malicious identifier resolving through those services, can deliver the payload passively.

See the GitHub Security Advisory GHSA-jjwr-5cfh-7xwh for additional technical context.

Detection Methods for CVE-2025-53621

Indicators of Compromise

  • Unexpected outbound connections from the Tomcat process hosting DSpace to unknown external hosts during or shortly after an import operation.
  • Metadata fields on newly imported items containing contents of local files such as /etc/passwd, DSpace configuration files, or environment data.
  • SAF archive XML files containing <!DOCTYPE> declarations or <!ENTITY> definitions referencing file://, http://, or https:// URIs.
  • DSpace logs showing XML parsing of external sources immediately before anomalous network activity.

Detection Strategies

  • Inspect SAF archives before import for DOCTYPE and ENTITY declarations using static analysis of all .xml files in the archive.
  • Monitor the Tomcat JVM for outbound DNS and HTTP requests correlated with DSpace import jobs.
  • Review metadata fields of recently imported items for binary blobs, Unix path contents, or configuration fragments.

Monitoring Recommendations

  • Enable egress logging on the DSpace server and alert on connections to unexpected destinations during administrator import workflows.
  • Audit the DSpace administrator role membership and log every invocation of the SAF importer and REST import endpoints.
  • Capture file-access telemetry for the Tomcat user and alert on reads of sensitive paths such as /etc/, ~/.ssh/, and the DSpace config/ directory outside normal operation.

How to Mitigate CVE-2025-53621

Immediate Actions Required

  • Upgrade DSpace to version 7.6.4, 8.2, or 9.1, which contain the official fix.
  • Restrict administrator access to the SAF importer and REST import endpoints to a minimal set of trusted accounts.
  • Instruct administrators to never import SAF archives received from untrusted sources without manual XML inspection.

Patch Information

The fix is included in DSpace 7.6.4, 8.2, and 9.1. Backend code changes are available in GitHub Pull Request #11032, GitHub Pull Request #11034, and GitHub Pull Request #11035. Patch files for manual application are published alongside each pull request for operators who cannot upgrade immediately.

Workarounds

  • Manually apply the backend patches from pull requests #11032, #11034, and #11035 to disable external entity resolution in affected parsers.
  • Disable integrations with external metadata providers (ArXiv, Crossref, OpenAIRE, Creative Commons) if upstream XML cannot be trusted.
  • Require two-person review of every SAF archive before administrators trigger an import.
  • Run DSpace Tomcat under a dedicated low-privilege user with no read access to sensitive host paths or secrets.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.