Nokogiri versions before 1.19.1 fail to check the return value from xmlC14NExecute in the canonicalize method, returning an empty string on failure instead of raising an exception. Attackers can exploit this to bypass signature validation in downstream SAML libraries by providing invalid canonicalized XML that is incorrectly accepted as valid.
Attack Parameters
Impact Assessment
CVSS Vector v4.0
Weakness Type (CWE)
Vulnerable Products 2
| Configuration | From (including) | Up to (excluding) |
|---|---|---|
|
Nokogiri Nokogiri
cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:*:*:*
|
1.5.1
|
1.19.1
|
|
Nokogiri Nokogiri
cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:ruby:*:*
|
1.5.1
|
1.19.1
|