The BPG parser in versions of Apache Tika before 1.28.2 and 2.4.0 may allocate an unreasonable amount of memory on carefully crafted files.
https://www.oracle.com/security-alerts/cpujul2022.html
https://security.netapp.com/advisory/ntap-20220804-0004/
https://lists.apache.org/thread/t3tb51sf0k2pmbnzsrrrm23z9r1c10rk