CVE-2026-97893: Apache Jena: SPARQL Property Path optimisation can lead to excessive memory consumption.
A Denial of Service (DoS) vulnerability exists in the ARQ SPARQL Query Optimiser in Apache Jena ARQ prior to version 6.3.0 that allows a SPARQL query to use that cause excessive memory usage. Users are recommended to upgrade to version 6.3.0, which fixes this issue.
Users who are unable to upgrade immediately, especially those who operate a public facing SPARQL service/application backed by Apache Jena are recommended to configure the ARQ symbol arq:optPathFlatten=false in their SPARQL execution context which disables the problematic optimisation.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Apache Jena ARQto a version that resolves this vulnerability.Fixed in 6.3.0 - Configuration
Configure arq:optPathFlatten=false in the SPARQL execution context to disable the problematic optimization.
Apache Jena ARQ arq:optPathFlatten = false
Event History
Frequently Asked Questions
Which deployments are most exposed to exploitation?
Public-facing SPARQL services or applications backed by Apache Jena ARQ are specifically highlighted as needing mitigation if they cannot upgrade immediately, because an attacker can submit a crafted SPARQL query.
What does an attacker need to trigger the denial of service?
The attacker needs the ability to execute or submit a SPARQL query to an affected Apache Jena ARQ instance. The vulnerable query can cause excessive memory consumption through the ARQ SPARQL Query Optimiser.
What can be done when an immediate upgrade is not possible?
Configure the ARQ symbol arq:optPathFlatten=false in the SPARQL execution context. This disables the problematic property-path optimisation.
What version resolves the issue?
Upgrade Apache Jena ARQ to version 6.3.0. Versions prior to 6.3.0 are affected.