# CVE-2023-22665: Apache Jena: Exposure of arbitrary execution in script engine expressions.

- Severity: Medium 5.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.33%, higher than 72% of CVEs (2026-12-01)
- Published: 2023-04-25T06:44:21.516Z
- Modified: 2026-06-17T05:35:53.417Z
- Also known as: GHSA-xgh5-gwq5-rpx8
- Weaknesses: CWE-917
- 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Jena: up to 4.7.0
- org.apache.jena:jena (Maven): before 4.8.0
- apache jena: from 3.7.0 up to 4.8.0

## Every score

- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://lists.apache.org/thread/s0dmpsxcwqs57l4qfs415klkgmhdxq7s> (issue-tracking, mailing-list, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2023/07/11/11> (mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-22665> (advisory)
- <https://github.com/apache/jena> (package)

## Sources

- CVE List: [CVE-2023-22665](https://www.cve.org/CVERecord?id=CVE-2023-22665), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-xgh5-gwq5-rpx8](https://github.com/advisories/GHSA-xgh5-gwq5-rpx8), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2023-22665](https://nvd.nist.gov/vuln/detail/CVE-2023-22665), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-22665 · Whole record: https://cve.day/CVE-2023-22665.json · Rebuilt by cve.day 2026-11-25T22:58:23.736Z
