Security Advisories (17)
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-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-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-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-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-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.

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

perlexperiment - A listing of experimental features in Perl

DESCRIPTION

This document lists the current and past experimental features in the perl core. Although all of these are documented with their appropriate topics, this succinct listing gives you an overview and basic facts about their status.

So far I've merely tried to find and list the experimental features and infer their inception, versions, etc. There's a lot of speculation here.

Current experiments

fork() emulation

Introduced in Perl 5.6.1

See also perlfork

Weak references

Introduced in Perl 5.6.0

Internal file glob

Introduced in Perl 5.6.0

Accepted in XXX

64-bit support

Introduced in Perl 5.005

Accepted in XXX

die accepts a reference

Introduced in Perl 5.005

Accepted in Perl XXX

Unicode support

Introduced in Perl 5.6.0

Accepted in Perl 5.8.0 XXX

-Dusemultiplicity -Dusethreads

Introduced in Perl 5.6.0

Long Doubles Still Don't Work In Solaris

Introduced in Perl 5.7.0

GetOpt::Long Options can now take multiple values at once (experimental)

Getopt::Long upgraded to version 2.35

Removed in Perl 5.8.8

5.005-style threading

Introduced in Perl 5.005

Removed in Perl 5.10 XXX

Test::Harness::Straps

Removed in Perl 5.10.1

perlcc

Introduced in Perl 5.005

Removed in Perl 5.9.0

our can now have an experimental optional attribute unique

Introduced in Perl 5.8.0

Deprecated in Perl 5.10.0

Assertions

The -A command line switch

Introduced in Perl 5.9.0

Removed in Perl 5.9.5

Linux abstract Unix domain sockets

Introduced in Perl 5.9.2

See also Socket

Pod::HTML2Pod
Pod::PXML
threads
The <:pop> IO pseudolayer

See also perlrun

The <:win32> IO pseudolayer

See also perlrun

MLDBM

See also perldsc

internal functions with M flag

See also perlguts

lex_start API

Introduced in Perl 5.13.7

internal API for %H

Introduced in Perl 5.13.7

See also cophh_ in perlapi.

av_create_and_push
av_create_and_unshift_one
av_create_and_unshift_one
PL_keyword_plugin
hv_iternext_flags
lex_bufutf8
lex_discard_to
lex_grow_linestr
lex_next_chunk
lex_peek_unichar
lex_read_space
lex_read_to
lex_read_unichar
lex_stuff_pv
lex_stuff_pvn
lex_stuff_pvs
lex_stuff_sv
lex_unstuff
parse_fullstmt
parse_stmtseq
PL_parser->bufend
PL_parser->bufptr
PL_parser->linestart
PL_parser->linestr
Perl_signbit
pad_findmy
sv_utf8_decode
sv_utf8_downgrade
bytes_from_utf8
bytes_to_utf8
utf8_to_bytes
DB module

Introduced in Perl 5.6.0

See also perldebug, perldebtut

The pseudo-hash data type

Introduced in Perl 5.6.0

Lvalue subroutines

Introduced in Perl 5.6.0

See also perlsub

There is an installhtml target in the Makefile.
Unicode in Perl on EBCDIC
(?{code})

See also perlre

(??{ code })

See also perlre

Backtracking control verbs

(*ACCEPT)

Introduced in: Perl 5.10

See also: "Special Backtracking Control Verbs" in perlre

Code expressions, conditional expressions, and independent expressions in regexes
The \N regex character class

The \N character class, not to be confused with the named character sequence \N{NAME}, denotes any non-newline character in a regular expression.

Introduced in: Perl 5.12

See also:

gv_try_downgrade

See also perlintern

Experimental Support for Sun Studio Compilers for Linux OS

See also perllinux

Pluggable keywords

See "PL_keyword_plugin" in perlapi for the mechanism.

Introduced in: Perl 5.11.2

Accepted features

These features were so wildly successful and played so well with others that we decided to remove their experimental status and admit them as full, stable features in the world of Perl, lavishing all the benefits and luxuries thereof. They are also awarded +5 Stability and +3 Charisma.

(none yet identified)

Removed features

These features are no longer considered experimental and their functionality has disappeared. It's your own fault if you wrote production programs using these features after we explicitly told you not to (see perlpolicy).

legacy

The experimental legacy pragma was swallowed by the feature pragma.

Introduced in: 5.11.2

Removed in: 5.11.3

AUTHORS

brian d foy <brian.d.foy@gmail.com>

COPYRIGHT

Copyright 2010, brian d foy <brian.d.foy@gmail.com>

LICENSE

You can use and redistribute this document under the same terms as Perl itself.