CVE-2021-30560: Nokogiri has vulnerable dependencies on libxml2 and libxslt
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.27019%
CWE
Published
5/24/2022
Updated
11/1/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
nokogiri | rubygems | < 1.13.2 | 1.13.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability CVE-2021-30560 is a use-after-free in the libxslt
C library, which Nokogiri
uses. The provided commit information shows that Nokogiri
addressed this by updating its vendored version of libxslt
. There are no code changes in Nokogiri
's Ruby source files that indicate a specific vulnerable Ruby function
. The vulnerability is in the underlying C library, not in Nokogiri
's Ruby code. Therefore, no specific Ruby functions
can be identified as 'vulnerable' from the patch; rather, any function
in Nokogiri
that uses libxslt
for XSLT transformations could potentially trigger the vulnerability if processing a malicious XSLT
file with a vulnerable version of libxslt
.