CVE-2022-23476: high-severity vulnerability in sparklemotion nokogiri
Unchecked return value from xmlTextReaderExpand in Nokogiri
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
No sign of exploitation. No public exploitation artifact known so far.
Nokogiri fails to properly check if a function succeeds when parsing XML, which can cause the program to crash when processing malformed XML. This is a vulnerability if your application parses untrusted XML data.
CVE-2022-23476 involves improper error handling in Nokogiri's XML::Reader#attribute_hash method, where the return value of xmlTextReaderExpand is not validated, leading to null pointer dereference on malformed markup. The attack vector is via untrusted XML input, with no authentication required; the impact is denial of service through application crash.
In the same product, most dangerous first.