Skip to content
OpenAdvisories
High SUSE-SU-2021:1523-1 3 CVEs

Security update for libxml2

Published May 5, 2021 · Updated Feb 4, 2026

Summary

This update for libxml2 fixes the following issues:

- CVE-2021-3518: Fixed a use after free in xinclude.c:xmlXIncludeDoProcess (bsc#1185408).
- CVE-2021-3517: Fixed a heap based buffer overflow in entities.c:xmlEncodeEntitiesInternal (bsc#1185410).
- CVE-2021-3516: Fixed a use after free in entities.c:xmlEncodeEntitiesInternal (bsc#1185409).

Fixed packages 7

ReleasePackageFixed in
SUSE · SLE Micro 5.0 Linux Enterprise Micro 5.0 libxml2 2.9.7-3.31.1
SUSE · SLES 15 SP2 Linux Enterprise Module for Basesystem 15 SP2 libxml2 2.9.7-3.31.1
SUSE · SLES 15 SP2 Linux Enterprise Module for Basesystem 15 SP2 python-libxml2-python 2.9.7-3.31.1
SUSE · SLES 15 SP3 Linux Enterprise Module for Basesystem 15 SP3 libxml2 2.9.7-3.31.1
SUSE · SLES 15 SP3 Linux Enterprise Module for Basesystem 15 SP3 python-libxml2-python 2.9.7-3.31.1
SUSE · SLES 2 Linux Enterprise Module for Python 2 15 SP2 python-libxml2-python 2.9.7-3.31.1
SUSE · SLES 2 Linux Enterprise Module for Python 2 15 SP3 python-libxml2-python 2.9.7-3.31.1

Vulnerabilities 3

  • High 8.8
    CVE-2021-3518 EPSS 22%

    Nokogiri Implements libxml2 version vulnerable to use-after-free

    There's a flaw in libxml2 in versions before 2.9.11. An attacker who is able to submit a crafted file to be processed by an application linked with libxml2 could trigger a use-after-free. The greatest impact from this flaw is to confidentiality, integrity, an…

  • High 8.6
    CVE-2021-3517 EPSS 17%

    Nokogiri contains libxml Out-of-bounds Write vulnerability

    There is a flaw in the xml entity encoding functionality of libxml2 in versions before 2.9.11. An attacker who is able to supply a crafted file to be processed by an application linked with the affected functionality of libxml2 could trigger an out-of-bounds …

  • Unscored —

    There's a flaw in libxml2's xmllint in versions before 2.9.11. An attacker who is able to submit a crafted file to be p…

References

  • report
    https://bugzilla.suse.com/1185408
  • report
    https://bugzilla.suse.com/1185409
  • report
    https://bugzilla.suse.com/1185410
  • web
    https://www.suse.com/security/cve/CVE-2021-3516
  • web
    https://www.suse.com/security/cve/CVE-2021-3517
  • web
    https://www.suse.com/security/cve/CVE-2021-3518