CVE-2022-31195
Java vulnerability analysis and mitigation

Overview

CVE-2022-31195 is a path traversal vulnerability discovered in DSpace's ItemImportServiceImpl that affects versions 4.0 through 6.3. The vulnerability was discovered by Johannes Moritz of Ripstech and publicly disclosed on July 29, 2022. This security flaw affects the XMLUI, JSPUI, and command-line interfaces of DSpace, but does not impact version 7.x (GitHub Advisory).

Technical details

The vulnerability is classified as a path traversal issue (CWE-22) with a High severity rating. It exists in the Simple Archive Format (SAF) package import functionality, where the ItemImportServiceImpl component fails to properly validate file paths during the extraction of ZIP archives. This could allow malicious SAF packages to create files or directories anywhere the Tomcat/DSpace user has write permissions on the server (GitHub Advisory).

Impact

If exploited, this vulnerability could allow an attacker to create files or directories in any location where the Tomcat/DSpace user has write permissions on the server. However, the impact is limited as the vulnerability can only be exploited by users with special privileges, specifically administrators or users with command-line access to the server (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in DSpace versions 6.4 and 5.11. For those unable to upgrade immediately, workarounds include blocking access to specific URL paths: '/admin/batchimport' for XMLUI and '/dspace-admin/batchimport' for JSPUI. Additionally, patches can be manually applied using the provided patch files for both 6.x and 5.x versions. The fix involves implementing proper path validation during ZIP extraction to prevent directory traversal attacks (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-15104MEDIUM6.9
  • JavaScriptJavaScript
  • vnu-jar
NoNoJan 16, 2026
CVE-2026-1002MEDIUM6.9
  • JavaJava
  • apicurio-registry
NoYesJan 15, 2026
CVE-2025-66169MEDIUM5.3
  • JavaJava
  • org.apache.camel:camel-neo4j
NoYesJan 14, 2026
CVE-2026-0858MEDIUM5.1
  • JavaJava
  • net.sourceforge.plantuml:plantuml
NoYesJan 16, 2026
CVE-2026-0976LOW3.7
  • JavaJava
  • keycloak
NoYesJan 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management