Wysoka

DSpace has possible Remote Code Execution (RCE) through Velocity Templates used by LDN

  • Ujawniono: 08.07.2026
  • Aktualizacja: 11.10.2026 12:22

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.

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:

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

Czego dotyczy

Kliknij technologię, aby zobaczyć wszystkie dotyczące jej podatności.

PlatformaPaczkaPodatne wersjePoprawka w wersji
Java / Kotlin (Maven) org.dspace:dspace-api >= 8.0-rc1, < 8.4, >= 9.0-rc1, < 9.3, >= 10.0-rc1, < 10.0 8.4, 9.3, 10.0

Odnośniki

Ocena CVSS 8/10
Wektor CVSS
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
Słabość (CWE)
CWE-94
Platforma
Java / Kotlin (Maven)
Paczka
org.dspace:dspace-api
Ujawniono
08.07.2026
Aktualizacja
11.10.2026 12:22

Źródła i licencje

OSV / GitHub Advisory Database - GHSA-9x82-rm84-c6x7 - CC BY 4.0

Historia podatności: org.dspace:dspace-api

Wszystkie opisane podatności tej paczki (Java / Kotlin (Maven)), od najnowszej. Widać, czy to jednorazowa wpadka, czy paczka, której trzeba pilnować.

Wszystkich wpisów
8
Pierwsza → ostatnia
11.2021 07.2026
Bez poprawki
0
Wykorzystywana w atakach
0

Rozkład istotności

  • Wysoka 3
  • Średnia 5

Ujawnienia w latach

  1. 2021: 1
  2. 2022: 1
  3. 2023: 0
  4. 2024: 0
  5. 2025: 2
  6. 2026: 4
  1. Średnia · 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. Średnia · 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. Średnia · 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. DSpace has possible Remote Code Execution (RCE) through Velocity Templates used by LDN ten wpis
    Wysoka · 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. Średnia · 5.2 CVE-2025-53622 < 7.6.4, >= 8.0, < 8.2, >= 9.0, < 9.1 7.6.4, 8.2, 9.1
  6. Średnia · 6.9 CVE-2025-53621 < 7.6.4, >= 8.0, < 8.2, >= 9.0, < 9.1 7.6.4, 8.2, 9.1
  7. Wysoka · 7.2 CVE-2022-31195 >= 4.0, < 5.11, >= 6.0, < 6.4 5.11, 6.4

Dowiedz się, które podatności dotyczą Twojej aplikacji

Po podłączeniu integracji DockRay i włączeniu raportowania oprogramowania DockRay porównuje zgłoszone wersje komponentów ze znanymi podatnościami i powiadamia o potwierdzonych dopasowaniach. Zakres zależy od obsługiwanej technologii i dostępnych biuletynów.

Podłącz swoją aplikację
Newsletter DockRay

Bezpieczeństwo aplikacji w Twojej skrzynce

Najważniejsze podatności, konkretne zalecenia i praktyczne wskazówki dla Twoich aplikacji. Wybierz technologie i śledź to, co ma znaczenie dla Twojego projektu.

  • Codzienne zestawienie nowych podatności, także krytycznych.
  • Powiadomienia o ważnych aktualizacjach.
  • Praktyczne porady o bezpieczeństwie i monitoringu aplikacji.

Pozostaw puste, aby otrzymywać informacje o wszystkich technologiach.

Zapis jest bezpłatny. Wypiszesz się jednym kliknięciem w wiadomości.