Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 11 | puppet | 2.7.18-1 | — |
| Debian 6.0 | puppet | 2.6.2-5+squeeze6 | DSA-2511-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | puppet | < 2.6.17 | 2.6.17 | GHSA-q44r-f2hm-v76v |
| RubyGems | puppet | >= 2.7.0, < 2.7.18 | 2.7.18 | GHSA-q44r-f2hm-v76v |
Advisories 1
- DSA-2511-1 puppet - several Debian Security (DSA / DLA) · Mar 9, 2026
References
- SUSE-SU-2012:0983 vendor-advisory
- DSA-2511 vendor-advisory
- USN-1506-1 vendor-advisory
- 50014 third-party-advisory
- openSUSE-SU-2012:0891 vendor-advisory
- http://puppetlabs.com/security/cve/cve-2012-3867/
- https://github.com/puppetlabs/puppet/commit/dfedaa5fa841ccf335245a748b347b7c7c236640
- https://github.com/puppetlabs/puppet/commit/f3419620b42080dad3b0be14470b20a972f13c50
- https://bugzilla.redhat.com/show_bug.cgi?id=839158