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
http://www.openwall.com/lists/oss-security/2023/07/11/11
https://lists.apache.org/thread/s0dmpsxcwqs57l4qfs415klkgmhdxq7s
Related Vulnerabilities
CVE-2022-31197 Vulnerability in maven package org.postgresql:postgresql
CVE-2011-3389 Vulnerability in npm package faye
CVE-2022-22984 Vulnerability in npm package snyk-python-plugin
CVE-2022-3509 Vulnerability in maven package com.google.protobuf:protobuf-java
CVE-2021-3503 Vulnerability in maven package org.wildfly:wildfly-metrics