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
References
https://lists.apache.org/thread/s0dmpsxcwqs57l4qfs415klkgmhdxq7s
http://www.openwall.com/lists/oss-security/2023/07/11/11
Related Vulnerabilities
CVE-2020-2194 Vulnerability in maven package io.jenkins.plugins:echarts-api
CVE-2015-3250 Vulnerability in maven package org.apache.directory.api:api-ldap-model
CVE-2022-1295 Vulnerability in maven package org.webjars.bower:fullpage
CVE-2017-2670 Vulnerability in maven package io.undertow:undertow-core
CVE-2019-10414 Vulnerability in maven package de.wellnerbou.jenkins:git-changelog