CVE-2023-22665

Apache Jena: Exposure of arbitrary execution in script engine expressions.

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.

Remediation

Workaround:

  • Users not using custom scripted functions are advised to run Java17 or later with no script engine added to the deployment.

Category

5.4
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.85% Top 30%
Vendor Advisory apache.org
Affected: Apache Software Foundation Apache Jena
Published at:
Updated at:

References

Link Tags
https://lists.apache.org/thread/s0dmpsxcwqs57l4qfs415klkgmhdxq7s vendor advisory mailing list issue tracking
http://www.openwall.com/lists/oss-security/2023/07/11/11 third party advisory mailing list

Frequently Asked Questions

What is the severity of CVE-2023-22665?
CVE-2023-22665 has been scored as a medium severity vulnerability.
How to fix CVE-2023-22665?
As a workaround for remediating CVE-2023-22665: Users not using custom scripted functions are advised to run Java17 or later with no script engine added to the deployment.
Is CVE-2023-22665 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2023-22665 is being actively exploited. According to its EPSS score, there is a ~1% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-22665?
CVE-2023-22665 affects Apache Software Foundation Apache Jena.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.