CVE-2023-22665
Apache Jena: Exposure of arbitrary execution in script engine expressions.
- Published
- Updated
- Reserved
- Assigned by
- apache
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.
Timeline
ID reserved
By apache
- 4 months later
· 4 months later
Published
- 22 months later
· 22 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Medium5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 1.3% · top 29% of all CVEs (7 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.4.
Weakness
Affected products
Apache Software Foundation · Apache Jena
- affected ≤ 4.7.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.apache.jena:jenaGHSA-xgh5-gwq5-rpx8 (opens in a new tab)
What to do
Workaround: Users not using custom scripted functions are advised to run Java17 or later with no script engine added to the deployment.
References (2)
- https://lists.apache.org/thread/s0dmpsxcwqs57l4qfs415klkgmhdxq7s (opens in a new tab)vendor-advisoryx_transferred
- http://www.openwall.com/lists/oss-security/2023/07/11/11 (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-xgh5-gwq5-rpx8 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2023-22665)Record last updated .