Nokogiri 1.13.7/1.13.8 Reader#attribute_hash null pointer dereference
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.3 | $0-$5k | 0.00 |
Summary
A vulnerability, which was classified as problematic, was found in Nokogiri 1.13.7/1.13.8. This issue affects the function Nokogiri::XML::Reader#attribute_hash. Executing a manipulation can lead to null pointer dereference.
This vulnerability appears as CVE-2022-23476. The attack may be performed from remote. There is no available exploit.
You should upgrade the affected component.
Details
A vulnerability was found in Nokogiri 1.13.7/1.13.8. It has been declared as problematic. This vulnerability affects the function Nokogiri::XML::Reader#attribute_hash. The manipulation with an unknown input leads to a null pointer dereference vulnerability. The CWE definition for the vulnerability is CWE-476. A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit. As an impact it is known to affect availability. CVE summarizes:
Nokogiri is an open source XML and HTML library for the Ruby programming language. Nokogiri `1.13.8` and `1.13.9` fail to check the return value from `xmlTextReaderExpand` in the method `Nokogiri::XML::Reader#attribute_hash`. This can lead to a null pointer exception when invalid markup is being parsed. For applications using `XML::Reader` to parse untrusted inputs, this may potentially be a vector for a denial of service attack. Users are advised to upgrade to Nokogiri `>= 1.13.10`. Users may be able to search their code for calls to either `XML::Reader#attributes` or `XML::Reader#attribute_hash` to determine if they are affected.
The weakness was presented 12/08/2022 as GHSA-qv4q-mr5r-qprj. The advisory is available at github.com. This vulnerability was named CVE-2022-23476 since 01/19/2022. Technical details are known, but there is no available exploit.
The vulnerability scanner Nessus provides a plugin with the ID 211161 (Fedora 37 : rubygem-nokogiri (2022-b5c325caad)), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 1.13.10 eliminates this vulnerability. Applying the patch 85410e38410f670cbbc8c5b00d07b843caee88ce is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the vulnerability database at Tenable (211161). If you want to get best quality of vulnerability data, you may have to visit VulDB.
Product
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.4VulDB Meta Temp Score: 6.3
VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔍
VulDB Reliability: 🔍
CNA Base Score: 7.5
CNA Vector (GitHub, Inc.): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Null pointer dereferenceCWE: CWE-476 / CWE-404
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 211161
Nessus Name: Fedora 37 : rubygem-nokogiri (2022-b5c325caad)
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: Nokogiri 1.13.10
Patch: 85410e38410f670cbbc8c5b00d07b843caee88ce
Timeline
01/19/2022 🔍12/08/2022 🔍
12/08/2022 🔍
11/17/2024 🔍
Sources
Advisory: GHSA-qv4q-mr5r-qprjStatus: Confirmed
CVE: CVE-2022-23476 (🔍)
GCVE (CVE): GCVE-0-2022-23476
GCVE (VulDB): GCVE-100-215098
Entry
Created: 12/08/2022 07:46Updated: 11/17/2024 05:22
Changes: 12/08/2022 07:46 (42), 01/01/2023 11:05 (12), 11/17/2024 05:22 (17)
Complete: 🔍
Cache ID: 216::103
If you want to get best quality of vulnerability data, you may have to visit VulDB.
No comments yet. Languages: en.
Please log in to comment.