Security Advisories (19)
CVE-2016-6185 (2016-08-02)

The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which might allow local users to execute arbitrary code via a Trojan horse library under the current working directory.

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-6798 (2018-04-17)

An issue was discovered in Perl 5.22 through 5.26. Matching a crafted locale dependent regular expression can cause a heap-based buffer over-read and potentially information disclosure.

CVE-2018-6797 (2018-04-17)

An issue was discovered in Perl 5.18 through 5.26. A crafted regular expression can cause a heap-based buffer overflow, with control over the bytes written.

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-2017-12883 (2017-09-19)

Buffer overflow in the S_grok_bslash_N function in regcomp.c in Perl 5 before 5.24.3-RC1 and 5.26.x before 5.26.1-RC1 allows remote attackers to disclose sensitive information or cause a denial of service (application crash) via a crafted regular expression with an invalid '\\N{U+...}' escape.

CVE-2017-12837 (2017-09-19)

Heap-based buffer overflow in the S_regatom function in regcomp.c in Perl 5 before 5.24.3-RC1 and 5.26.x before 5.26.1-RC1 allows remote attackers to cause a denial of service (out-of-bounds write) via a regular expression with a '\\N{}' escape and the case-insensitive modifier.

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-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-2025-40909 (2025-05-30)

Perl threads have a working directory race condition where file operations may target unintended paths. If a directory handle is open at thread creation, the process-wide current working directory is temporarily changed in order to clone that handle for the new thread, which is visible from any third (or more) thread already running. This may lead to unintended operations such as loading code or accessing files from unexpected locations, which a local attacker may be able to exploit. The bug was introduced in commit 11a11ecf4bea72b17d250cfb43c897be1341861e and released in Perl version 5.13.6

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.

NAME

perldelta - what is new for perl v5.23.5

DESCRIPTION

This document describes differences between the 5.23.4 release and the 5.23.5 release.

If you are upgrading from an earlier release such as 5.23.3, first read perl5234delta, which describes differences between 5.23.3 and 5.23.4.

Performance Enhancements

  • Faster addition, subtraction and multiplication.

    Since 5.8.0, arithmetic became slower due to the need to support 64-bit integers. To deal with 64-bit integers, a lot more corner cases need to be checked, which adds time. We now detect common cases where there is no need to check for those corner cases, and special-case them.

  • Faster preincrement, predecrement, postincrement, postdecrement.

    By internally splitting the functions which handled multiple cases into different functions.

Modules and Pragmata

