A path traversal vulnerability exists in Jenkins 2.120 and older, LTS 2.107.2 and older in FilePath.java, SoloFilePathFilter.java that allows malicious agents to read and write arbitrary files on the Jenkins master, bypassing the agent-to-master security subsystem protection.
https://www.oracle.com/security-alerts/cpuapr2022.html
https://jenkins.io/security/advisory/2018-05-09/#SECURITY-788