CVE-2026-49831: Dspace api Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-v66x-68f2-pxf5
CVSS 5.5
CWE-22
Published
Advisory Summary

CVE-2026-49831 is a MODERATE (CVSS 5.5) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Dspace api libraries in the Maven ecosystem. The issue involves dspace has a possible path traversal vulnerability in its curation task reporter output path. Remediation is available by upgrading affected packages to version 7.6.7, 8.4, 9.3, 10.0.

CVE-2026-49831 at a Glance

CVE Identifier CVE-2026-49831
GHSA Identifier GHSA-v66x-68f2-pxf5
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Dspace api
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.5

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

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

How to Fix CVE-2026-49831

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: 7.6.7
<dependency>
    <groupId>org.dspace</groupId>
    <artifactId>dspace-api</artifactId>
    <version>7.6.7</version>
</dependency>
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-49831, 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 7.6.7), 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. 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 The [Curation Task](https://wiki.lyrasis.org/spaces/DSDOC9x/pages/379126845/Curation+Tasks) feature allows an output path to be used by the reporter (`-r` parameter), typically used to stream results and status of curation task operations. It is not restricted to any particular base path, meaning that any path writable by the DSpace (often 'tomcat') user is allowed. This constitutes a Path Traversal Vulnerability in the `curate` script. This was not a real problem when curation tasks could only be run from the command-line as a system administrator, but now that Collection/Community/Site Administrators can also run curation tasks via the web user interface, it introduces a possibility for an attacker with DSpace administrative credentials to set command parameters in such a way that output ends up in an unexpected location (for example, static resources folder in the Spring boot webapp, or overwriting a configuration file). _This vulnerability impacts DSpace versions <= 7.6.6, 8.0 <= 8.3, 9.0 <= 9.2._ The attacker MUST already have DSpace Collection/Community/Site Administrator credentials in order to perform the attack. Expected behaviour : Only a set of configured output directories should be allowed as base paths for Curation reporter output. The fix applied here is designed to be used with other systems that need to read or write streams on disk. In addition, we do not see a need for the web-managed processes to allow the `-r` reporter output parameter at all. ## Impact The ability to overwrite a file in `/dspace/config` or `/dspace/bin` is not desired, and could result in a denial of service attack. To actually use the curation reporter to perform an attack that escalates privileges, either a custom curation task would be needed (these can only be deployed by a system administrator), or the output would have to contain some executable information that is combined with other attacks, as a way to provide a payload in a local path. ## Patches The fix is included in DSpace 7.6.7, 8.4, 9.3 and 10.0. Please upgrade to one of these versions at the earliest convenience 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 7.6.x, 8.x or 9.x. * Pull request for 9.x: https://github.com/DSpace/DSpace/pull/12552 ([Downloadable patch file](https://github.com/DSpace/DSpace/pull/12552.patch)) * This 9.x patch file also resolves a similar [path traversal vulnerability in LDN messages](https://github.com/DSpace/DSpace/security/advisories/GHSA-9qm4-rh6w-pq5x) * Pull request for 8.x: https://github.com/DSpace/DSpace/pull/12540 ([Downloadable patch file](https://github.com/DSpace/DSpace/pull/12540.patch)) * This 8.x patch file also resolves a similar [path traversal vulnerability in LDN messages](https://github.com/DSpace/DSpace/security/advisories/GHSA-9qm4-rh6w-pq5x) * Pull request for 7.x: https://github.com/DSpace/DSpace/pull/12539 ([Downloadable patch file](https://github.com/DSpace/DSpace/pull/12539.patch)) ### Apply the patch to a user's DSpace If at all possible, DSpace maintainers recommend disabling the ORE Crosswalk (see below) or upgrading users' DSpace site based on the upgrade instructions. However, if usersare unable to do so, they can manually apply the above patches to their DSpace 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 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 a project's installation directory). Depending on the user's setup they also may need to copy the updated "server" webapp over to their Tomcat webapps folder. 3. Restart Tomcat (or runnable JAR) ## Workarounds **Patching the system is the recommended fix.** However, if users cannot patch their system immediately, it is possible to **temporarily disable all Curation Tasks** by commenting out every `CurationTask` plugin in their `curate.cfg` file: ``` # For example, ensure every line that starts with "plugin.named.org.dspace.curate.CurationTask" is commented out #plugin.named.org.dspace.curate.CurationTask = org.dspace.ctask.general.NoOpCurationTask = noop #plugin.named.org.dspace.curate.CurationTask = org.dspace.ctask.general.ProfileFormats = profileformats #plugin.named.org.dspace.curate.CurationTask = org.dspace.ctask.general.RequiredMetadata = requiredmetadata #plugin.named.org.dspace.curate.CurationTask = org.dspace.ctask.general.ClamScan = vscan ... ``` Please be aware that commenting out all Curation Tasks will ensure that no curation tasks can be run from either the User Interface (in various admin tools) or from the command line. So, before commenting out these lines, ensure that users do not automatically run specific curation tasks (via `dspace curate` command) from scheduled cron jobs or similar. ## Credits Discovered & reported by Pablo Picurelli Ortiz (@superpegaso2703), cybersecurity student at Universidad Rey Juan Carlos. Code fix developed by Kim Shepherd (@kshepherd) of The Library Code

CVE-2026-49831 Affected Dspace api Versions

4 component(s)
Fixed Versions:
7.6.78.49.310.0
Product / Package Ecosystem Affected Versions Fixed Version
org.dspace:dspace-api
Maven
< 7.6.7
7.6.7
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-rc1
< 10.0
All 1 versions
10-rc1
10.0

References

Frequently Asked Questions

What is CVE-2026-49831?
CVE-2026-49831 is a security vulnerability in Dspace api involving DSpace has a possible Path Traversal Vulnerability in its Curation Task Reporter output path under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Dspace api versions are affected?
Affected versions include releases prior to 7.6.7, 8.4, 9.3, 10.0 across affected packages: org.dspace:dspace-api.
What version fixes CVE-2026-49831?
Upgrading to 7.6.7, 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 7.6.7, 8.4, 9.3, 10.0. Upgrade your dependency to 7.6.7, 8.4, 9.3, 10.0 or later.
What is the CVSS score of CVE-2026-49831?
CVE-2026-49831 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:H.
What CWE is associated with CVE-2026-49831?
CVE-2026-49831 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check Maven dependencies for CVE-2026-49831?
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-v66x-68f2-pxf5",
  "modified" : "2026-07-08T20:25:08Z",
  "published" : "2026-07-08T20:25:07Z",
  "aliases" : [ "CVE-2026-49831" ],
  "summary" : "DSpace has a possible Path Traversal Vulnerability in its Curation Task Reporter output path",
  "details" : "## Overview\n\nThe [Curation Task](https://wiki.lyrasis.org/spaces/DSDOC9x/pages/379126845/Curation+Tasks) feature allows an output path to be used by the reporter (`-r` parameter), typically used to stream results and status of curation task operations. It is not restricted to any particular base path, meaning that any path writable by the DSpace (often 'tomcat') user is allowed.  This constitutes a Path Traversal Vulnerability in the `curate` script.\n\nThis was not a real problem when curation tasks could only be run from the command-line as a system administrator, but now that Collection/Community/Site Administrators can also run curation tasks via the web user interface, it introduces a possibility for an attacker with DSpace administrative credentials to set command parameters in such a way that output ends up in an unexpected location (for example, static resources folder in the Spring boot webapp, or overwriting a configuration file).\n\n_This vulnerability impacts DSpace versions <= 7.6.6, 8.0 <= 8.3, 9.0 <= 9.2._ The attacker MUST already have DSpace Collection/Community/Site Administrator credentials in order to perform the attack.\n\nExpected behaviour : Only a set of configured output directories should be allowed as base paths for Curation reporter output. The fix applied here is designed to be used with other systems that need to read or write streams on disk. In addition, we do not see a need for the web-managed processes to allow the `-r` reporter output parameter at all.\n\n## Impact\n\nThe ability to overwrite a file in `/dspace/config` or `/dspace/bin` is not desired, and could result in a denial of service attack. To actually use the curation reporter to perform an attack that escalates privileges, either a custom curation task would be needed (these can only be deployed by a system administrator), or the output would have to contain some executable information that is combined with other attacks, as a way to provide a payload in a local path.\n\n## Patches\n\nThe fix is included in DSpace 7.6.7, 8.4, 9.3 and 10.0.  Please upgrade to one of these versions at the earliest convenience\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 7.6.x, 8.x or 9.x. \n* Pull request for 9.x: https://github.com/DSpace/DSpace/pull/12552  ([Downloadable patch file](https://github.com/DSpace/DSpace/pull/12552.patch))\n    * This 9.x patch file also resolves a similar [path traversal vulnerability in LDN messages](https://github.com/DSpace/DSpace/security/advisories/GHSA-9qm4-rh6w-pq5x)\n* Pull request for 8.x: https://github.com/DSpace/DSpace/pull/12540  ([Downloadable patch file](https://github.com/DSpace/DSpace/pull/12540.patch))\n    * This 8.x patch file also resolves a similar [path traversal vulnerability in LDN messages](https://github.com/DSpace/DSpace/security/advisories/GHSA-9qm4-rh6w-pq5x)\n* Pull request for 7.x: https://github.com/DSpace/DSpace/pull/12539  ([Downloadable patch file](https://github.com/DSpace/DSpace/pull/12539.patch))\n\n### Apply the patch to a user's DSpace\nIf at all possible, DSpace maintainers recommend disabling the ORE Crosswalk (see below) or upgrading users' DSpace site based on the upgrade instructions. However, if usersare unable to do so, they can manually apply the above patches to their DSpace 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 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 a project's installation directory). Depending on the user's setup they 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**Patching the system is the recommended fix.** However, if users cannot patch their system immediately, it is possible to **temporarily disable all Curation Tasks** by commenting out every `CurationTask` plugin in their `curate.cfg` file:\n```\n# For example, ensure every line that starts with \"plugin.named.org.dspace.curate.CurationTask\" is commented out\n\n#plugin.named.org.dspace.curate.CurationTask = org.dspace.ctask.general.NoOpCurationTask = noop\n#plugin.named.org.dspace.curate.CurationTask = org.dspace.ctask.general.ProfileFormats = profileformats\n#plugin.named.org.dspace.curate.CurationTask = org.dspace.ctask.general.RequiredMetadata = requiredmetadata\n#plugin.named.org.dspace.curate.CurationTask = org.dspace.ctask.general.ClamScan = vscan\n...\n```\n\nPlease be aware that commenting out all Curation Tasks will ensure that no curation tasks can be run from either the User Interface (in various admin tools) or from the command line.  So, before commenting out these lines, ensure that users do not automatically run specific curation tasks (via `dspace curate` command) from scheduled cron jobs or similar.\n\n## Credits\nDiscovered & reported by Pablo Picurelli Ortiz (@superpegaso2703), cybersecurity student at Universidad Rey Juan Carlos.\nCode fix developed by Kim Shepherd (@kshepherd) of The Library Code",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.dspace:dspace-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.6.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 7.6.6"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.dspace:dspace-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0-rc1"
      }, {
        "fixed" : "8.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 8.3"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.dspace:dspace-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0-rc1"
      }, {
        "fixed" : "9.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 9.2"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.dspace:dspace-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10-rc1"
      }, {
        "fixed" : "10.0"
      } ]
    } ],
    "versions" : [ "10-rc1" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/DSpace/DSpace/security/advisories/GHSA-v66x-68f2-pxf5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/DSpace/DSpace"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-08T20:25:07Z",
    "nvd_published_at" : null
  }
}