Skip to content

Commit 2f585e2

Browse files
committed
- update to include nokogiri v1.15.6 information (just released) - add Impact section - update title to be more accurate and descriptive
1 parent 5070808 commit 2f585e2

File tree

1 file changed

+26
-17
lines changed

1 file changed

+26
-17
lines changed

gems/nokogiri/GHSA-xc9x-jj77-9p9j.yml

+26-17
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,56 @@
22
gem: nokogiri
33
ghsa: xc9x-jj77-9p9j
44
url: https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-xc9x-jj77-9p9j
5-
title: Improper Handling of Unexpected Data Type in Nokogiri
5+
title: Use-after-free in libxml2 via Nokogiri::XML::Reader
66
date: 2024-02-04
77
description: |
88
### Summary
99
10-
Nokogiri v1.16.2 upgrades the version of its dependency libxml2 to v2.12.5.
10+
Nokogiri upgrades its dependency libxml2 as follows:
11+
- v1.15.6 upgrades libxml2 to 2.11.7 from 2.11.6
12+
- v1.16.2 upgrades libxml2 to 2.12.5 from 2.12.4
1113
12-
libxml2 v2.12.5 addresses the following vulnerability:
14+
libxml2 v2.11.7 and v2.12.5 address the following vulnerability:
1315
1416
CVE-2024-25062 / https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-25062
15-
described at https://gitlab.gnome.org/GNOME/libxml2/-/issues/604
16-
patched by https://gitlab.gnome.org/GNOME/libxml2/-/commit/92721970
17+
- described at https://gitlab.gnome.org/GNOME/libxml2/-/issues/604
18+
- patched by https://gitlab.gnome.org/GNOME/libxml2/-/commit/92721970
1719
18-
Please note that this advisory only applies to the CRuby implementation of
19-
Nokogiri < 1.16.2, and only if the packaged libraries are being used. If
20-
you've overridden defaults at installation time to use system libraries
21-
instead of packaged libraries, you should instead pay attention to your
22-
distro's libxml2 release announcements.
20+
Please note that this advisory only applies to the CRuby implementation of Nokogiri, and only if
21+
the packaged libraries are being used. If you've overridden defaults at installation time to use
22+
system libraries instead of packaged libraries, you should instead pay attention to your distro's
23+
libxml2 release announcements.
24+
25+
JRuby users are not affected.
2326
2427
### Severity
2528
2629
The Nokogiri maintainers have evaluated this as **Moderate**.
2730
28-
### Mitigation
31+
## Impact
2932
30-
Upgrade to Nokogiri >= 1.16.2.
33+
From the CVE description, this issue applies to the `xmlTextReader` module (which underlies
34+
`Nokogiri::XML::Reader`):
3135
32-
Users who are unable to upgrade Nokogiri may also choose a more complicated
33-
mitigation: compile and link Nokogiri against external libraries libxml2 >=
34-
2.12.5 which will also address these same issues.
36+
> When using the XML Reader interface with DTD validation and XInclude expansion enabled,
37+
> processing crafted XML documents can lead to an xmlValidatePopElement use-after-free.
3538
36-
JRuby users are not affected.
39+
### Mitigation
40+
41+
Upgrade to Nokogiri `~> 1.15.6` or `>= 1.16.2`.
3742
38-
### Workarounds
43+
Users who are unable to upgrade Nokogiri may also choose a more complicated mitigation: compile
44+
and link Nokogiri against patched external libxml2 libraries which will also address these same
45+
issues.
3946
4047
patched_versions:
48+
- "~> 1.15.6"
4149
- ">= 1.16.2"
4250
related:
4351
cve:
4452
- 2024-25062
4553
url:
4654
- https://github.com/sparklemotion/nokogiri/commit/1b768b797fd42d94de12b9cff4ed0221f5cb92ec
55+
- https://github.com/sparklemotion/nokogiri/releases/tag/v1.15.6
4756
- https://github.com/sparklemotion/nokogiri/releases/tag/v1.16.2
4857
- https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-xc9x-jj77-9p9j

0 commit comments

Comments
 (0)