Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2021-21344
MySQL vulnerability analysis and mitigation

Overview

XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is a vulnerability (CVE-2021-21344) which may allow a remote attacker to load and execute arbitrary code from a remote host only by manipulating the processed input stream. The vulnerability was discovered in March 2021 (MITRE, GitHub Advisory).

Technical details

The vulnerability exists in the unmarshalling process where XStream creates new instances based on type information contained in the processed stream. An attacker can manipulate the input stream and replace or inject objects that result in execution of arbitrary code loaded from a remote server. The vulnerability can be exploited through both XML and JSON formats (XStream Doc). The vulnerability has been assigned a CVSS v3.1 base score of 9.8 (Critical) (Ubuntu).

Impact

A successful exploitation of this vulnerability could allow remote attackers to execute arbitrary code in the context of the application running XStream. No user is affected who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types (GitHub Advisory).

Exploitability

The vulnerability is remotely exploitable without requiring authentication. An attacker only needs the ability to manipulate the processed input stream that is used for unmarshalling objects. The vulnerability has been demonstrated using a simple PriorityQueue object that when marshalled to XML and manipulated with malicious content, can trigger remote code execution (XStream Doc).

Mitigation and workarounds

The vulnerability is fixed in XStream version 1.4.16. Users should upgrade to this version or later. For those unable to upgrade immediately, XStream provides workarounds through its security framework by implementing a whitelist for allowed types. This can be achieved by using XStream's security framework to explicitly define which types are allowed to be unmarshalled (XStream Doc).

Community reactions

Multiple Linux distributions and software vendors responded to this vulnerability by releasing security updates, including Debian, Fedora, and Oracle. NetApp issued an advisory for their affected products (NetApp Advisory).

Additional resources


SourceThis report was generated using AI

Related MySQL vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-63385CRITICAL9.2
  • MySQL logoMySQL
  • libevent-doc
NoYesAug 20, 2026
CVE-2026-63384HIGH8.7
  • MySQL logoMySQL
  • libevent-doc
NoYesAug 20, 2026
CVE-2026-63383HIGH8.7
  • MySQL logoMySQL
  • libevent2
NoYesAug 20, 2026
CVE-2026-63388HIGH8.4
  • MySQL logoMySQL
  • libevent-debugsource
NoYesAug 20, 2026
CVE-2026-63387HIGH7
  • MySQL logoMySQL
  • libevent-headers
NoYesAug 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management