CVE-2022-25315
IBM Db2 vulnerability analysis and mitigation

Overview

CVE-2022-25315 affects Expat (aka libexpat) versions before 2.4.5, where there is an integer overflow vulnerability in the storeRawNames function. The vulnerability was discovered in February 2022 and affects multiple systems and software that use the Expat XML parsing library (NVD, Openwall).

Technical details

The vulnerability is an integer overflow condition in the storeRawNames function. The issue occurs when abusing the m_buffer expansion logic to allow allocations very close to INT_MAX. The attack can be triggered by crafting a specially prepared UTF-16 XML file that takes advantage of how Expat converts between different encodings. The vulnerability has received a CVSS v3.1 Base Score of 9.8 CRITICAL with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The successful exploitation of this vulnerability could lead to denial of service or potentially arbitrary code execution when processing malformed XML files. The vulnerability affects both default configurations and systems handling XML processing (Debian Security Advisory, NetApp Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Expat version 2.4.5. Users and organizations are strongly recommended to upgrade to this version or later. Multiple vendors have released patches for their affected products, including Debian, Fedora, and Oracle. There are no known workarounds other than upgrading to a fixed version (Debian Security Advisory, Oracle Security Alert).

Additional resources


SourceThis report was generated using AI

Related IBM Db2 vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-36186HIGH7.8
  • IBM Db2IBM Db2
  • cpe:2.3:a:ibm:db2
NoNoNov 07, 2025
CVE-2025-36008MEDIUM6.5
  • IBM Db2IBM Db2
  • cpe:2.3:a:ibm:db2
NoYesNov 07, 2025
CVE-2025-36185MEDIUM5.5
  • IBM Db2IBM Db2
  • cpe:2.3:a:ibm:db2
NoNoNov 07, 2025
CVE-2025-36136MEDIUM5.5
  • IBM Db2IBM Db2
  • cpe:2.3:a:ibm:db2
NoYesNov 07, 2025
CVE-2025-36131MEDIUM4.6
  • IBM Db2IBM Db2
  • cpe:2.3:a:ibm:db2
NoYesNov 07, 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