LDAP injection in Jenkins - CVE-2016-9299

 

LDAP injection in Jenkins - CVE-2016-9299

Published: February 17, 2017 / Updated: February 27, 2017


Vulnerability identifier: #VU5852
CSH Severity: Critical
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-9299
CWE-ID: CWE-90
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The weakness exists due to the flaw in the remoting module when handling malicious objects. A remote attacker can transfer a specially crafted serialized Java object to the Jenkins CLI, make Jenkins connect to an attacker-controlled LDAP server, bypass existing protection mechanisms and execute arbitrary code on vulnerable system.

Successful exploitation of the vulnerability results in arbitrary code excution on the vulnerable system.

Note: the vulnerability was being actively exploited.



Affected software

Jenkins
Fedora
jenkins
jenkins-remoting

How to mitigate CVE-2016-9299

Update Jenkins LTS to version 2.19.3.
Update Jenkins to version 2.32.

jenkins - addressed in versions 1.625.3-5.fc23, 1.651.3-2.fc24, 1.651.3-2.fc25
jenkins-remoting - addressed in versions 2.62.3-1.fc23, 2.62.3-1.fc24, 2.62.3-1.fc25

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins