NULL pointer dereference in Nokogiri

CVE-2022-23476

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.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

EPSS exploit prediction

EPSS: 0.018 (78.7th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 79th percentile — 78.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2022-23476: held from 0.018 to 0.018.

EPSS over last 30 days · oldest: 0.018 · newest: 0.018 · change: +0.001

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2022-23476?
CVE-2022-23476 is a high-severity vulnerability in Nokogiri, classified under CWE-252. CVSS score: 7.5/10. Published 2022-12-08.
How severe is CVE-2022-23476?
High severity. CVSS v3 base score is 7.5 out of 10.
Is CVE-2022-23476 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.