Skip to content

Commit 8c2b471

Browse files
flavorjonesRubySec CI
authored andcommitted
Updated advisory posts against rubysec/ruby-advisory-db@5dd464e
1 parent 9ffd245 commit 8c2b471

File tree

1 file changed

+27
-19
lines changed

1 file changed

+27
-19
lines changed
Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,63 @@
11
---
22
layout: advisory
3-
title: 'GHSA-xc9x-jj77-9p9j (nokogiri): Improper Handling of Unexpected Data Type
4-
in Nokogiri'
3+
title: 'GHSA-xc9x-jj77-9p9j (nokogiri): Use-after-free in libxml2 via Nokogiri::XML::Reader'
54
comments: false
65
categories:
76
- nokogiri
87
advisory:
98
gem: nokogiri
109
ghsa: xc9x-jj77-9p9j
1110
url: https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-xc9x-jj77-9p9j
12-
title: Improper Handling of Unexpected Data Type in Nokogiri
11+
title: Use-after-free in libxml2 via Nokogiri::XML::Reader
1312
date: 2024-02-04
1413
description: |
1514
### Summary
1615
17-
Nokogiri v1.16.2 upgrades the version of its dependency libxml2 to v2.12.5.
16+
Nokogiri upgrades its dependency libxml2 as follows:
17+
- v1.15.6 upgrades libxml2 to 2.11.7 from 2.11.6
18+
- v1.16.2 upgrades libxml2 to 2.12.5 from 2.12.4
1819
19-
libxml2 v2.12.5 addresses the following vulnerability:
20+
libxml2 v2.11.7 and v2.12.5 address the following vulnerability:
2021
2122
CVE-2024-25062 / https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-25062
22-
described at https://gitlab.gnome.org/GNOME/libxml2/-/issues/604
23-
patched by https://gitlab.gnome.org/GNOME/libxml2/-/commit/92721970
23+
- described at https://gitlab.gnome.org/GNOME/libxml2/-/issues/604
24+
- patched by https://gitlab.gnome.org/GNOME/libxml2/-/commit/92721970
2425
25-
Please note that this advisory only applies to the CRuby implementation of
26-
Nokogiri < 1.16.2, and only if the packaged libraries are being used. If
27-
you've overridden defaults at installation time to use system libraries
28-
instead of packaged libraries, you should instead pay attention to your
29-
distro's libxml2 release announcements.
26+
Please note that this advisory only applies to the CRuby implementation of Nokogiri, and only if
27+
the packaged libraries are being used. If you've overridden defaults at installation time to use
28+
system libraries instead of packaged libraries, you should instead pay attention to your distro's
29+
libxml2 release announcements.
30+
31+
JRuby users are not affected.
3032
3133
### Severity
3234
3335
The Nokogiri maintainers have evaluated this as **Moderate**.
3436
35-
### Mitigation
37+
### Impact
3638
37-
Upgrade to Nokogiri >= 1.16.2.
39+
From the CVE description, this issue applies to the `xmlTextReader` module (which underlies
40+
`Nokogiri::XML::Reader`):
3841
39-
Users who are unable to upgrade Nokogiri may also choose a more complicated
40-
mitigation: compile and link Nokogiri against external libraries libxml2 >=
41-
2.12.5 which will also address these same issues.
42+
> When using the XML Reader interface with DTD validation and XInclude expansion enabled,
43+
> processing crafted XML documents can lead to an xmlValidatePopElement use-after-free.
4244
43-
JRuby users are not affected.
45+
### Mitigation
46+
47+
Upgrade to Nokogiri `~> 1.15.6` or `>= 1.16.2`.
4448
45-
### Workarounds
49+
Users who are unable to upgrade Nokogiri may also choose a more complicated mitigation: compile
50+
and link Nokogiri against patched external libxml2 libraries which will also address these same
51+
issues.
4652
patched_versions:
53+
- "~> 1.15.6"
4754
- ">= 1.16.2"
4855
related:
4956
cve:
5057
- 2024-25062
5158
url:
5259
- https://github.com/sparklemotion/nokogiri/commit/1b768b797fd42d94de12b9cff4ed0221f5cb92ec
60+
- https://github.com/sparklemotion/nokogiri/releases/tag/v1.15.6
5361
- https://github.com/sparklemotion/nokogiri/releases/tag/v1.16.2
5462
- https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-xc9x-jj77-9p9j
5563
---

0 commit comments

Comments
 (0)