CVE-2026-49832: Dspace api Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-9x82-rm84-c6x7
CVSS 8.0
CWE-94
Published
Advisory Summary

CVE-2026-49832 is a HIGH (CVSS 8.0) remote code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Dspace api libraries in the Maven ecosystem. The issue involves dspace has possible remote code execution (rce) through velocity templates used by ldn. Remediation is available by upgrading affected packages to version 8.4, 9.3, 10.0.

CVE-2026-49832 at a Glance

CVE Identifier CVE-2026-49832
GHSA Identifier GHSA-9x82-rm84-c6x7
Severity HIGH
CVSS v3.1 Base Score 8.0
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Dspace api
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-49832

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.

org.dspace:dspace-api fixed: 8.4
<dependency>
    <groupId>org.dspace</groupId>
    <artifactId>dspace-api</artifactId>
    <version>8.4</version>
</dependency>
org.dspace:dspace-api fixed: 9.3
<dependency>
    <groupId>org.dspace</groupId>
    <artifactId>dspace-api</artifactId>
    <version>9.3</version>
</dependency>
org.dspace:dspace-api fixed: 10.0
<dependency>
    <groupId>org.dspace</groupId>
    <artifactId>dspace-api</artifactId>
    <version>10.0</version>
</dependency>
Verify Direct and Transitive Dependencies

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-2026-49832, 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 8.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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. 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

## Overview Remote Code Execution (RCE) is possible via Velocity Templates used by DSpace for [COAR Notify/LDN messages](https://wiki.lyrasis.org/spaces/DSDOC9x/pages/379126679/COAR+Notify). _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](https://github.com/DSpace/DSpace/security/advisories/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](https://github.com/DSpace/DSpace/security/advisories/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](https://github.com/DSpace/DSpace/pull/12548.patch)) * Pull request for 8.x: https://github.com/DSpace/DSpace/pull/12549 ([Downloadable patch file](https://github.com/DSpace/DSpace/pull/12549.patch)) ### 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: 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 the application's 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 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. 3. Restart Tomcat (or runnable JAR) ## Workarounds * In `dspace.cfg` or `local.cfg`, disable LDN (set `ldn.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

CVE-2026-49832 Affected Dspace api Versions

3 component(s)
Fixed Versions:
8.49.310.0
Product / Package Ecosystem Affected Versions Fixed Version
org.dspace:dspace-api
Maven
≥ 8.0-rc1
< 8.4
8.4
org.dspace:dspace-api
Maven
≥ 9.0-rc1
< 9.3
9.3
org.dspace:dspace-api
Maven
≥ 10.0-rc1
< 10.0
All 1 versions
10.0-rc1
10.0

References

Frequently Asked Questions

What is CVE-2026-49832?
CVE-2026-49832 is a security vulnerability in Dspace api involving DSpace has possible Remote Code Execution (RCE) through Velocity Templates used by LDN under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Dspace api versions are affected?
Affected versions include releases prior to 8.4, 9.3, 10.0 across affected packages: org.dspace:dspace-api.
What version fixes CVE-2026-49832?
Upgrading to 8.4, 9.3, 10.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is dspace-api affected?
Yes, org.dspace:dspace-api is affected in releases prior to 8.4, 9.3, 10.0. Upgrade your dependency to 8.4, 9.3, 10.0 or later.
What is the CVSS score of CVE-2026-49832?
CVE-2026-49832 has a CVSS v3.1 base score of 8.0 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2026-49832?
CVE-2026-49832 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Maven dependencies for CVE-2026-49832?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.dspace'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-9x82-rm84-c6x7",
  "modified" : "2026-07-08T20:25:01Z",
  "published" : "2026-07-08T20:25:01Z",
  "aliases" : [ "CVE-2026-49832" ],
  "summary" : "DSpace has possible Remote Code Execution (RCE)  through Velocity Templates used by LDN",
  "details" : "## Overview\n\nRemote Code Execution (RCE) is possible via Velocity Templates used by DSpace for [COAR Notify/LDN messages](https://wiki.lyrasis.org/spaces/DSDOC9x/pages/379126679/COAR+Notify). _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.\n\nThis attack is related to the path traversal attack identified in [GHSA-9qm4-rh6w-pq5x](https://github.com/DSpace/DSpace/security/advisories/GHSA-9qm4-rh6w-pq5x) as it was the impactful part of the \"proof-of-concept\" attack chain.\n\n## Impact\n\nWhen chained with the LDN Path Traversal Attack identified in [GHSA-9qm4-rh6w-pq5x](https://github.com/DSpace/DSpace/security/advisories/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.\n\nVelocity 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.\n\n## Patches\n\nThe fix is included in DSpace 8.4, 9.3 and 10.0.  Please upgrade to one of these versions or disable LDN (see below)\n\nIf 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. \n* Pull request for 9.x: https://github.com/DSpace/DSpace/pull/12548  ([Downloadable patch file](https://github.com/DSpace/DSpace/pull/12548.patch))\n* Pull request for 8.x: https://github.com/DSpace/DSpace/pull/12549  ([Downloadable patch file](https://github.com/DSpace/DSpace/pull/12549.patch))\n\n### Apply the patch to a DSpace instance\nIf 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:\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 the application's 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 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.\n    3. Restart Tomcat (or runnable JAR)\n\n## Workarounds\n* In `dspace.cfg` or `local.cfg`, disable LDN (set `ldn.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)\n* Once users have patched theirr site or upgraded, they may safely enable LDN again.\n\n## Resources\nThis vulnerability is similar to vulnerabilities reported by Velocity itself:\n* Velocity 2.2. CVE: https://www.cve.org/CVERecord?id=CVE-2020-13936\n    * This was patched in Velocity 2.3, and DSpace already includes this patch.\n\n## Credits\n\nDiscovered & 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.\nCode fix developed by Kim Shepherd (@kshepherd) of The Library Code",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.dspace:dspace-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0-rc1"
      }, {
        "fixed" : "8.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.dspace:dspace-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0-rc1"
      }, {
        "fixed" : "9.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.dspace:dspace-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.0-rc1"
      }, {
        "fixed" : "10.0"
      } ]
    } ],
    "versions" : [ "10.0-rc1" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/DSpace/DSpace/security/advisories/GHSA-9x82-rm84-c6x7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DSpace/DSpace/pull/12548"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DSpace/DSpace/pull/12549"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/DSpace/DSpace"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-08T20:25:01Z",
    "nvd_published_at" : null
  }
}