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

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.

Published: 2023-04-25 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2023-22665 is rated Moderate Risk (45.6/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 1.32%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2023-22665

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.83% 1.32% +0.50%
2 2026-05-13 0.71% 0.83% +0.11%
3 2026-04-26 0.71%

Full EPSS history (20 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2023-22665

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
5.4 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
2.3 2.7 [email protected]

Weakness enumeration for CVE-2023-22665

GitHub Security Advisory for CVE-2023-22665

GHSA-xgh5-gwq5-rpx8 · Severity: medium · Ecosystem: maven — Arbitrary javascript injection in Apache Jena

OS Trackers for CVE-2023-22665

vendor priority summary link
debian not yet assigned CVE-2023-22665 not yet assigned priority: Debian including 1 source packages (apache-jena), 4 status rows across 4 suites (bookworm, forky, sid, trixie): resolved 3, open 1. https://security-tracker.debian.org/tracker/CVE-2023-22665
ubuntu medium CVE-2023-22665 medium priority: Ubuntu including 1 source packages (apache-jena), 13 status rows across 13 suites (bionic, focal, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): ignored 7, needs-triage 4, DNE 2. https://ubuntu.com/security/CVE-2023-22665

Affected software / configurations for CVE-2023-22665

Vendor Product Version Raw CPE
apache jena >= 3.7.0, <= 4.8.0 cpe:2.3:a:apache:jena:*:*:*:*:*:*:*:*

References for CVE-2023-22665

cvelogic Threat Intelligence