CVE-2012-3867: Puppet Pupper Does Not Properly Restrict Vulnerability
MODERATECVE-2012-3867 is a MODERATE pupper does not properly restrict vulnerability (General Security Weakness) affecting Puppet libraries in the RubyGems ecosystem. The issue involves pupper does not properly restrict characters in common name field of certificate signing request. Remediation is available by upgrading affected packages to version 2.6.17, 2.7.18.
CVE-2012-3867 at a Glance
How to Fix CVE-2012-3867
To remediate this vulnerability, upgrade all affected Puppet dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade puppet to 2.6.17
Upgrade puppet to 2.7.18
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for puppet
How to Check if You Are Affected
To determine whether your application is affected by CVE-2012-3867, inspect your project dependencies for Puppet:
inspect dependencies for puppet
Analyze the terminal output to locate any version of Puppet in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.6.17), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Puppet, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2012-3867 Affected Puppet Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
puppet
|
RubyGems |
< 2.6.17
|
2.6.17
|
|
puppet
|
RubyGems |
≥ 2.7.0
< 2.7.18
|
2.7.18
|
References
Frequently Asked Questions
What is CVE-2012-3867?
Which Puppet versions are affected?
What version fixes CVE-2012-3867?
Is puppet affected?
What CWE is associated with CVE-2012-3867?
How can I check RubyGems dependencies for CVE-2012-3867?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q44r-f2hm-v76v",
"modified" : "2023-05-12T17:21:34Z",
"published" : "2017-10-24T18:33:37Z",
"aliases" : [ "CVE-2012-3867" ],
"summary" : "Pupper does not properly restrict characters in Common Name field of Certificate Signing Request",
"details" : "`lib/puppet/ssl/certificate_authority.rb` in Puppet before 2.6.17 and 2.7.x before 2.7.18, and Puppet Enterprise before 2.5.2, does not properly restrict the characters in the Common Name field of a Certificate Signing Request (CSR), which makes it easier for user-assisted remote attackers to trick administrators into signing a crafted agent certificate via ANSI control sequences.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "puppet"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.6.17"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "puppet"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.7.0"
}, {
"fixed" : "2.7.18"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-3867"
}, {
"type" : "WEB",
"url" : "https://github.com/puppetlabs/puppet/commit/dfedaa5fa841ccf335245a748b347b7c7c236640"
}, {
"type" : "WEB",
"url" : "https://github.com/puppetlabs/puppet/commit/f3419620b42080dad3b0be14470b20a972f13c50"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=839158"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/puppetlabs/puppet"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/puppet/CVE-2012-3867.yml"
}, {
"type" : "WEB",
"url" : "https://www.puppet.com/security/cve/cve-2012-3867-insufficient-input-validation"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00006.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-updates/2012-07/msg00036.html"
}, {
"type" : "WEB",
"url" : "http://puppetlabs.com/security/cve/cve-2012-3867"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2012/dsa-2511"
}, {
"type" : "WEB",
"url" : "http://www.ubuntu.com/usn/USN-1506-1"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:50:50Z",
"nvd_published_at" : null
}
}