logo

Gregor Samsa: Exploiting Java's XML Signature Verification

ID: fa73bc2c-7d40-5b91-a907-0a5044fd5728

STIX ID: report--fa73bc2c-7d40-5b91-a907-0a5044fd5728

Feed Name: Google Project Zero

Threat Score
75/100

Date Published: 2022-11-02

Date Updated: 2026-04-27

Author: Google Project Zero

...
...

This report analyzes CVE-2022-34169: an integer truncation/constant-pool overflow in Java's XSLTC (Xalan) that allows an attacker to craft XSLT transforms embedded in XML signatures to produce malicious JIT-compiled classes, leading to arbitrary code execution during XML signature verification (notably affecting SAML flows). The author explains the vulnerable compilation path, the BCEL constant-pool truncation, a detailed exploitation chain to create a malicious class, the practical constraints (signed SignedInfo, secureValidation setting), and recommended mitigations such as enabling secure validation, early key allowlisting, and reducing XSLT exposure.

Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.