CVE-2024-52554 Script security bypass vulnerability in Jenkins Shared Library Version Override Plugin
Attackers with folder configuration permissions can execute arbitrary code by bypassing the Script Security sandbox via folder-scoped library overrides.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-52554?
CVE-2024-52554 is a high-severity missing authorization vulnerability in Jenkins Shared Library Version Override Plugin, published on 13 Nov 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Jenkins Shared Library Version Override Plugin 17.v786074c9fce7 and earlier declares folder-scoped library overrides as trusted, so that they're not executed in the Script Security sandbox, allowing attackers with Item/Configure permission on a folder to configure a folder-scoped library override that runs without sandbox protection.
Weakness: CWE-862
Which versions are affected by CVE-2024-52554?
2 open source packages ship an affected version, including io.jenkins.plugins:shared-library-version-override. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
io.jenkins.plugins:shared-library-version-override Maven | All versions | 19.v3a |
io.jenkins.plugins:shared-library-version-override Maven | All versions | 19.v3a |
Products include Jenkins Shared Library Version Override.
How do I fix CVE-2024-52554?
Upgrade io.jenkins.plugins:shared-library-version-override to 19.v3a or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2024-52554 being exploited?
There is no known exploitation of CVE-2024-52554 in the wild and no public exploit code.
Sources
Also known as GHSA-7845-crfj-phc4.