Security Advisories (28)
CVE-2011-2728 (2012-12-21)

The bsd_glob function in the File::Glob module for Perl before 5.14.2 allows context-dependent attackers to cause a denial of service (crash) via a glob expression with the GLOB_ALTDIRFUNC flag, which triggers an uninitialized pointer dereference.

CVE-2020-12723 (2020-06-05)

regcomp.c in Perl before 5.30.3 allows a buffer overflow via a crafted regular expression because of recursive S_study_chunk calls.

CVE-2020-10878 (2020-06-05)

Perl before 5.30.3 has an integer overflow related to mishandling of a "PL_regkind[OP(n)] == NOTHING" situation. A crafted regular expression could lead to malformed bytecode with a possibility of instruction injection.

CVE-2020-10543 (2020-06-05)

Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers have an integer overflow.

CVE-2018-6913 (2018-04-17)

Heap-based buffer overflow in the pack function in Perl before 5.26.2 allows context-dependent attackers to execute arbitrary code via a large item count.

CVE-2018-18314 (2018-12-07)

Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations.

CVE-2018-18313 (2018-12-07)

Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive information from process memory.

CVE-2018-18312 (2018-12-05)

Perl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid write operations.

CVE-2018-18311 (2018-12-07)

Perl before 5.26.3 and 5.28.x before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid write operations.

CVE-2015-8853 (2016-05-25)

The (1) S_reghop3, (2) S_reghop4, and (3) S_reghopmaybe3 functions in regexec.c in Perl before 5.24.0 allow context-dependent attackers to cause a denial of service (infinite loop) via crafted utf-8 data, as demonstrated by "a\x80."

CVE-2013-1667 (2013-03-14)

The rehash mechanism in Perl 5.8.2 through 5.16.x allows context-dependent attackers to cause a denial of service (memory consumption and crash) via a crafted hash key.

CVE-2010-4777 (2014-02-10)

The Perl_reg_numbered_buff_fetch function in Perl 5.10.0, 5.12.0, 5.14.0, and other versions, when running with debugging enabled, allows context-dependent attackers to cause a denial of service (assertion failure and application exit) via crafted input that is not properly handled when using certain regular expressions, as demonstrated by causing SpamAssassin and OCSInventory to crash.

CVE-2010-1158 (2010-04-20)

Integer overflow in the regular expression engine in Perl 5.8.x allows context-dependent attackers to cause a denial of service (stack consumption and application crash) by matching a crafted regular expression against a long string.

CVE-2009-3626 (2009-10-29)

Perl 5.10.1 allows context-dependent attackers to cause a denial of service (application crash) via a UTF-8 character with a large, invalid codepoint, which is not properly handled during a regular-expression match.

CVE-2008-1927 (2008-04-24)

Double free vulnerability in Perl 5.8.8 allows context-dependent attackers to cause a denial of service (memory corruption and crash) via a crafted regular expression containing UTF8 characters. NOTE: this issue might only be present on certain operating systems.

CVE-2005-3962 (2005-12-01)

Integer overflow in the format string functionality (Perl_sv_vcatpvfn) in Perl 5.9.2 and 5.8.6 Perl allows attackers to overwrite arbitrary memory and possibly execute arbitrary code via format string specifiers with large values, which causes an integer wrap and leads to a buffer overflow, as demonstrated using format string vulnerabilities in Perl applications.

CVE-2007-5116 (2007-11-07)

Buffer overflow in the polymorphic opcode support in the Regular Expression Engine (regcomp.c) in Perl 5.8 allows context-dependent attackers to execute arbitrary code by switching from byte to Unicode (UTF) characters in a regular expression.

CVE-2012-5195 (2012-12-18)

Heap-based buffer overflow in the Perl_repeatcpy function in util.c in Perl 5.12.x before 5.12.5, 5.14.x before 5.14.3, and 5.15.x before 15.15.5 allows context-dependent attackers to cause a denial of service (memory consumption and crash) or possibly execute arbitrary code via the 'x' string repeat operator.

CVE-2016-2381 (2016-04-08)

Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate environment variables in envp.

CVE-2013-7422 (2015-08-16)

Integer underflow in regcomp.c in Perl before 5.20, as used in Apple OS X before 10.10.5 and other products, allows context-dependent attackers to execute arbitrary code or cause a denial of service (application crash) via a long digit string associated with an invalid backreference within a regular expression.

CVE-2011-1487 (2011-04-11)

The (1) lc, (2) lcfirst, (3) uc, and (4) ucfirst functions in Perl 5.10.x, 5.11.x, and 5.12.x through 5.12.3, and 5.13.x through 5.13.11, do not apply the taint attribute to the return value upon processing tainted input, which might allow context-dependent attackers to bypass the taint protection mechanism via a crafted string.

