Logo
componentperl
Name
perl
Version
5.40.0-r
Type
library
Description
-
Licenses
-
PURL
-
CPE
cpe:2.3:a:perl:perl:5.40.0:*:*:*:*:*:*:*

Other Versions#


Project
Branch
Version
openwrt-25.12
5.40.0-r6

Patches#


#
Title
Author
Resolve
1
Patch #1
Unknown
2
Patch #2
Unknown
3
Patch #3
Unknown
4
Patch #4
Unknown
5
revert 88efce38149481334db7ddb932f9b74eaaa9765b
Georgi Valkov <gvalkov@gmail.com>
6
Patch #6
Unknown
7
Patch #7
Marcel Denia <naoir@gmx.net>
8
Patch #8
Unknown
9
Patch #9
Unknown
10
Patch #10
Unknown
11
Patch #11
Unknown
12
Patch #12
Unknown

Vulnerabilities#


Name
Analysis
Description
Exploitable
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.
Exploitable
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.
Exploitable
A heap buffer overflow vulnerability was discovered in Perl. Release branches 5.34, 5.36, 5.38 and 5.40 are affected, including development versions from 5.33.1 through 5.41.10. 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.