DSA-5142: -1 libxml2 -- security update

Published May 22, 2022
·
Updated

Felix Wilhelm reported that several buffer handling functions in libxml2, a library providing support to read, modify and write XML and HTML files, don't check for integer overflows, resulting in out-of-bounds memory writes if specially crafted, multi-gigabyte XML files are processed. An attacker can take advantage of this flaw for denial of service or execution of arbitrary code.

Affected Software

2 affected components
debian/libxml2
debian/libxml2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch DSA-5142-1

Event History

May 22, 2022
Advisory Published
12:00 AM

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

What must an attacker control to exploit this issue?

The attacker needs to cause libxml2 to process a specially crafted, multi-gigabyte XML file. The vulnerable buffer-handling functions can then overflow integer calculations and write out of bounds.

2

What impact can successful exploitation have?

Successful exploitation may cause a denial of service or allow execution of arbitrary code.

3

Which deployments are most exposed?

Deployments that use libxml2 to process XML files supplied or influenced by untrusted parties are exposed when those inputs can be multi-gigabyte crafted XML files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203