CVE-2024-23901: Infoleak
GitLab allows sharing a project with another group.
Jenkins GitLab Branch Source Plugin 684.veafa7c1e2fe3 and earlier unconditionally discovers projects that are shared with the configured owner group.
This allows attackers to configure and share a project, resulting in a crafted Pipeline being built by Jenkins after the next scan of the group’s projects.
In GitLab Branch Source Plugin 688.v5fa356ee8520, the default strategy for discovering projects does not discover projects shared with the configured owner group. To discover projects shared with the configured owner group, use the new trait "Discover shared projects".
Other sources
Jenkins GitLab Branch Source Plugin 684.veafa7c1e2fe3 and earlier unconditionally discovers projects that are shared with the configured owner group, allowing attackers to configure and share a project, resulting in a crafted Pipeline being built by Jenkins during the next scan of the group.
— NVD
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/io.jenkins.plugins:gitlab-branch-sourceto a version that resolves this vulnerability.Fixed in 688.v5fa - Upgrade
Upgrade
Jenkins GitLab Branch Source Pluginto a version that resolves this vulnerability.Fixed in 688.v5fa_356ee8520 - Configuration
Enable the new trait "Discover shared projects" so that the plugin discovers projects shared with the configured owner group.
Jenkins GitLab Branch Source Plugin Discover shared projects = enable
Event History
Frequently Asked Questions
What is the severity of CVE-2024-23901?
CVE-2024-23901 has a critical severity rating due to its potential for project unauthorized sharing and pipeline exploitation.
How do I fix CVE-2024-23901?
You can fix CVE-2024-23901 by upgrading to the affected software versions indicated in the advisory, specifically to at least version 688.v5fa for the Jenkins GitLab Branch Source Plugin.
What are the potential impacts of CVE-2024-23901?
The potential impacts of CVE-2024-23901 include unauthorized access to projects and the risk of executing malicious pipelines.
Which software versions are affected by CVE-2024-23901?
CVE-2024-23901 affects Jenkins GitLab Branch Source Plugin versions up to 684.vea_fa_7c1e2fe3.
Who is primarily affected by CVE-2024-23901?
Organizations using the Jenkins GitLab Branch Source Plugin without updates are primarily affected by CVE-2024-23901.