Moderate: libxml2 security update
Summary
RLSA-2023:0338: Moderate: libxml2 security update. Affects libxml2 versions < 0:2.9.13-3.el9_1. Fixed in 0:2.9.13-3.el9_1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The libxml2 library is a development toolbox providing the implementation of various XML standards. It is used by applications to parse and manipulate XML data. The library is widely used in various software systems and frameworks.
Vulnerability Detail
The libxml2 library is affected by two security vulnerabilities:
-
Integer overflows with XML_PARSE_HUGE (CVE-2022-40303): This vulnerability allows an attacker to cause an integer overflow by providing a specially crafted XML file. This can lead to a heap-based buffer overflow, potentially resulting in arbitrary code execution.
-
Dictionary corruption caused by entity reference cycles (CVE-2022-40304): This vulnerability allows an attacker to create entity reference cycles in an XML file, leading to dictionary corruption. This can result in a denial of service (DoS) condition or potential arbitrary code execution.
Both vulnerabilities have a CVSS score of 8.2, indicating a moderate severity level.
How To Fix
Minimum fixed version
0:2.9.13-3.el9_1
This is the first release that contains the fix.
sudo dnf update libxml2
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There are no known workarounds for these vulnerabilities.
Conclusion
The libxml2 library is affected by two moderate-severity vulnerabilities. To mitigate these vulnerabilities, it is crucial to update the libxml2 library to version 2.9.13-3.el9_1 or later. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for libxml2 →
FAQ
Libxml2 is a development toolbox for parsing and manipulating XML data. It is widely used in various software systems and frameworks.
These vulnerabilities can potentially lead to arbitrary code execution or denial of service (DoS) conditions.
You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and Vulert will provide real-time alerts for open-source vulnerabilities.
No, there are no known workarounds for these vulnerabilities. It is recommended to update the libxml2 library to the latest version.
You can refer to the CVE pages for more details:
- CVE-2022-40303: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-40303
- CVE-2022-40304: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-40304
Related vulnerabilities
Recent vulnerabilities recorded for libxml2.