xmlStringLenDecodeEntities in parser.c in libxml2 2.9.10 has an infinite loop in a certain end-of-file situation.
The Nokogiri RubyGem has patched its vendored copy of libxml2 in order to prevent this issue from affecting nokogiri.
- https://nvd.nist.gov/vuln/detail/CVE-2020-7595
- https://github.com/sparklemotion/nokogiri/issues/1992
- https://gitlab.gnome.org/GNOME/libxml2/commit/0e1a49c89076
- https://lists.fedoraproject.org/archives/list/[email protected]/message/545SPOI3ZPPNPX4TFRIVE4JVRTJRKULL/
- https://usn.ubuntu.com/4274-1/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/5R55ZR52RMBX24TQTWHCIWKJVRV6YAWI/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/JDPF3AAVKUAKDYFMFKSIQSVVS3EEFPQH/
- http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00047.html
- https://security.netapp.com/advisory/ntap-20200702-0005/
- https://www.oracle.com/security-alerts/cpujul2020.html
- https://lists.debian.org/debian-lts-announce/2020/09/msg00009.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-292794.pdf
- https://security.gentoo.org/glsa/202010-04
- https://us-cert.cisa.gov/ics/advisories/icsa-21-103-08
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2020-7595.yml
- https://github.com/advisories/GHSA-7553-jr98-vx47