HIGH7.5
GHSA-vmfx-gcfq-wvm2
Nokogiri implementation of libxslt vulnerable to heap corruption
Quick fix
GHSA-vmfx-gcfq-wvm2 — nokogiri: upgrade to the fixed version with the command below.
bundle update nokogiriDetails
Type confusion in `xsltNumberFormatGetMultipleLevel` prior to libxslt 1.1.33 could allow attackers to potentially exploit heap corruption via crafted XML data.
Nokogiri prior to version 1.10.5 contains a vulnerable version of libxslt. Nokogiri version 1.10.5 upgrades the dependency to libxslt 1.1.34, which contains a patch for this issue.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-5815[ADVISORY]
- https://github.com/sparklemotion/nokogiri/issues/2630[WEB]
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2019-5815.yml[WEB]
- https://github.com/sparklemotion/nokogiri[PACKAGE]
- https://gitlab.gnome.org/GNOME/libxslt/commit/08b62c25871b38d5d573515ca8a065b4b8f64f6b[WEB]
- https://lists.debian.org/debian-lts-announce/2022/09/msg00010.html[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"]}'