REDHAT-BUG-588269: Medium severity CPAN Safe.pm vulnerability
Safe.pm 2.26 and earlier (except 2.20 through 2.23 if using a threads-enabled Perl), when used in Perl 5.10.0 and earlier, may allow attackers to break out of safe compartment in (1) Safe::reval or (2) Safe::rdo using subroutine references, whose execution is delayed to happen outside of the safe compartment. If a victim was tricked into running a specially-crafted Perl script, using Safe extension module, it could lead to intended Safe module restrictions bypass, if the returned subroutine reference was called from outside of the compartment. Different vulnerability than CVE-2010-1168.
Solution: Ugrade to Safe.pm v2.27 or higher.
References: [1] http://search.cpan.org/~rgarcia/Safe-2.27/Safe.pm
Acknowledgements:
Red Hat would like to thank Tim Bunce for responsibly reporting this flaw. Upstream credits also Rafaël Garcia-Suarez for discovering of this issue.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-588269?
The severity of REDHAT-BUG-588269 is classified as moderate.
How do I fix REDHAT-BUG-588269?
You can fix REDHAT-BUG-588269 by upgrading to Safe.pm version 2.27 or later.
Which versions of Perl are affected by REDHAT-BUG-588269?
Perl versions up to and including 5.10.0 are affected by REDHAT-BUG-588269.
What vulnerabilities are associated with REDHAT-BUG-588269?
REDHAT-BUG-588269 is associated with CVE-2010-1168 and CVE-2010-1447.
What is Safe.pm in the context of REDHAT-BUG-588269?
Safe.pm is a Perl module that provides a compartmentalized environment for executing untrusted code, and it is vulnerable in versions 2.26 and earlier.