CVE-2021-21348
MySQL vulnerability analysis and mitigation

Overview

CVE-2021-21348 affects XStream, a Java library to serialize objects to XML and back again, in versions before 1.4.16. The vulnerability allows a remote attacker to occupy a thread that consumes maximum CPU time and will never return through a Regular Expression Denial of Service (ReDoS) attack. The vulnerability was discovered and reported by threedr3am (GitHub Advisory).

Technical details

The vulnerability exists in XStream's unmarshalling process where the processed stream contains type information to recreate previously written objects. An attacker can manipulate the input stream and replace or inject objects that result in the evaluation of a malicious regular expression, causing a denial of service. The vulnerability has a CVSS v3.1 Base Score of 7.5 HIGH with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability allows a remote attacker to cause a Denial of Service by occupying a thread that consumes maximum CPU time and never returns. No user is affected who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types (XStream CVE).

Mitigation and workarounds

Users should upgrade to XStream version 1.4.16 or later. For users who cannot upgrade, the recommended workaround is to setup XStream's security framework with a whitelist limited to the minimal required types. For versions 1.4.7 to 1.4.15, users can implement specific security permissions and type denials as detailed in XStream's security documentation (XStream Security).

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-2025-53054MEDIUM5.5
  • MySQLMySQL
  • mecab-ipadic-EUCJP
NoYesOct 21, 2025
CVE-2025-53053MEDIUM5.5
  • MySQLMySQL
  • mecab
NoYesOct 21, 2025
CVE-2025-53069MEDIUM4.9
  • MySQLMySQL
  • mysql:8.4::mysql-common
NoYesOct 21, 2025
CVE-2025-53067MEDIUM4.9
  • MySQLMySQL
  • cpe:2.3:a:oracle:mysql_server
NoYesOct 21, 2025
CVE-2025-53062MEDIUM4.9
  • MySQLMySQL
  • mysql-libs
NoYesOct 21, 2025

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