Could you please upgrade bouncycastle in 2.x to 1.74 or newer? See https://github.com/bcgit/bc-java/wiki/CVE-2023-33201