Arbitrary Code Injection Affecting org.dspace:dspace-api package, versions [8.0-rc1,8.4)[9.0-rc1,9.3)[10.0-rc1,10.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGDSPACE-17901262
  • published9 Jul 2026
  • disclosed8 Jul 2026
  • creditsuperpegaso2703

Introduced: 8 Jul 2026

NewCVE-2026-49832  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade org.dspace:dspace-api to version 8.4, 9.3, 10.0 or higher.

Overview

org.dspace:dspace-api is a DSpace core data model and service APIs.

Affected versions of this package are vulnerable to Arbitrary Code Injection through the Velocity template processing in org.dspace.core.LDN and org.dspace.core.Email. An attacker with DSpace administrator credentials can supply or modify LDN/Velocity template content so the template engine resolves reflective access and executes Java code during LDN message generation. This affects repositories that use LDN message templates, and it can let an authenticated administrator run arbitrary code on the DSpace backend, compromising the server and any data or actions reachable from that process.

Notes

  • The vulnerable LDN/email template context exposed the full ConfigurationService object to Velocity, so template authors could access arbitrary configuration keys rather than just the small set intended for message rendering.
  • The issue is limited to deployments using the Velocity-based LDN/message-template path; the maintainer's advisory notes that ldn.enabled=false disables the known attack path.

Workarounds

  • Disable LDN in dspace.cfg or local.cfg by setting ldn.enabled=false if LDN is not essential; this removes the known attack path for the template RCE issue.
  • If you cannot upgrade immediately, manually apply the maintainer-provided patch for your branch to the DSpace backend, then rebuild, redeploy, and restart the backend; this mitigates the vulnerable Velocity template processing used by LDN and email templating.

CVSS Base Scores

version 4.0
version 3.1