Gentoo Logo

Perl Module-Signature module: Arbitrary code execution


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 201310-01 / Module-Signature
Release Date October 04, 2013
Latest Revision October 04, 2013: 1
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
dev-perl/Module-Signature < 0.720.0 >= 0.720.0 All supported architectures

Related bugreports: #472428


The Module-Signature module for Perl has insufficient path checks, allowing a remote attacker to execute arbitrary Perl code.

2.  Impact Information


The Perl Module::Signature module adds signing capabilities to CPAN modules.


The ‘cpansign verify’ command will automatically download keys and use them to check the signature of CPAN packages via the SIGNATURE file. If an attacker were to replace this (SHA1) with a special unknown cipher (e.g. ‘Special’) and were to include in the distribution a ‘Digest/’, the code in this Perl module would be executed when ‘cpansign -verify’ is run.


A remote attacker could possibly execute arbitrary code with the privileges of the process.

3.  Resolution Information


There is no known workaround at this time.


All users of the Module-Signature Perl module should upgrade to the latest version:

Code Listing 3.1: Resolution

  # emerge --sync
  # emerge --ask --oneshot --verbose

4.  References


Page updated October 04, 2013

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.