Jenkins 2.318 and earlier, LTS 2.303.2 and earlier allows any agent to read and write the contents of any build directory stored in Jenkins with very few restrictions.
https://github.com/advisories/GHSA-cv2w-q8c3-xjv7
https://www.jenkins.io/security/advisory/2021-11-04/#SECURITY-2428