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

NAME

PerlUtil - a C++ utility class for Perl/Symbian

SYNOPSIS

// in your App.mmp
USERINCLUDE	\symbian\perl\x.y.z\include
LIBRARY	perlXYZ.lib

// in your App
#include "PerlUtil.h" // includes also EXTERN.h and perl.h

// Static methods for moving between Perl strings (SvPV)
// and Symbian strings (HBufC and TDes).

static SV*      newSvPVfromTDesC8(const TDesC8& aDes);
static void     setSvPVfromTDesC8(SV* sv, const TDesC8& aDes);
static HBufC8*  newHBufC8fromSvPV(SV* sv);
static void     setTDes8fromSvPV(TDes8* aDes8, SV* sv);

static SV*      newSvPVfromTDesC16(const TDesC16& aDes);
static void     setSvPVfromTDesC16(SV* sv, const TDesC16& aDes);
static HBufC16* newHBufC16fromSvPV(SV* sv);
static void     setTDes16fromSvPV(TDes16* aDes16, SV* sv);

static HBufC8*  newHBufC8fromPVn(const U8* s, STRLEN n);
static void     setTDes8fromPVn(TDes8* aDes8, const U8* s, STRLEN n);
static HBufC16* newHBufC16fromPVn(const U8* s, STRLEN n, bool utf8);
static void  setTDes16fromPVn(TDes16* aDes16, const U8* s, STRLEN n);

// An example

const U8* s = (const U8 *)"foo";
HBufC16* b = PerlUtil::newHBufC16fromPVn(s, 3, 0);
someCallWithConstTDesCRefArgument(*b);
delete b;