CVE-2023-32200: Jena Apache Jena Expression Language Injection Vulnerability

HIGH
Advisory Identifier: GHSA-j927-w6g7-7c7w
CVSS 8.8
CWE-917
Published
Advisory Summary

CVE-2023-32200 is a HIGH (CVSS 8.8) apache jena expression language injection vulnerability (CWE-917: Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')) affecting Jena libraries in the Maven ecosystem. The issue involves apache jena expression language injection vulnerability. Remediation is available by upgrading affected packages to version 4.9.0.

CVE-2023-32200 at a Glance

CVE Identifier CVE-2023-32200
GHSA Identifier GHSA-j927-w6g7-7c7w
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-917: Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')
Affected Product Jena
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2023-32200

To remediate this vulnerability, upgrade all affected Jena dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.jena:jena fixed: 4.9.0
<dependency>
    <groupId>org.apache.jena</groupId>
    <artifactId>jena</artifactId>
    <version>4.9.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.jena

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-32200, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.jena

Analyze the terminal output to locate any version of Jena in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.9.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.jena command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-917: Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection'), where the product constructs all or part of an expression language (el) statement in a framework such as a java server page (jsp) using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended el statement before it is executed. In Jena, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

There is insufficient restrictions of called script functions in Apache Jena versions 4.8.0 and earlier. It allows a remote user to execute javascript via a SPARQL query. This issue affects Apache Jena from 3.7.0 through 4.8.0.

CVE-2023-32200 Affected Jena Versions

1 component(s)
Fixed Versions:
4.9.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.jena:jena
Maven
≥ 3.7.0
< 4.9.0
4.9.0

References

Frequently Asked Questions

What is CVE-2023-32200?
CVE-2023-32200 is a security vulnerability in Jena involving Apache Jena Expression Language Injection vulnerability under CWE-917: Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection').
Which Jena versions are affected?
Affected versions include releases prior to 4.9.0 across affected packages: org.apache.jena:jena.
What version fixes CVE-2023-32200?
Upgrading to 4.9.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jena affected?
Yes, org.apache.jena:jena is affected in releases prior to 4.9.0. Upgrade your dependency to 4.9.0 or later.
What is the CVSS score of CVE-2023-32200?
CVE-2023-32200 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-32200?
CVE-2023-32200 is classified under CWE-917: Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection') (The product constructs all or part of an expression language (EL) statement in a framework such as a Java Server Page (JSP) using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended EL statement before it is executed.).
How can I check Maven dependencies for CVE-2023-32200?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.jena'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-j927-w6g7-7c7w",
  "modified" : "2023-07-20T14:57:59Z",
  "published" : "2023-07-12T09:30:53Z",
  "aliases" : [ "CVE-2023-32200" ],
  "summary" : "Apache Jena Expression Language Injection vulnerability",
  "details" : "There is insufficient restrictions of called script functions in Apache Jena versions 4.8.0 and earlier. It allows a remote user to execute javascript via a SPARQL query. This issue affects Apache Jena from 3.7.0 through 4.8.0.\n\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.jena:jena"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.7.0"
      }, {
        "fixed" : "4.9.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-32200"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/jena"
  }, {
    "type" : "WEB",
    "url" : "https://jena.apache.org/about_jena/security-advisories.html#cve-2023-32200---exposure-of-execution-in-script-engine-expressions"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/7hg0t2kws3fyr75dl7lll8389xzzc46z"
  }, {
    "type" : "WEB",
    "url" : "https://www.cve.org/CVERecord?id=CVE-2023-22665"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-917" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-12T17:29:39Z",
    "nvd_published_at" : "2023-07-12T08:15:10Z"
  }
}