{"id":"UBUNTU-CVE-2023-22665","details":"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.","modified":"2026-05-20T16:13:27.273742924Z","published":"2023-04-25T07:15:00Z","upstream":["CVE-2023-22665"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-22665"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-22665"}],"affected":[{"package":{"name":"apache-jena","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/apache-jena?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.17.0-1","3.17.0-2","3.17.0-3"],"ecosystem_specific":{"binaries":[{"binary_name":"libapache-jena-java","binary_version":"3.17.0-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22665.json"}},{"package":{"name":"apache-jena","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/apache-jena?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.5.0-2","4.9.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.9.0-1","binary_name":"libapache-jena-java"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22665.json"}},{"package":{"name":"apache-jena","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/apache-jena?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.9.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libapache-jena-java","binary_version":"4.9.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22665.json"}},{"package":{"name":"apache-jena","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/apache-jena?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.9.0-1","4.9.0-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libapache-jena-java","binary_version":"4.9.0-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22665.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}