Updated Modules and Pragmata

  • arybase has been upgraded from version 0.10 to 0.11.

  • B has been upgraded from version 1.60 to 1.61.

  • base has been upgraded from version 2.22 to 2.22_01.

    Better handling of attempts to load non-existent modules. Improvements to fields.pm documentation. base now requires v5.8.0.

  • Carp has been upgraded from version 1.37 to 1.38.

    Improvements when working with older perls.

  • Config::Perl::V has been upgraded from version 0.24 to 0.25.

  • Devel::Peek has been upgraded from version 1.22 to 1.23.

  • Dumpvalue has been upgraded from version 1.17 to 1.18.

  • DynaLoader has been upgraded from version 1.35 to 1.36.

  • fields has been upgraded from version 2.17 to 2.22_01.

  • File::Find has been upgraded from version 1.31 to 1.32.

    Handles empty directory lists.

  • File::Spec has been upgraded from version 3.58 to 3.59.

  • Getopt::Long has been upgraded from version 2.47 to 2.48.

    Fixes an issue with gnu_compat

  • Hash::Util::FieldHash has been upgraded from version 1.17 to 1.18.

  • IPC::Open3 has been upgraded from version 1.19 to 1.20.

    Include the error message on exec() failure.

  • Math::BigInt has been upgraded from version 1.999704 to 1.999710.

  • Math::BigInt::FastCalc has been upgraded from version 0.34 to 0.37.

  • Module::CoreList has been upgraded from version 5.20151020 to 5.20151120.

  • Module::Metadata has been upgraded from version 1.000029 to 1.000030.

    Temp dirs cleaned up during tests. More accurately mark tests as TODO, so as to have a quieter and less confusing test run without passing TODO tests.

  • PerlIO::encoding has been upgraded from version 0.22 to 0.23.

  • PerlIO::mmap has been upgraded from version 0.014 to 0.015.

  • PerlIO::scalar has been upgraded from version 0.23 to 0.24.

  • PerlIO::via has been upgraded from version 0.15 to 0.16.

  • Pod::Simple has been upgraded from version 3.30 to 3.32.

    Switched debugging output from STDOUT to STDERR.

    Added errata_seen() to make POD errors easily accessible.

    Simplified the detection of case-insensitivity in Pod::Simple::Search.

    Fixed Use of uninitialized value $1 in lc warning in Pod::Simple::Search.

    If @INC includes the current directory symbol, ., the survey() method of Pod::Simple::Search no longer excludes it from its list of directories to search. Instead, The survey() and find() methods now both exclude duplicate directories from @INC (RT #102344).

    Moved source repository and updated links to new perl-pod GitHub organization: https://github.com/perl-pod/pod-simple.

    Improved repository links and added GitHub issue tracking link to the distribution metadata.

    Switched from File::Spec's catdir to catfile for path names, to fix failures on VMS. Also now use Unix path semantics where they're not required to be platform-specific. (RT #105511).

    Improved the example use of the html_encode_chars() method in the Pod::Simple::XHTML documentation.

  • POSIX has been upgraded from version 1.58 to 1.59.

  • Thread::Queue has been upgraded from version 3.06 to 3.07.

  • threads has been upgraded from version 2.03 to 2.04.

  • threads::shared has been upgraded from version 1.48 to 1.49.

  • Tie::Scalar has been upgraded from version 1.03 to 1.04.

  • Time::HiRes has been upgraded from version 1.9727_02 to 1.9728.

  • Time::Piece has been upgraded from version 1.30 to 1.31.

  • Unicode::Normalize has been upgraded from version 1.21 to 1.23.

  • XSLoader has been upgraded from version 0.20 to 0.21.

Diagnostics

The following additions or changes have been made to diagnostic output, including warnings and fatal error messages. For the complete list of diagnostic messages, see perldiag.

New Diagnostics

New Errors

Changes to Existing Diagnostics

  • When running out of memory during an attempt the increase the stack size, previously, perl would die using the cryptic message panic: av_extend_guts() negative count (-9223372036854775681). This has been fixed to show the prettier message: Out of memory during stack extend

Configuration and Compilation

  • Configure now acts as if the -O option is always passed, allowing command line options to override saved configuration. This should eliminate confusion when command line options are ignored for no obvious reason. -O is now permitted, but ignored.

  • Some filesystem stat symbols which were not used by the Perl core were removed in an earlier commit. However, since these symbols turned out to be used by at least one CPAN module, these symbols have been restored.

  • PPPort.so/PPPort.dll no longer get installed, as they are not used by PPPort.pm, only by its test files.

  • It is now possible to specify which compilation date to show on perl -V output, by setting the macro PERL_BUILD_DATE.

Platform Support

Platform-Specific Notes

Win32

Win32 does now a parallel build with C++.

Tru64

Workaround where Tru64 balks when prototypes are listed as PERL_STATIC_INLINE, but where the test is build with -DPERL_NO_INLINE_FUNCTIONS.

Internal Changes

  • sv_ref() is now part of the API.

Selected Bug Fixes

  • \b{sb} works much better. In Perl v5.22.0, this new construct didn't seem to give the expected results, yet passed all the tests in the extensive suite furnished by Unicode. It turns out that it was because these were short input strings, and the failures had to do with longer inputs. This was fixed in Perl 5.23.4, but the improvement was not noticed until after that was released, so is included here now.

  • Certain syntax errors in "Extended Bracketed Character Classes" in perlrecharclass caused panics instead of the proper error message. This has now been fixed. [perl #126481]

  • An earlier commit added a message when a quantifier in a regular expression was useless, but then caused the parser to skip it; this caused the surplus quantifier to be silently ignored, instead of throwing an error. This is now fixed. [perl #126253]

  • The switch to building non-XS modules last in win32/makefile.mk (introduced by design as part of the changes to enable parallel building) caused the build of POSIX to break due to problems with the version module. This is now fixed.

  • Improved parsing of hex float constants.

  • Fixed an issue with pack where pack "H" (and pack "h") could read past the source when given a non-utf8 source, and a utf8 target. [perl #126325]

  • Fixed several cases where perl would abort due to a segmentation fault, or a C-level assert. [perl #126615], [perl #126602], [perl #126193].

Acknowledgements

Perl 5.23.5 represents approximately 4 weeks of development since Perl 5.23.4 and contains approximately 12,000 lines of changes across 290 files from 23 authors.

Excluding auto-generated files, documentation and release tools, there were approximately 6,400 lines of changes to 180 .pm, .t, .c and .h files.

Perl continues to flourish into its third decade thanks to a vibrant community of users and developers. The following people are known to have contributed the improvements that became Perl 5.23.5:

Aaron Crane, Abigail, Chris 'BinGOs' Williams, Craig A. Berry, Dagfinn Ilmari Mannsåker, Daniel Dragan, David Mitchell, Dr.Ruud, H.Merijn Brand, Ivan Pozdeev, James E Keenan, Jarkko Hietaniemi, Jerry D. Hedden, Karen Etheridge, Karl Williamson, Lukas Mai, Mohammed El-Afifi, Niko Tyni, Peter Rabbitson, Reini Urban, Ricardo Signes, Steve Hay, Tony Cook.

The list above is almost certainly incomplete as it is automatically generated from version control history. In particular, it does not include the names of the (very much appreciated) contributors who reported issues to the Perl bug tracker.

Many of the changes included in this version originated in the CPAN modules included in Perl's core. We're grateful to the entire CPAN community for helping Perl to flourish.

For a more complete list of all of Perl's historical contributors, please see the AUTHORS file in the Perl source distribution.

Reporting Bugs

If you find what you think is a bug, you might check the articles recently posted to the comp.lang.perl.misc newsgroup and the perl bug database at https://rt.perl.org/ . There may also be information at http://www.perl.org/ , the Perl Home Page.

If you believe you have an unreported bug, please run the perlbug program included with your release. Be sure to trim your bug down to a tiny but sufficient test case. Your bug report, along with the output of perl -V, will be sent off to perlbug@perl.org to be analysed by the Perl porting team.

If the bug you are reporting has security implications, which make it inappropriate to send to a publicly archived mailing list, then please send it to perl5-security-report@perl.org. This points to a closed subscription unarchived mailing list, which includes all the core committers, who will be able to help assess the impact of issues, figure out a resolution, and help co-ordinate the release of patches to mitigate or fix the problem across all platforms on which Perl is supported. Please only use this address for security issues in the Perl core, not for modules independently distributed on CPAN.

SEE ALSO

The Changes file for an explanation of how to view exhaustive details on what changed.

The INSTALL file for how to build Perl.

The README file for general stuff.

The Artistic and Copying files for copyright information.