Resource exhaustion occurs during the handling of XFA (XML Forms Architecture) forms. An attacker can provide a specially crafted PDF containing XFA forms with numerous small fields, leading to excessive memory consumption and a resulting denial of service when the forms are loaded.