Remote code execution in Jenkins



| Updated: 2017-02-17
Risk Critical
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2016-9299
CWE-ID CWE-90
Exploitation vector Network
Public exploit This vulnerability is being exploited in the wild.
Vulnerable software
Jenkins
Server applications / Application servers

Vendor Jenkins

Security Bulletin

This security bulletin contains one critical risk vulnerability.

1) LDAP injection

EUVDB-ID: #VU5852

Risk: Critical

CVSSv4.0: 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/E:A/U:Red]

CVE-ID: CVE-2016-9299

CWE-ID: CWE-90 - Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')

Exploit availability: Yes

Description

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.


Mitigation

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

Vulnerable software versions

Jenkins: 2.19.2 - 2.32

CPE2.3 External links

https://www.cloudbees.com/jenkins-security-advisory-2016-11-16


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, a fully functional exploit for this vulnerability is available.



###SIDEBAR###