7.8

CVE-2023-47039: perl Heap-based Buffer Overflow

CVSS: 7.8v3.1HighModified
AliasesUBUNTU-CVE-2023-47039
Published 02-01-2024Last modified 20-11-2025

Vulnerability summary

CVE-2023-47039 is a high (CVSS 7.8) Heap-based Buffer Overflow vulnerability in perl. EPSS estimates a 0.42% chance of exploitation in the next 30 days, higher than 34.8% of scored vulnerabilities.

Overall risk
31/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.42%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 02-01-2024
    PublishedVulnerability first disclosed.
  2. 20-11-2025
    Last modifiedVulnerability information updated.

Description

A vulnerability was found in Perl. This security issue occurs while Perl for Windows relies on the system path environment variable to find the shell (`cmd.exe`). When running an executable that uses the 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. This flaw allows an attacker with limited privileges to place`cmd.exe` in locations with weak permissions, such as `C:\ProgramData`. By doing so, arbitrary code can be executed when an administrator attempts to use this executable from these compromised locations.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.42%

Chance of exploitation in the next 30 days

Percentile

35%

Versus all other CVEs

30-day change

0.00 pp

From 0.42% on 21-09-2026

21-09-202621-10-2026
EPSS score
0.42%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Ubuntu2 products
  • perlAll versions (No fix recorded)
  • perl6All versions (No fix recorded)
Perl1 product

2 vendors · 3 products

References

7 links