CVE-2023-24187: Ureport2 core XML External Entity Reference Vulnerability
HIGHCVE-2023-24187 is a HIGH (CVSS 7.8) xml external entity reference vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Ureport2 core libraries in the Maven ecosystem. The issue involves xml external entity reference in ureport. Remediation is available in the latest vendor maintenance releases.
CVE-2023-24187 at a Glance
Security Impact
CVSS: 7.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2023-24187
To remediate this vulnerability, upgrade all affected Ureport2 core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.bstek.ureport</groupId>
<artifactId>ureport2-core</artifactId>
<version>Latest secure release</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.bstek.ureport
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2023-24187, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.bstek.ureport
Analyze the terminal output to locate any version of Ureport2 core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.bstek.ureport 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-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. In Ureport2 core, 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
CVE-2023-24187 Affected Ureport2 core Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.bstek.ureport:ureport2-core
|
Maven |
≤ 2.2.9
|
|
References
Frequently Asked Questions
What is CVE-2023-24187?
Which Ureport2 core versions are affected?
What version fixes CVE-2023-24187?
Is ureport2-core affected?
What is the CVSS score of CVE-2023-24187?
What CWE is associated with CVE-2023-24187?
How can I check Maven dependencies for CVE-2023-24187?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fhj6-gr87-g4cj",
"modified" : "2023-02-22T18:35:42Z",
"published" : "2023-02-14T03:30:20Z",
"aliases" : [ "CVE-2023-24187" ],
"summary" : "XML External Entity Reference in ureport",
"details" : "An XML External Entity (XXE) vulnerability in ureport v2.2.9 allows attackers to execute arbitrary code via uploading a crafted XML file to /ureport/designer/saveReportFile.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.bstek.ureport:ureport2-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.2.9"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-24187"
}, {
"type" : "WEB",
"url" : "https://github.com/Venus-WQLab/bug_report/blob/main/ureport/ureport-cve-2023-24187.md"
}, {
"type" : "WEB",
"url" : "https://github.com/cgddgc/vulns/blob/main/ureport2-vuln-des.md"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/youseries/ureport"
}, {
"type" : "WEB",
"url" : "http://ureport.com"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-611" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-02-14T21:56:11Z",
"nvd_published_at" : "2023-02-14T02:15:00Z"
}
}