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.
[ { "events": [ { "introduced": "3.7.0" }, { "last_affected": "4.8.0" } ] } ]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-22665.json"