VYPR
Moderate severityNVD Advisory· Published Oct 17, 2014· Updated May 6, 2026

CVE-2014-2061

CVE-2014-2061

Description

The input control in PasswordParameterDefinition in Jenkins before 1.551 and LTS before 1.532.2 allows remote attackers to obtain passwords by reading the HTML source code, related to the default value.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Jenkins PasswordParameterDefinition exposes default password in HTML source, allowing attackers to obtain passwords.

Vulnerability

The input control in PasswordParameterDefinition in Jenkins before version 1.551 and LTS before 1.532.2 renders the default value of a password parameter in the HTML source code. This allows anyone who can view the page to see the password in plaintext. The affected versions include Jenkins up to 1.550 and LTS up to 1.532.1 [2][3].

Exploitation

An attacker needs only to access a Jenkins page that includes a PasswordParameterDefinition with a non-empty default value. By viewing the HTML source of that page, the attacker can read the password directly. No authentication or special privileges are required beyond access to the page [2][3].

Impact

Successful exploitation results in the disclosure of the default password stored in the password parameter. This could allow an attacker to gain unauthorized access to systems or services that use that password, potentially leading to further compromise [2].

Mitigation

Jenkins has fixed this vulnerability in version 1.551 and LTS 1.532.2. Users should upgrade to these versions or later. No workarounds are mentioned in the available references [2][3].

AI Insight generated on May 23, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
org.jenkins-ci.main:jenkins-coreMaven
>= 1.533, < 1.5511.551
org.jenkins-ci.main:jenkins-coreMaven
< 1.532.21.532.2

Affected products

5

Patches

1
bf539198564a

[FIXED SECURITY-93] PasswordParameterDefinition should serve existing default value in encrypted form.

https://github.com/jenkinsci/jenkinsJesse GlickFeb 7, 2014via ghsa
4 files changed · +54 1
  • core/src/main/java/hudson/Functions.java+3 0 modified
    @@ -1464,6 +1464,9 @@ public List<String> getLoggerNames() {
         public String getPasswordValue(Object o) {
             if (o==null)    return null;
             if (o instanceof Secret)    return ((Secret)o).getEncryptedValue();
    +        if (getIsUnitTest()) {
    +            throw new SecurityException("attempted to render plaintext ‘" + o + "’ in password field; use a getter of type Secret instead");
    +        }
             return o.toString();
         }
     
    
  • core/src/main/java/hudson/model/PasswordParameterDefinition.java+7 0 modified
    @@ -28,6 +28,8 @@
     import org.kohsuke.stapler.DataBoundConstructor;
     import hudson.Extension;
     import hudson.util.Secret;
    +import org.kohsuke.accmod.Restricted;
    +import org.kohsuke.accmod.restrictions.DoNotUse;
     
     /**
      * Parameter whose value is a {@link Secret} and is hidden from the UI.
    @@ -76,6 +78,11 @@ public String getDefaultValue() {
             return Secret.toString(defaultValue);
         }
     
    +    @Restricted(DoNotUse.class) // used from Jelly
    +    public Secret getDefaultValueAsSecret() {
    +        return defaultValue;
    +    }
    +
         // kept for backward compatibility
         public void setDefaultValue(String defaultValue) {
             this.defaultValue = Secret.fromString(defaultValue);
    
  • core/src/main/resources/hudson/model/PasswordParameterDefinition/config.jelly+1 1 modified
    @@ -30,7 +30,7 @@ THE SOFTWARE.
     		<f:textbox name="parameter.name" value="${instance.name}" />
     	</f:entry>
     	<f:entry title="${%Default Value}" help="/help/parameter/string-default.html">
    -		<f:password name="parameter.defaultValue" value="${instance.defaultValue}" />
    +		<f:password name="parameter.defaultValue" value="${instance.defaultValueAsSecret}" />
     	</f:entry>
         <f:entry title="${%Description}" help="/help/parameter/description.html">
             <f:textarea name="parameter.description" value="${instance.description}" />
    
  • test/src/test/java/hudson/model/PasswordParameterDefinitionTest.java+43 0 added
    @@ -0,0 +1,43 @@
    +/*
    + * The MIT License
    + *
    + * Copyright 2013 Jesse Glick.
    + *
    + * Permission is hereby granted, free of charge, to any person obtaining a copy
    + * of this software and associated documentation files (the "Software"), to deal
    + * in the Software without restriction, including without limitation the rights
    + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    + * copies of the Software, and to permit persons to whom the Software is
    + * furnished to do so, subject to the following conditions:
    + *
    + * The above copyright notice and this permission notice shall be included in
    + * all copies or substantial portions of the Software.
    + *
    + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    + * THE SOFTWARE.
    + */
    +
    +package hudson.model;
    +
    +import static org.junit.Assert.assertEquals;
    +import org.junit.Rule;
    +import org.junit.Test;
    +import org.jvnet.hudson.test.JenkinsRule;
    +
    +public class PasswordParameterDefinitionTest {
    +
    +    @Rule public JenkinsRule j = new JenkinsRule();
    +
    +    @Test public void defaultValueKeptSecret() throws Exception {
    +        FreeStyleProject p = j.createFreeStyleProject();
    +        p.addProperty(new ParametersDefinitionProperty(new PasswordParameterDefinition("p", "s3cr3t", "")));
    +        j.configRoundtrip(p);
    +        assertEquals("s3cr3t", ((PasswordParameterDefinition) p.getProperty(ParametersDefinitionProperty.class).getParameterDefinition("p")).getDefaultValue());
    +    }
    +
    +}
    

Vulnerability mechanics

Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

5

News mentions

0

No linked articles in our index yet.