Jenkins Security Advisory 2012-03-05

This advisory announces a couple of critical security vulnerabilities that were found in Jenkins core.

The first vulnerability is a directory traversal vulnerability. This allows an anonymous attacker to read files in the file system that shouldn’t be exposed. This vulnerability affects Jenkins that run on Windows, whether or not the access control in Jenkins is enabled. Those file reads are still subject to OS-level access control, and therefore an attacker will only gain access to files that are readable to the OS user that runs the Jenkins process. This is a vulnerability in the built-in servlet container (named Winstone), and therefore the only affected users are those who are running Jenkins via java -jar jenkins.war (this includes users of the Windows installer.) This vulnerability affects all versions of Jenkins up to and including 1.452, and LTS releases up to and including 1.424.3.

The second vulnerability is a cross-site scripting (XSS) vulnerability, which allows an attacker to inject malicious HTMLs to pages served by Jenkins. This allows an attacker to escalate his privileges by hijacking sessions of other users. This vulnerability affects all versions of Jenkins up to and including 1.452, and LTS releases up to and including 1.424.3, regardless of the security settings.

The impact of these problems on DEV@cloud is limited, as our masters do not run on Windows, and because we do not allow anonymous malicious users to sign up to your Jenkins master.


CloudBees rates this vulnerability as critical, as it allows malicious users to gain unauthorized access to the information (in the case of the first vulnerability), and to impersonate the administrator of the system, gaining the full access to the system (in case of the second vulnerability), even though this attack can be only mounted passively.

  • Main line users should upgrade to Jenkins 1.454
  • LTS users should upgrade to 1.424.5
  • Users of Jenkins Enterprise by CloudBees 1.424.x should upgrade to 1.424.5.1
  • Users of Jenkins Enterprise by CloudBees 1.400.x should upgrade to 1.400.0.13
  • The fix has already been applied to DEV@Cloud