CVE-2023-47039 (2023-10-30)

Perl for Windows relies on the system path environment variable to find the shell (cmd.exe). When running an executable which uses Windows Perl interpreter, Perl attempts to find and execute cmd.exe within the operating system. However, due to path search order issues, Perl initially looks for cmd.exe in the current working directory. An attacker with limited privileges can exploit this behavior by placing cmd.exe in locations with weak permissions, such as C:\ProgramData. By doing so, when an administrator attempts to use this executable from these compromised locations, arbitrary code can be executed.

CVE-2023-47100

In Perl before 5.38.2, S_parse_uniprop_string in regcomp.c can write to unallocated space because a property name associated with a \p{...} regular expression construct is mishandled. The earliest affected version is 5.30.0.

CVE-2024-56406 (2025-04-13)

A heap buffer overflow vulnerability was discovered in Perl. When there are non-ASCII bytes in the left-hand-side of the `tr` operator, `S_do_trans_invmap` can overflow the destination pointer `d`.    $ perl -e '$_ = "\x{FF}" x 1000000; tr/\xFF/\x{100}/;'    Segmentation fault (core dumped) It is believed that this vulnerability can enable Denial of Service and possibly Code Execution attacks on platforms that lack sufficient defenses.

CVE-1999-0462 (1999-03-17)

suidperl in Linux Perl does not check the nosuid mount option on file systems, allowing local users to gain root access by placing a setuid script in a mountable file system, e.g. a CD-ROM or floppy disk.

CVE-2000-0703 (2000-10-20)

suidperl (aka sperl) does not properly cleanse the escape sequence "~!" before calling /bin/mail to send an error report, which allows local users to gain privileges by setting the "interactive" environmental variable and calling suidperl with a filename that contains the escape sequence.

CVE-2016-1238 (2016-08-02)

(1) cpan/Archive-Tar/bin/ptar, (2) cpan/Archive-Tar/bin/ptardiff, (3) cpan/Archive-Tar/bin/ptargrep, (4) cpan/CPAN/scripts/cpan, (5) cpan/Digest-SHA/shasum, (6) cpan/Encode/bin/enc2xs, (7) cpan/Encode/bin/encguess, (8) cpan/Encode/bin/piconv, (9) cpan/Encode/bin/ucmlint, (10) cpan/Encode/bin/unidump, (11) cpan/ExtUtils-MakeMaker/bin/instmodsh, (12) cpan/IO-Compress/bin/zipdetails, (13) cpan/JSON-PP/bin/json_pp, (14) cpan/Test-Harness/bin/prove, (15) dist/ExtUtils-ParseXS/lib/ExtUtils/xsubpp, (16) dist/Module-CoreList/corelist, (17) ext/Pod-Html/bin/pod2html, (18) utils/c2ph.PL, (19) utils/h2ph.PL, (20) utils/h2xs.PL, (21) utils/libnetcfg.PL, (22) utils/perlbug.PL, (23) utils/perldoc.PL, (24) utils/perlivp.PL, and (25) utils/splain.PL in Perl 5.x before 5.22.3-RC2 and 5.24 before 5.24.1-RC2 do not properly remove . (period) characters from the end of the includes directory array, which might allow local users to gain privileges via a Trojan horse module under the current working directory.

CVE-2015-8608 (2017-02-07)

The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of-bounds read) and possibly execute arbitrary code via a crafted (1) drive letter or (2) pInName argument.

Changes for version 5.005_04

  • This section describes the differences between the 5.005_03 and

Changes for version 5.005_04

  • compatibility release.
  • Perl now compiles and runs under modern Unix systems, including those with recent Berkeley DB libraries or GCC 3. Additionally, it now runs under Mac OS X (10.3).
  • This also contains a security fix for a suidperl vulnerability. See http://www.cpan.org/src/5.0/sperl-2000-08-05/sperl-2000-08-05.txt for more information.
  • =head1 About the new versioning system
  • Perl is now developed on two tracks: a maintenance track that makes small, safe updates to released production versions with emphasis on compatibility; and a development track that pursues more aggressive evolution. Maintenance releases (which should be considered production quality) have subversion numbers that run from C<1> to C<49>, and development releases (which should be considered "alpha" quality) run from C<50> to C<99>.
  • Perl 5.005 is the combined product of the new dual-track development scheme.
  • =head1 Incompatible Changes
  • =head2 WARNING: This version is not binary compatible with Perl 5.004.
  • Starting with Perl 5.004_50 there were many deep and far-reaching changes to the language internals. If you have dynamically loaded extensions that you built under perl 5.003 or 5.004, you can continue to use them with 5.004, but you will need to rebuild and reinstall those extensions to use them 5.005. See L<INSTALL> for detailed instructions on how to upgrade.
  • =head2 Default installation structure has changed
  • The new Configure defaults are designed to allow a smooth upgrade from

