HIGH8.8
GHSA-v4f8-2847-rwm7
Nokogiri Implements libxml2 version vulnerable to use-after-free
Quick fix
GHSA-v4f8-2847-rwm7 — nokogiri: upgrade to the fixed version with the command below.
bundle update nokogiriDetails
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, and availability.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-3518[ADVISORY]
- https://www.oracle.com/security-alerts/cpuoct2021.html[WEB]
- https://www.oracle.com/security-alerts/cpujul2022.html[WEB]
- https://www.oracle.com/security-alerts/cpuapr2022.html[WEB]
- https://support.apple.com/kb/HT212605[WEB]
- https://support.apple.com/kb/HT212604[WEB]
- https://support.apple.com/kb/HT212602[WEB]
- https://support.apple.com/kb/HT212601[WEB]
- https://security.netapp.com/advisory/ntap-20210625-0002[WEB]
- https://security.gentoo.org/glsa/202107-05[WEB]
- https://nokogiri.org/CHANGELOG.html#1114-2021-05-14[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QVM4UJ3376I6ZVOYMHBNX4GY3NIV52WV[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BZOMV5J4PMZAORVT64BKLV6YIZAFDGX6[WEB]
- https://lists.debian.org/debian-lts-announce/2021/05/msg00008.html[WEB]
- https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4@%3Cissues.bookkeeper.apache.org%3E[WEB]
- https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b@%3Cissues.bookkeeper.apache.org%3E[WEB]
- https://github.com/sparklemotion/nokogiri/blob/2edbbef95f1dc12c1ddc5ebda71b9159026245fe/CHANGELOG.md?plain=1#L722[WEB]
- https://github.com/sparklemotion/nokogiri[PACKAGE]
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2021-3518.yml[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=1954242[WEB]
- http://seclists.org/fulldisclosure/2021/Jul/54[WEB]
- http://seclists.org/fulldisclosure/2021/Jul/55[WEB]
- http://seclists.org/fulldisclosure/2021/Jul/58[WEB]
- http://seclists.org/fulldisclosure/2021/Jul/59[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:gem/nokogiri"]}'