Moderate: libxml2 security update

libxml2 Updated 02 Oct 2025

Summary

16/01/2023
N/A
Yes i
Unrated
Not published

ALSA-2023:0173: Moderate: libxml2 security update. Affects libxml2 versions < 2.9.7-15.el8_7.1. Fixed in 2.9.7-15.el8_7.1. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The libxml2 library is a development toolbox that provides the implementation of various XML standards. It is commonly used in software applications to parse and manipulate XML data. The library is widely adopted and used in various operating systems and programming languages.

Vulnerability Detail

The libxml2 library is affected by two security vulnerabilities:

  1. Integer overflows with XML_PARSE_HUGE (CVE-2022-40303): This vulnerability can lead to integer overflows when parsing XML files with the XML_PARSE_HUGE flag enabled. An attacker could exploit this vulnerability to cause a denial-of-service condition or potentially execute arbitrary code.

  2. Dictionary corruption caused by entity reference cycles (CVE-2022-40304): This vulnerability can result in dictionary corruption when processing XML files with entity reference cycles. A remote attacker could leverage this vulnerability to cause a denial-of-service condition or potentially execute arbitrary code.

How To Fix

Minimum fixed version

2.9.7-15.el8_7.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 →

Conclusion

The libxml2 library is affected by two security vulnerabilities that can lead to a denial-of-service condition or potential code execution. It is recommended to update the libxml2 package to the latest version to mitigate these vulnerabilities. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for libxml2 →

Share this vulnerability

FAQ

Libxml2 is a development toolbox providing the implementation of various XML standards. It is widely used in software applications to parse and manipulate XML data.

The security vulnerabilities in libxml2 are:

  1. Integer overflows with XML_PARSE_HUGE (CVE-2022-40303)
  2. Dictionary corruption caused by entity reference cycles (CVE-2022-40304)

These vulnerabilities can lead to a denial-of-service condition or potentially allow an attacker to execute arbitrary code.

To fix these vulnerabilities, update the libxml2 package to version 2.9.7-15.el8_7.1 or later.

You can find more information about these vulnerabilities in the CVE pages listed in the References section of the vulnerability details.

Related vulnerabilities

Recent vulnerabilities recorded for libxml2.

How To Fix

Minimum fixed version

2.9.7-15.el8_7.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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback