DSpace CVE-2026-49832
HIGHSeverity by source
AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
Admin credentials required (PR:H) and non-default LDN plus chaining with path traversal raise complexity (AC:H); reflection escapes the template sandbox to run host code, giving S:C and full C/I/A:H.
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2Blast Radius
ecosystem impact- 10 maven packages depend on org.dspace:dspace-api (7 direct, 3 indirect)
Ecosystem-wide dependent count for version 8.0-rc1.
DescriptionGitHub Advisory
Overview
Remote Code Execution (RCE) is possible via Velocity Templates used by DSpace for COAR Notify/LDN messages. _This vulnerability impacts DSpace versions 8.0 <= 8.3, 9.0 <= 9.2._ The attacker MUST already have DSpace administrator credentials in order to perform the attack.
This attack is related to the path traversal attack identified in GHSA-9qm4-rh6w-pq5x as it was the impactful part of the "proof-of-concept" attack chain.
Impact
When chained with the LDN Path Traversal Attack identified in GHSA-9qm4-rh6w-pq5x, it may be possible to execute Java directly from Velocity templates using reflection. This is a very high impact vulnerability, but the attack can only be performed by a user that has DSpace Administrator privileges. Disabling LDN (see below) removes all known attack paths.
Velocity is also used for email templating, but there is no known attack path via emails templates. Nonetheless, the patches below also apply to email templates.
Patches
The fix is included in DSpace 8.4, 9.3 and 10.0. Please upgrade to one of these versions or disable LDN (see below)
If users cannot upgrade immediately, it is possible to manually patch their DSpace backend. (No changes are necessary to the frontend.) A pull request exists which can be used to patch systems running DSpace 8.x or 9.x.
- Pull request for 9.x: https://github.com/DSpace/DSpace/pull/12548 (Downloadable patch file)
- Pull request for 8.x: https://github.com/DSpace/DSpace/pull/12549 (Downloadable patch file)
Apply the patch to a DSpace instance
If at all possible, DSpace project maintainers recommend disabling LDN (see below) or upgrading a DSpace site based on the upgrade instructions. However, if users are unable to do so, they can manually apply the above patches to their Space backend as follows:
- Download the appropriate patch file to the machine where DSpace backend is running
- From the
[dspace-src]folder, apply the patch, e.g.git apply [name-of-file].patch - Now, update the application's DSpace site (based loosely on the Upgrade instructions). This generally involves three steps:
- Rebuild DSpace, e.g.
mvn -U clean package(This will recompile all DSpace backend code) - Redeploy DSpace, e.g.
ant update(This will copy all newly built code to the application's installation directory). Depending on an application's setup users also may need to copy the updated "server" webapp over to their Tomcat webapps folder. - Restart Tomcat (or runnable JAR)
Workarounds
- In
dspace.cfgorlocal.cfg, disable LDN (setldn.enabled=false) if it is not crucial to the operation of the repository. (NOTE: LDN is disabled by default, so many DSpace sites may not use this feature) - Once users have patched theirr site or upgraded, they may safely enable LDN again.
Resources
This vulnerability is similar to vulnerabilities reported by Velocity itself:
- Velocity 2.2. CVE: https://www.cve.org/CVERecord?id=CVE-2020-13936
- This was patched in Velocity 2.3, and DSpace already includes this patch.
Credits
Discovered & reported by Pablo Picurelli Ortiz (@superpegaso2703), cybersecurity student at Universidad Rey Juan Carlos. Reported as a possible attack combined with the LDN Path Traversal vulnerability. Code fix developed by Kim Shepherd (@kshepherd) of The Library Code
AnalysisAI
Remote code execution in DSpace 8.0-8.3 and 9.0-9.2 allows an authenticated administrator to execute arbitrary Java via Velocity templates used to render COAR Notify/LDN messages, using reflection to escape the templating sandbox. Exploitation requires valid DSpace administrator credentials and is most impactful when chained with the related LDN path-traversal flaw (GHSA-9qm4-rh6w-pq5x). No public exploit identified at time of analysis, and CVSS is 8.0 (High).
Technical ContextAI
DSpace is a Java-based open-source digital repository platform (dspace-api Maven artifact) widely used for institutional and academic repositories. The flaw is a CWE-94 code injection in its use of Apache Velocity, a server-side template engine, to render inbound COAR Notify / Linked Data Notifications (LDN) messages. Velocity templates can reach Java objects, and via reflection an attacker-controlled template can invoke arbitrary Java methods, turning template rendering into arbitrary code execution. This is the same class of issue as Velocity's own CVE-2020-13936 (patched in Velocity 2.3, which DSpace already ships), but here the exposure comes from how DSpace routes LDN content through Velocity rather than from the engine itself. Velocity is also used for email templating, but no attack path via email templates is known.
RemediationAI
Vendor-released patch: upgrade to DSpace 8.4, 9.3, or 10.0 per the official upgrade instructions. If immediate upgrade is not possible, the primary compensating control is to disable LDN by setting ldn.enabled=false in dspace.cfg or local.cfg - this removes all known attack paths and, because LDN is disabled by default, many sites are unaffected already; the trade-off is loss of COAR Notify / LDN interoperability. Alternatively, manually patch the backend using the upstream pull requests (9.x: https://github.com/DSpace/DSpace/pull/12548 with patch https://github.com/DSpace/DSpace/pull/12548.patch; 8.x: https://github.com/DSpace/DSpace/pull/12549 with patch https://github.com/DSpace/DSpace/pull/12549.patch) by running git apply on the patch file from [dspace-src], rebuilding with mvn -U clean package, redeploying with ant update, and restarting Tomcat or the runnable JAR. LDN may safely be re-enabled after patching or upgrading.
When running Apache Tomcat versions 9.0.0.M1 to 9.0.0, 8.5.0 to 8.5.22, 8.0.0.RC1 to 8.0.46 and 7.0.0 to 7.0.81 with HTT
When using the Apache JServ Protocol (AJP), care must be taken when trusting incoming connections to Apache Tomcat. Rate
In SysAid On-Premise before 23.3.36, a path traversal vulnerability leads to code execution after an attacker writes a f
Remote code execution is possible with Apache Tomcat before 6.0.48, 7.x before 7.0.73, 8.x before 8.0.39, 8.5.x before 8
When running Apache Tomcat 7.0.0 to 7.0.79 on Windows with HTTP PUTs enabled (e.g. Rated high severity (CVSS 8.1), this
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
MultipartStream.java in Apache Commons FileUpload before 1.3.1, as used in Apache Tomcat, JBoss Web, and other products,
The payload length in a WebSocket frame was not correctly validated in Apache Tomcat 10.0.0-M1 to 10.0.0-M6, 9.0.0.M1 to
When using a VirtualDirContext with Apache Tomcat 7.0.0 to 7.0.80 it was possible to bypass security constraints and/or
When using Apache Tomcat versions 10.0.0-M1 to 10.0.0-M4, 9.0.0.M1 to 9.0.34, 8.5.0 to 8.5.54 and 7.0.0 to 7.0.103 if a)
java/org/apache/coyote/http11/filters/ChunkedInputFilter.java in Apache Tomcat 6.x before 6.0.42, 7.x before 7.0.55, and
Missing encryption of cluster replication traffic in Apache Tomcat 11.0.20, 10.1.53, and 9.0.116 exposes sensitive sessi
Same weakness CWE-94 – Code Injection
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
GHSA-9x82-rm84-c6x7