Documentation

Appropriate format for patches to the perl source tree
Notes on handling the Perl Patch Pumpkin
Plan 9-specific documentation for Perl
Interfaces to some Win32 API Functions
Practical Extraction and Report Language
what's new for perl5.004
perl's IO abstraction interface.
Perl book information
Bag'o Object Tricks (the BOT)
Perl calling conventions from C
Perl data types
Perl debugging
what's new for perl5.005
various Perl diagnostics
Perl Data Structures Cookbook
how to embed perl in your C program
frequently asked questions about Perl ($Date: 1999/01/08 05:54:52 $)
General Questions About Perl ($Revision: 1.20 $, $Date: 1999/01/08 04:22:09 $)
Obtaining and Learning about Perl ($Revision: 1.30 $, $Date: 1998/12/29 19:43:32 $)
Programming Tools ($Revision: 1.33 $, $Date: 1998/12/29 20:12:12 $)
Data Manipulation ($Revision: 1.40 $, $Date: 1999/01/08 04:26:39 $)
Files and Formats ($Revision: 1.34 $, $Date: 1999/01/08 05:46:13 $)
Regexps ($Revision: 1.25 $, $Date: 1999/01/08 04:50:47 $)
Perl Language Issues ($Revision: 1.24 $, $Date: 1999/01/08 05:32:11 $)
System Interaction ($Revision: 1.36 $, $Date: 1999/01/08 05:36:34 $)
Networking ($Revision: 1.24 $, $Date: 1999/01/08 05:39:48 $)
Perl formats
Perl builtin functions
Perl's Internal Functions
the Perl history records
Perl interprocess communication (signals, fifos, pipes, safe subprocesses, sockets, and semaphores)
Perl locale handling (internationalization and localization)
Manipulating Lists of Lists in Perl
Perl modules (packages and symbol tables)
Installing CPAN Modules
constructing new Perl modules and finding existing ones
Perl objects
Perl operators and precedence
tutorial on opening things in Perl
plain old documentation
Writing portable Perl
Perl regular expressions
Perl references and nested data structures
Mark's very short tutorial about references
how to execute the Perl interpreter
Perl security
Perl style guide
Perl subroutines
Perl syntax
tutorial on threads in Perl
how to hide an object class in a simple variable
perl documentation table of contents
Tom's object-oriented tutorial for perl
Perl traps for the unwary
Perl predefined variables
XS language reference manual
Tutorial for XSUBs
VMS-specific documentation for Perl
Awk to Perl translator

Modules

