Bug 1950515 (CVE-2021-3541)

Summary: CVE-2021-3541 libxml2: Exponential entity expansion attack bypasses all existing protection mechanisms
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: csutherl, dking, erik-fedora, fedora, gzaronik, igor.raits, jclere, jorton, jwon, kaycoth, krathod, ktietz, mturk, ohudlick, pjindal, rh-spice-bugs, rjones, security-response-team, szappis, tkorbar, veillard, vmugicag
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libxml2 2.9.11 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-29 16:40:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1958781, 1958782, 1958783, 1958784, 1960153, 1960154    
Bug Blocks: 1950516, 1964977, 1966964    

Description Pedro Sampaio 2021-04-16 19:06:00 UTC
A flaw was found in libxml2. Exponential entity expansion attack its possible bypassing all existing protection mechanisms and leading to denial of service.

Comment 5 Huzaifa S. Sidhpurwala 2021-05-13 07:35:00 UTC
Acknowledgments:

Name: Sebastian Pipping

Comment 6 Huzaifa S. Sidhpurwala 2021-05-13 07:38:23 UTC
This flaw is essentially a variant of the billion laughs attack which can DoS libxml2 even with the set of safe flags.
The original billion laughs attack was fixed in libxml2 via https://access.redhat.com/security/cve/CVE-2003-1564

Expat packages shipped in Red Hat products and the upstream project are still vulnerable to billion laughs attack.

Comment 7 Huzaifa S. Sidhpurwala 2021-05-13 07:56:41 UTC
Created libxml2 tracking bugs for this issue:

Affects: fedora-all [bug 1960153]


Created mingw-libxml2 tracking bugs for this issue:

Affects: fedora-all [bug 1960154]

Comment 8 Huzaifa S. Sidhpurwala 2021-05-14 03:00:07 UTC
Upstream patch: https://gitlab.gnome.org/GNOME/libxml2/-/commit/8598060bacada41a0eb09d95c97744ff4e428f8e
Upstream bug: https://gitlab.gnome.org/GNOME/libxml2/-/issues/228 (currently private)

Comment 10 errata-xmlrpc 2021-06-29 16:27:40 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:2569 https://access.redhat.com/errata/RHSA-2021:2569

Comment 11 Product Security DevOps Team 2021-06-29 16:40:49 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-3541

Comment 12 errata-xmlrpc 2022-04-20 19:30:23 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Core Services

Via RHSA-2022:1390 https://access.redhat.com/errata/RHSA-2022:1390

Comment 13 errata-xmlrpc 2022-04-20 19:41:50 UTC
This issue has been addressed in the following products:

  JBoss Core Services on RHEL 7
  JBoss Core Services for RHEL 8

Via RHSA-2022:1389 https://access.redhat.com/errata/RHSA-2022:1389