Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384859 (CVE-2011-3848) - <app-admin/puppet-2.6.10: directory traversal (CVE-2011-3848)
Summary: <app-admin/puppet-2.6.10: directory traversal (CVE-2011-3848)
Alias: CVE-2011-3848
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
Whiteboard: B3 [glsa]
Depends on: CVE-2011-3869
  Show dependency tree
Reported: 2011-09-29 00:02 UTC by Matthew Marlowe
Modified: 2012-03-06 01:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Marlowe (RETIRED) gentoo-dev 2011-09-29 00:02:45 UTC
Puppet Labs just sent an advisory out -- copying text:

There has been a vulnerability discovered in Puppet (CVE-2011-3848).

# Recommended Action #

Puppet Labs has an updated version of Puppet available at the
following locations:


The fixed versions are 2.6.10 in the 2.6.x branch and 2.7.4 in the
2.7.x branch.

The hotfixes page also contains updated Puppet packages for Puppet
Enterprise versions 1.0, 1.1 and 1.2.x.

Puppet Labs has been coordinating with Debian, Ubuntu, EPEL and
OpenSuSE maintainers.  We expect new packages (with a patch backported
in many cases) to be released as soon as possible.

Separate release announcements for Puppet 2.6.10 and 2.7.4 are pending.

# Explanation  #

  Kristian Erik Hermansen <> reported that
  an unauthenticated directory traversal could drop any valid X.509
  Certificate Signing Request at any location on disk, with the
  privileges of the Puppet Master application.  This was found in the
  2.7 series of Puppet, but the underlying vulnerability existed in
  earlier releases and could be accessed with different hostile inputs.

  There are also some additional quirks of input handling that make it
  easier to obfuscate the input.

  This exploits an input quirk where the "key" in the URI is
  double-decoded; this would also work for a single URI-encoded input

  On 2.6 this is ignored, but the CN in the Subject of the CSR is used
  in the same way, and could be exploited to drop the CSR content at an
  arbitrary location on disk.  The suffix ".pem" is always appended
to the location.

  In the 0.25 series the same CN-based injection can occur, as the
  underlying flaw still exists.

  In all cases this requires that the input data can be loaded through
  OpenSSL as a CSR, and will fail before touching disk if that is not
  valid data.

  Be aware that both double-encoded and single-encoded URI patterns will
  work, equivalently, in Puppet 2.7.  No URI decoding is done on the CN
  of the CSR Subject.

# Commit message for fix #

I have included patches for the 0.25.x, 2.6.x, and 2.7.x branches.

 Author: Daniel Pittman <> Date:   Sat Sep
 24 12:44:20 2011 -0700

 Resist directory traversal attacks through indirections.

 In various versions of Puppet it was possible to cause a directory
 traversal attack through the SSLFile indirection base class.
 This was variously triggered through the user-supplied key, or
 the Subject of the certificate, in the code.

 Now, we detect bad patterns down in the base class for our
 indirections, and fail hard on them.  This reduces the attack
 surface with as little disruption to the overall codebase as
 possible, making it suitable to deploy as part of older, stable
 versions of Puppet.

 In the long term we will also address this higher up the stack,
 to prevent these problems from reoccurring, but for now this
 will suffice.

 Huge thanks to Kristian Erik Hermansen <>
 for the responsible disclosure, and useful analysis, around
 this defect.

 Signed-off-by: Daniel Pittman <>

# Note for 0.25 users #

If you're still shipping/using 0.25, we have supplied a patch to
several distro maintainers that
applies cleanly to our git tree, but will not be releasing any
upstream source of it.

If you have any questions or need additional clarification on
anything, please respond to

Thanks, Michael Stahnke
Release Manager -- Puppet Labs
Comment 1 MATSUU Takuto (RETIRED) gentoo-dev 2011-09-29 12:28:09 UTC
2.6.10 and 2.7.4 in cvs.
please mark stable =app-admin/puppet-2.6.10.
Comment 2 Tim Sammut (RETIRED) gentoo-dev 2011-09-29 18:51:01 UTC
(In reply to comment #1)
> 2.6.10 and 2.7.4 in cvs.
> please mark stable =app-admin/puppet-2.6.10.

Great, thank you.

Arches, please test and mark stable:
Target keywords : "amd64 hppa ppc sparc x86"
Comment 3 Elijah "Armageddon" El Lazkani (amd64 AT) 2011-09-30 05:02:04 UTC
amd64: pass
Comment 4 Steve Dibb (RETIRED) gentoo-dev 2011-09-30 20:59:45 UTC
amd64 stable
Comment 5 Agostino Sarubbo gentoo-dev 2011-09-30 23:29:55 UTC
@remaining arches,

Please continue in bug 385149.
Comment 6 Tim Sammut (RETIRED) gentoo-dev 2011-10-09 18:02:10 UTC
=app-admin/puppet-2.6.11 stabilization completed in bug 385149. GLSA Vote: yes.
Comment 7 GLSAMaker/CVETool Bot gentoo-dev 2011-11-16 23:32:01 UTC
CVE-2011-3848 (
  Directory traversal vulnerability in Puppet 2.6.x before 2.6.10 and 2.7.x
  before 2.7.4 allows remote attackers to write X.509 Certificate Signing
  Request (CSR) to arbitrary locations via (1) a double-encoded key parameter
  in the URI in 2.7.x, (2) the CN in the Subject of a CSR in 2.6 and 0.25.
Comment 8 Sean Amoss (RETIRED) gentoo-dev Security 2012-03-02 17:12:15 UTC
On existing GLSA draft.
Comment 9 GLSAMaker/CVETool Bot gentoo-dev 2012-03-06 01:32:00 UTC
This issue was resolved and addressed in
 GLSA 201203-03 at
by GLSA coordinator Sean Amoss (ackle).