MEDIUM6.5
GHSA-882p-jqgm-f45g
Uncontrolled resource consumption in nokogiri
Quick fix
GHSA-882p-jqgm-f45g — nokogiri: upgrade to the fixed version with the command below.
bundle update nokogiriDetails
The xz_head function in xzlib.c in libxml2 before 2.9.6 allows remote attackers to cause a denial of service (memory consumption) via a crafted LZMA file, because the decoder functionality does not restrict memory usage to what is required for a legitimate file.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-18258[ADVISORY]
- https://git.gnome.org/browse/libxml2/commit/?id=e2a9122b8dde53d320750451e9907a7dcb2ca8bb[WEB]
- https://github.com/advisories/GHSA-882p-jqgm-f45g[ADVISORY]
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2017-18258.yml[WEB]
- https://kc.mcafee.com/corporate/index?page=content&id=SB10284[WEB]
- https://lists.debian.org/debian-lts-announce/2018/09/msg00035.html[WEB]
- https://lists.debian.org/debian-lts-announce/2020/09/msg00009.html[WEB]
- https://security.netapp.com/advisory/ntap-20190719-0001[WEB]
- https://usn.ubuntu.com/3739-1[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"]}'