We do build the VTK maven package with a very recent GLIBCXX which is undesirable, the reason for this is that we used our current CI image (based on fedora 39). In future iterations we will move to an older/more stable distro that ships an older glibc. Probably RHEL8 (Alma).
If you are using a distro with an older glibc, I recommend a tool such as a distrobox
Vicente