Simple Common Gateway Interface Class
query, download and build perl modules from CPAN sites
get pathname of current working directory
utilities to replace common UNIX commands in Makefiles etc.
install files from here to there
Inventory management of installed modules
determine libraries to use and how to use them
methods to override UN*X behaviour in ExtUtils::MakeMaker
methods used by ExtUtils::MakeMaker
methods to override UN*X behaviour in ExtUtils::MakeMaker
methods to override UN*X behaviour in ExtUtils::MakeMaker
create an extension Makefile
utilities to write and check a MANIFEST file
make a bootstrap file for use by DynaLoader
write linker options files for dynamic extension
manage .packlist files
add blib/* directories to @INC
portably perform operations on file names
extended processing of command line options
Arbitrary length float math package
Arbitrary size integer math package
check a remote host for reachability
module to convert pod files to HTML
convert POD data to formatted ASCII text
Perl termcap interface
provides a simple framework for writing test scripts
run perl standard test scripts with statistics
expand and unexpand tabs per the unix expand(1) and unexpand(1)
line wrapping to form simple paragraphs
efficiently compute time from local and GMT time

Provides

in lib/AnyDBM_File.pm
in lib/AutoLoader.pm
in lib/AutoSplit.pm
B
in ext/B/B.pm
in ext/B/B/Asmdata.pm
in ext/B/B/Assembler.pm
in ext/B/B/Bblock.pm
in ext/B/B/Bytecode.pm
in ext/B/B/C.pm
in ext/B/B/CC.pm
in ext/B/B/Debug.pm
in ext/B/B/Deparse.pm
in ext/B/B/Disassembler.pm
in ext/B/B/Disassembler.pm
in ext/B/B/Lint.pm
in ext/B/B.pm
in ext/B/B/CC.pm
in ext/B/B.pm
in ext/B/B/CC.pm
in ext/B/B/Showlex.pm
in ext/B/B/Stackobj.pm
in ext/B/B/Terse.pm
in ext/B/B/Xref.pm
in lib/Benchmark.pm
in lib/Carp.pm
in lib/Class/Struct.pm
in lib/Class/Struct.pm
in lib/Devel/SelfStubber.pm
in lib/DirHandle.pm
in lib/Dumpvalue.pm
in lib/English.pm
Env
in lib/Env.pm
in lib/Exporter.pm
in lib/ExtUtils/Embed.pm
in vms/ext/XSSymSet.pm
in lib/Fatal.pm
in ext/Fcntl/Fcntl.pm
in lib/File/Basename.pm
in lib/File/CheckTree.pm
in lib/File/Compare.pm
in lib/File/Copy.pm
in lib/File/DosGlob.pm
in lib/File/Find.pm
in lib/File/Path.pm
in lib/File/stat.pm
in lib/FileCache.pm
in lib/FileHandle.pm
in lib/FindBin.pm
in ext/GDBM_File/GDBM_File.pm
in lib/Getopt/Std.pm
in lib/I18N/Collate.pm
IO
in ext/IO/IO.pm
in ext/IO/lib/IO/File.pm
in ext/IO/lib/IO/Handle.pm
in ext/IO/lib/IO/Pipe.pm
in ext/IO/lib/IO/Pipe.pm
in ext/IO/lib/IO/Seekable.pm
in ext/IO/lib/IO/Select.pm
in ext/IO/lib/IO/Socket.pm
in ext/IO/lib/IO/Socket.pm
in ext/IO/lib/IO/Socket.pm
in ext/IPC/SysV/Msg.pm
in ext/IPC/SysV/Msg.pm
in lib/IPC/Open2.pm
in lib/IPC/Open3.pm
in ext/IPC/SysV/Semaphore.pm
in ext/IPC/SysV/Semaphore.pm
in ext/IPC/SysV/SysV.pm
in lib/Math/Complex.pm
in lib/Math/Trig.pm
in ext/NDBM_File/NDBM_File.pm
in lib/Net/hostent.pm
in lib/Net/netent.pm
in lib/Net/protoent.pm
in lib/Net/servent.pm
O
in ext/B/O.pm
in ext/ODBM_File/ODBM_File.pm
in os2/OS2/ExtAttr/ExtAttr.pm
in os2/OS2/PrfDB/PrfDB.pm
in os2/OS2/PrfDB/PrfDB.pm
in os2/OS2/PrfDB/PrfDB.pm
in os2/OS2/Process/Process.pm
in os2/OS2/REXX/REXX.pm
in os2/OS2/REXX/REXX.pm
in os2/OS2/REXX/REXX.pm
in os2/OS2/REXX/REXX.pm
in ext/Opcode/Opcode.pm
in ext/POSIX/POSIX.pm
in ext/POSIX/POSIX.pm
in lib/Pod/Functions.pm
in ext/SDBM_File/SDBM_File.pm
in ext/Opcode/Safe.pm
in lib/Search/Dict.pm
in lib/SelectSaver.pm
in lib/SelfLoader.pm
in lib/Shell.pm
in ext/Socket/Socket.pm
in lib/Symbol.pm
in lib/Sys/Hostname.pm
in lib/Sys/Syslog.pm
in lib/Term/Complete.pm
in lib/Term/ReadLine.pm
in lib/Term/ReadLine.pm
in lib/Term/ReadLine.pm
in lib/Term/ReadLine.pm
in lib/Text/Abbrev.pm
in lib/Text/ParseWords.pm
in lib/Text/Soundex.pm
in ext/Thread/Thread.pm
in ext/Thread/Thread/Queue.pm
in ext/Thread/Thread/Semaphore.pm
in ext/Thread/Thread/Signal.pm
in ext/Thread/Thread/Specific.pm
in lib/Tie/Array.pm
in lib/Tie/Handle.pm
in lib/Tie/Hash.pm
in lib/Tie/RefHash.pm
in lib/Tie/Scalar.pm
in lib/Tie/Array.pm
in lib/Tie/Hash.pm
in lib/Tie/Scalar.pm
in lib/Tie/SubstrHash.pm
in lib/Time/gmtime.pm
in lib/Time/localtime.pm
in lib/Time/tm.pm
in lib/UNIVERSAL.pm
in lib/User/grent.pm
in lib/User/pwent.pm
in vms/ext/DCLsym/DCLsym.pm
in vms/ext/Filespec.pm
in vms/ext/Stdio/Stdio.pm
in vms/ext/Stdio/Stdio.pm
in ext/attrs/attrs.pm
in lib/autouse.pm
in lib/base.pm
in lib/blib.pm
in lib/constant.pm
in lib/diagnostics.pm
in lib/fields.pm
in lib/integer.pm
in lib/less.pm
lib
in lib/lib.pm
in lib/locale.pm
ops
in ext/Opcode/ops.pm
in lib/overload.pm
re
in ext/re/re.pm
in lib/sigtrap.pm
in lib/strict.pm
in lib/subs.pm
in lib/vars.pm
in vms/ext/vmsish.pm