Skip to content

Commit c150e7c

Browse files
lightseytoddr
authored andcommitted
Make security warnings in the Safe and Opcode modules more direct.
The current "no warranty" text warning against the use of Safe or Opcode for "security purposes" is somewhat ambiguous. These modules are not effective sandboxing mechanisms for evaluating untrusted perl code and should not be used in that manner. Safe and Opcode are, at best, hardening measures that could be used in combination with operating system level sandboxing of the perl interpreter.
1 parent b135fd4 commit c150e7c

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

dist/Safe/Safe.pm

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package Safe;
33
use 5.003_11;
44
use Scalar::Util qw(reftype refaddr);
55

6-
$Safe::VERSION = "2.42";
6+
$Safe::VERSION = "2.43";
77

88
# *** Don't declare any lexicals above this point ***
99
#
@@ -543,6 +543,13 @@ outside the compartment) placed into the compartment. For example,
543543
544544
=head1 WARNING
545545
546+
The Safe module does not implement an effective sandbox for
547+
evaluating untrusted code with the perl interpreter.
548+
549+
Bugs in the perl interpreter that could be abused to bypass
550+
Safe restrictions are not treated as vulnerabilities. See
551+
L<perlsecpolicy> for additional information.
552+
546553
The authors make B<no warranty>, implied or otherwise, about the
547554
suitability of this software for safety or security purposes.
548555

ext/Opcode/Opcode.pm

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use strict;
66

77
our($VERSION, @ISA, @EXPORT_OK);
88

9-
$VERSION = "1.47";
9+
$VERSION = "1.48";
1010

1111
use Carp;
1212
use Exporter ();
@@ -117,6 +117,13 @@ Safe modules for more typical uses.
117117
118118
=head1 WARNING
119119
120+
The Opcode module does not implement an effective sandbox for
121+
evaluating untrusted code with the perl interpreter.
122+
123+
Bugs in the perl interpreter that could be abused to bypass
124+
Opcode restrictions are not treated as vulnerabilities. See
125+
L<perlsecpolicy> for additional information.
126+
120127
The authors make B<no warranty>, implied or otherwise, about the
121128
suitability of this software for safety or security purposes.
122129

0 commit comments

Comments
 (0)