Security Advisories (21)
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-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-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-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-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-2026-13221 (2026-07-13)

Perl versions through 5.43.9 produce silently incorrect regular expression matches when an alternation of more than 65535 fixed string branches is compiled into a trie in Perl_study_chunk. When such branches are combined into a trie, the delta between the first branch and the shared tail is stored in a 16-bit field. A branch count above 65535 overflows the field, and the trie's match decision table is truncated with no warning or error. A pattern of this shape produces false positive matches (matching strings it should not) and false negative matches (failing to match strings it should). When such a pattern gates an access or filtering decision, the result is wrong.

CVE-2026-4176 (2026-03-29)

Perl versions from 5.9.4 before 5.40.4-RC1, from 5.41.0 before 5.42.2-RC1, from 5.43.0 before 5.43.9 contain a vulnerable version of Compress::Raw::Zlib. Compress::Raw::Zlib is included in the Perl package as a dual-life core module, and is vulnerable to CVE-2026-3381 due to a vendored version of zlib which has several vulnerabilities, including CVE-2026-27171. The bundled Compress::Raw::Zlib was updated to version 2.221 in Perl blead commit c75ae9cc164205e1b6d6dbd57bd2c65c8593fe94.

CVE-2026-57432 (2026-07-13)

Perl versions through 5.43.10 have an integer overflow in S_measure_struct leading to an out-of-bounds heap read in pack and unpack. S_measure_struct adds each item's size times its repeat count to a running total with no overflow check, so a large repeat count in a pack or unpack template wraps the signed SSize_t total negative. The @, X, and x position codes then guard their moves with a signed length comparison that passes when the length is negative, advancing the buffer pointer out of bounds. A template derived from untrusted input can read heap memory past the buffer and return it to the caller.

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-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-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-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-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-2026-8376 (2026-05-25)

Perl versions through 5.43.10 have a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds. Perl_study_chunk in regcomp_study.c checked the size of the joined substring buffer in characters rather than bytes. For a quantified fixed substring with a large minimum count, the byte length mincount * l could overflow SSize_t, producing an undersized SvGROW allocation; the subsequent copy writes past the end of the buffer. A caller that compiles an attacker-controlled regular expression on a 32-bit perl build triggers a heap buffer overflow at compile time.

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-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-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-2017-12814 (2017-09-28)

Stack-based buffer overflow in the CPerlHost::Add method in win32/perlhost.h in Perl before 5.24.3-RC1 and 5.26.x before 5.26.1-RC1 on Windows allows attackers to execute arbitrary code via a long environment variable.

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.

NAME

corelist - a commandline frontend to Module::CoreList

DESCRIPTION

See Module::CoreList for one.

SYNOPSIS

corelist -v
corelist [-a|-d] <ModuleName> | /<ModuleRegex>/ [<ModuleVersion>] ...
corelist [-v <PerlVersion>] [ <ModuleName> | /<ModuleRegex>/ ] ...
corelist [-r <PerlVersion>] ...
corelist --feature <FeatureName> [<FeatureName>] ...
corelist --diff PerlVersion PerlVersion
corelist --upstream <ModuleName>

OPTIONS

-a

lists all versions of the given module (or the matching modules, in case you used a module regexp) in the perls Module::CoreList knows about.

corelist -a Unicode

Unicode was first released with perl v5.6.2
  v5.6.2     3.0.1
  v5.8.0     3.2.0
  v5.8.1     4.0.0
  v5.8.2     4.0.0
  v5.8.3     4.0.0
  v5.8.4     4.0.1
  v5.8.5     4.0.1
  v5.8.6     4.0.1
  v5.8.7     4.1.0
  v5.8.8     4.1.0
  v5.8.9     5.1.0
  v5.9.0     4.0.0
  v5.9.1     4.0.0
  v5.9.2     4.0.1
  v5.9.3     4.1.0
  v5.9.4     4.1.0
  v5.9.5     5.0.0
  v5.10.0    5.0.0
  v5.10.1    5.1.0
  v5.11.0    5.1.0
  v5.11.1    5.1.0
  v5.11.2    5.1.0
  v5.11.3    5.2.0
  v5.11.4    5.2.0
  v5.11.5    5.2.0
  v5.12.0    5.2.0
  v5.12.1    5.2.0
  v5.12.2    5.2.0
  v5.12.3    5.2.0
  v5.12.4    5.2.0
  v5.13.0    5.2.0
  v5.13.1    5.2.0
  v5.13.2    5.2.0
  v5.13.3    5.2.0
  v5.13.4    5.2.0
  v5.13.5    5.2.0
  v5.13.6    5.2.0
  v5.13.7    6.0.0
  v5.13.8    6.0.0
  v5.13.9    6.0.0
  v5.13.10   6.0.0
  v5.13.11   6.0.0
  v5.14.0    6.0.0
  v5.14.1    6.0.0
  v5.15.0    6.0.0
-d

finds the first perl version where a module has been released by date, and not by version number (as is the default).

--diff

Given two versions of perl, this prints a human-readable table of all module changes between the two. The output format may change in the future, and is meant for humans, not programs. For programs, use the Module::CoreList API.

-? or -help

help! help! help! to see more help, try --man.

-man

all of the help

-v

lists all of the perl release versions we got the CoreList for.

If you pass a version argument (value of $], like 5.00503 or 5.008008), you get a list of all the modules and their respective versions. (If you have the version module, you can also use new-style version numbers, like 5.8.8.)

In module filtering context, it can be used as Perl version filter.

-r

lists all of the perl releases and when they were released

If you pass a perl version you get the release date for that version only.

--feature, -f

lists the first version bundle of each named feature given

--upstream, -u

Shows if the given module is primarily maintained in perl core or on CPAN and bug tracker URL.

As a special case, if you specify the module name Unicode, you'll get the version number of the Unicode Character Database bundled with the requested perl versions.

EXAMPLES

$ corelist File::Spec

File::Spec was first released with perl 5.005

$ corelist File::Spec 0.83

File::Spec 0.83 was released with perl 5.007003

$ corelist File::Spec 0.89

File::Spec 0.89 was not in CORE (or so I think)

$ corelist File::Spec::Aliens

File::Spec::Aliens  was not in CORE (or so I think)

$ corelist /IPC::Open/

IPC::Open2 was first released with perl 5

IPC::Open3 was first released with perl 5

$ corelist /MANIFEST/i

ExtUtils::Manifest was first released with perl 5.001

$ corelist /Template/

/Template/  has no match in CORE (or so I think)

$ corelist -v 5.8.8 B

B                        1.09_01

$ corelist -v 5.8.8 /^B::/

B::Asmdata               1.01
B::Assembler             0.07
B::Bblock                1.02_01
B::Bytecode              1.01_01
B::C                     1.04_01
B::CC                    1.00_01
B::Concise               0.66
B::Debug                 1.02_01
B::Deparse               0.71
B::Disassembler          1.05
B::Lint                  1.03
B::O                     1.00
B::Showlex               1.02
B::Stackobj              1.00
B::Stash                 1.00
B::Terse                 1.03_01
B::Xref                  1.01

COPYRIGHT

Copyright (c) 2002-2007 by D.H. aka PodMaster

Currently maintained by the perl 5 porters <perl5-porters@perl.org>.

This program is distributed under the same terms as perl itself. See http://perl.org/ or http://cpan.org/ for more info on that.