VDB
KO
MEDIUM 6.6

GHSA-wrhr-54p6-q97f

Jenkins Active Directory Plugin follows LDAP referrals by default

Details

Jenkins Active Directory Plugin 2.41 and earlier follows LDAP referrals from the configured Active Directory server by default. These can forward to an RMI URL that causes Jenkins to deserialize attacker-controlled data, resulting in Remote Code Execution (RCE) on the Jenkins controller if deserialization "gadgets" are available on the classpath.

This allows attackers able to control the configured Active Directory server, or able to perform a machine-in-the-middle attack, to execute code on the Jenkins controller.

Active Directory Plugin 2.41.1 no longer follows LDAP referrals by default.

Administrators unable to update to a fixed version can start Jenkins with the Java system property `hudson.plugins.active_directory.referral.ignore` set to `true` to mitigate the vulnerability.

Administrators of Jenkins controllers requiring following LDAP referrals can set the Java system property `hudson.plugins.active_directory.referral.ignore` to `false` to restore the previous behavior.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven / org.jenkins-ci.plugins:active-directory
Introduced in: 0 Fixed in: 2.41.1
Fix # pom.xml: bump <version>2.41.1</version> for org.jenkins-ci.plugins:active-directory

References