Bug 996281 (CVE-2013-1437)

Summary: CVE-2013-1437 perl-Module-Metadata: incorrectly documents that it does not execute unsafe code
Product: [Other] Security Response Reporter: Vincent Danen <vdanen>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: carnil, drieden, hhorak, jorton, jplesnik, nobody+bgollahe, perl-maint-list, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-22 16:14:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 996285, 996286, 999631, 999632    
Bug Blocks: 996283    

Description Vincent Danen 2013-08-12 20:27:37 UTC
It was reported that the perl Module::Metadata module incorrectly claimed that it would gather metadata about a .pm file without executing unsafe code.  However, when Module::Metadata determines the version of a module, it can extract a small amount of code (if present in the $Version variable assignment) and evaluates it, which can lead to the execution of arbitrary code (the same code that module would execute to obtain the value of $Version).

This behaviour is intended and known by the authors of the module, the only issue here is with the claim of "without executing unsafe code" and with not making this behaviour clearer in the documentation.  The authors intend to remove this mis-statement and properly document this intended behaviour.


Acknowledgements:

Red Hat would like to thank the Perl 5 Security Team for reporting this issue.

Comment 2 Vincent Danen 2013-08-21 18:09:58 UTC
This is now public:

https://metacpan.org/changes/distribution/Module-Metadata

Comment 4 Vincent Danen 2013-08-21 18:14:44 UTC
Created perl-Module-Metadata tracking bugs for this issue:

Affects: fedora-all [bug 999631]

Comment 5 Fedora Update System 2013-08-30 22:57:43 UTC
perl-Module-Metadata-1.000015-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2013-08-30 23:00:03 UTC
perl-Module-Metadata-1.000015-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.