{"id":"CVE-2023-22665","published":"2023-04-25T06:44:21Z","modified":"2025-02-13T16:44:03Z","title":"Apache Jena: Exposure of arbitrary execution in script engine expressions.","vendor":"Apache","product":"Apache Jena","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01335,"percentile":0.71888,"provenance":"source"},"cwes":[{"id":"CWE-917","name":"Improper Neutralization of Special Elements used in an Expression Language Statement"}],"references":[{"url":"https://lists.apache.org/thread/s0dmpsxcwqs57l4qfs415klkgmhdxq7s","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2023/07/11/11","tags":[]}],"priority":{"score":14.4,"factors":[{"name":"EPSS percentile","points":14.38}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Jena","versions":["<= 4.7.0"]}],"workarounds":{"items":["Users not using custom scripted functions are advised to run Java17 or later with no script engine added to the deployment."],"from":"CVE.org CNA","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.jena:jena","vulnerableRanges":["<4.8.0"],"patched":["4.8.0"],"from":["GHSA-xgh5-gwq5-rpx8"],"provenance":"source"}],"summary":{"text":"Apache Jena versions 4.7.0 and earlier contain an insufficient input check in the handling of custom script invocation, which lives in the product's script engine expression processing. An attacker can use a crafted SPARQL query to execute arbitrary JavaScript.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:24Z"},"euvd":{"id":"EUVD-2023-1426","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-apache-jena-cve-2023-22665","children":[{"from":"CVE-2023-22665","to":"CVE-2023-32200","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-j927-w6g7-7c7w","via":"reference","url":"https://www.cve.org/CVERecord?id=CVE-2023-22665"},{"kind":"version-step","provenance":"source","package":"Maven:org.apache.jena:jena","fromFixed":"4.8.0","toFixed":"4.9.0","daysApart":78},{"kind":"similar","provenance":"machine","score":0.61,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2022-28890","published":"2022-05-05","fixed":"4.5.0","kev":false,"link":{"from":"CVE-2022-28890","to":"CVE-2023-22665","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.jena:jena","fromFixed":"4.5.0","toFixed":"4.8.0","daysApart":355}]}},{"cve":"CVE-2023-22665","published":"2023-04-25","fixed":"4.8.0","kev":false},{"cve":"CVE-2023-32200","published":"2023-07-12","fixed":"4.9.0","kev":false},{"cve":"CVE-2025-50151","published":"2025-07-21","fixed":"5.5.0","kev":false}],"package":"Maven:org.apache.jena:jena"}}