An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing large XMP metadata, possibly with lots of unnecessary elements.
This has been fixed in pypdf==6.12.1.
If you cannot upgrade yet, consider applying the changes from PR #3796.