Vulnerability · Published Apr 25, 2023 · Assigned by apache
CVE-2023-22665Apache Jena: Exposure of arbitrary execution in script engine expressions.
Medium 5.4
In plain English
A medium-severity expression language injection in Apache Jena from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 71% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)5.4Medium
Exploit odds (30 days)1.3%top 28.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
There is insufficient checking of user queries in Apache Jena versions 4.7.0 and earlier, when invoking custom scripts. It allows a remote user to execute arbitrary javascript via a SPARQL query.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | apache-jena | no fix listed | DEBIAN-CVE-2023-22665 |
| Debian:13 | apache-jena | 4.9.0-1 | DEBIAN-CVE-2023-22665 |
| Debian:14 | apache-jena | 4.9.0-1 | DEBIAN-CVE-2023-22665 |
| Maven | org.apache.jena:jena | 4.8.0 | GHSA-xgh5-gwq5-rpx8 |
| Ubuntu:22.04:LTS | apache-jena | no fix listed | UBUNTU-CVE-2023-22665 |
| Ubuntu:24.04:LTS | apache-jena | no fix listed | UBUNTU-CVE-2023-22665 |
| Ubuntu:25.10 | apache-jena | no fix listed | UBUNTU-CVE-2023-22665 |
| Ubuntu:26.04:LTS | apache-jena | no fix listed | UBUNTU-CVE-2023-22665 |
| Ubuntu:26.10 | apache-jena | no fix listed | UBUNTU-CVE-2023-22665 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Jena | 0 – through 4.7.0 |
Weakness: CWE-917