cve.bz

CVE-2020-12723 Classic Buffer Overflow

7.5 highEPSS 6.0%Fix available

High (7.5). EPSS 6.0% estimated probability of exploitation activity in the next 30 days.

On this page
regcomp.c in Perl before 5.30.3 allows a buffer overflow via a crafted regular expression because of recursive S_study_chunk calls.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
6.0% (unchanged from 6.0% a week ago; 6.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 93rd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-12723 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-12723?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-12723?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-12723 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2020-12723

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2020-12723](https://cve.bz/cve/badge/CVE-2020-12723.svg)](https://cve.bz/cve/CVE-2020-12723)

HTML:

<a href="https://cve.bz/cve/CVE-2020-12723"><img src="https://cve.bz/cve/badge/CVE-2020-12723.svg" alt="CVE-2020-12723"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
perl:perlbefore 5.30.3
fedoraproject:fedora31
opensuse:leap15.1
oracle:communications_billing_and_revenue_management12.0.0.2.0
oracle:communications_billing_and_revenue_management12.0.0.3.0
oracle:communications_diameter_signaling_routerfrom 8.0.0 through 8.5.0
oracle:communications_eagle_application_processorfrom 16.1.0 through 16.4.0
oracle:communications_eagle_lnp_application_processor10.1
oracle:communications_eagle_lnp_application_processor10.2
oracle:communications_lsmsfrom 13.1 through 13.4
oracle:communications_offline_mediation_controller12.0.0.3.0
oracle:communications_performance_intelligence_centerfrom 10.3.0.0.0 through 10.3.0.2.1
oracle:communications_performance_intelligence_centerfrom 10.4.0.1.0 through 10.4.0.3.1
oracle:configuration_manager12.1.2.0.8
oracle:enterprise_manager_base_platform13.4.0.0
oracle:sd-wan_edge8.2
oracle:sd-wan_edge9.0
oracle:sd-wan_edge9.1
oracle:tekelec_platform_distributionfrom 7.4.0 through 7.7.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14perl5.30.3-1DEBIAN-CVE-2020-12723
Ubuntu16.04:LTSperl5.22.1-9ubuntu0.9UBUNTU-CVE-2020-12723 USN-4602-1
Ubuntu18.04:LTSperl5.26.1-6ubuntu0.5UBUNTU-CVE-2020-12723 USN-4602-1
Ubuntu20.04:LTSperl5.30.0-9ubuntu0.2UBUNTU-CVE-2020-12723 USN-4602-1
UbuntuPro:14.04:LTSperl5.18.2-2ubuntu1.7+esm3UBUNTU-CVE-2020-12723 USN-4602-2
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationperl, perl-libs, perl-devel and 3 more4:5.16.3-299.el7_9RHSA-2021:0343
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationperl-CPAN0:1.9800-299.el7_9RHSA-2021:0343
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationperl-ExtUtils-CBuilder1:0.28.2.6-299.el7_9RHSA-2021:0343
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationperl-ExtUtils-Embed0:1.30-299.el7_9RHSA-2021:0343
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationperl-ExtUtils-Install0:1.58-299.el7_9RHSA-2021:0343
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationperl-IO-Zlib1:1.10-299.el7_9RHSA-2021:0343
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationperl-Locale-Maketext-Simple1:0.21-299.el7_9RHSA-2021:0343
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationperl-Module-CoreList1:2.76.02-299.el7_9RHSA-2021:0343
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationperl-Module-Loaded1:0.08-299.el7_9RHSA-2021:0343
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationperl-Object-Accessor1:0.42-299.el7_9RHSA-2021:0343
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationperl-Package-Constants1:0.02-299.el7_9RHSA-2021:0343
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationperl-Pod-Escapes1:1.04-299.el7_9RHSA-2021:0343
157 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 12 moreperl5.18.2-12.23.1SUSE-SU-2020:1662-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Module for Basesystem 15 SP1 and 6 moreperl5.26.1-7.12.1SUSE-SU-2020:1682-1
SUSELinux Enterprise Module for Package Hub 15 SP1perl5.26.1-7.12.1SUSE-SU-2020:1682-2
openSUSELeap 15.1perl5.26.1-lp151.9.6.1openSUSE-SU-2020:0850-1
openSUSETumbleweedperl5.34.0-1.1openSUSE-SU-2024:11158-1
Alpinev3.9perl5.26.3-r1ALPINE-CVE-2020-12723
Alpinev3.10perl5.28.3-r0ALPINE-CVE-2020-12723
Alpinev3.11, v3.12, v3.13 and 11 moreperl5.30.3-r0ALPINE-CVE-2020-12723

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A vulnerability in the Perl regular expression compiler affects Red Hat Enterprise Linux 7 and 8. The flaw exists in the S_study_chunk() function's handling of GOSUB opcodes during regular expression compilation. When processing untrusted regular expressions, recursive calls to S_study_chunk() can corrupt the intermediate language state, allowing an attacker to inject malicious instructions into the compiled regular expression. This network-accessible vulnerability can lead to denial of service. To mitigate, applications should not allow compilation of untrusted regular expressions. Note that this issue affects regular expression compilation, not pattern matching against untrusted input.

Red Hat's mitigation

To mitigate this flaw, developers should not allow untrusted regular expressions to be compiled by the Perl regular expression compiler.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7perl-4:5.16.3-299.el7_9Fixed 2021-02-02RHSA-2021:0343
Red Hat Enterprise Linux 7.4 Advanced Update Supportperl-4:5.16.3-292.el7_4.2Fixed 2021-04-20RHSA-2021:1266
Red Hat Enterprise Linux 7.4 Telco Extended Update Supportperl-4:5.16.3-292.el7_4.2Fixed 2021-04-20RHSA-2021:1266
Red Hat Enterprise Linux 7.4 Update Services for SAP Solutionsperl-4:5.16.3-292.el7_4.2Fixed 2021-04-20RHSA-2021:1266
Red Hat Enterprise Linux 7.6 Extended Update Supportperl-4:5.16.3-294.el7_6.1Fixed 2021-03-16RHSA-2021:0883
Red Hat Enterprise Linux 7.7 Extended Update Supportperl-4:5.16.3-294.el7_7.1Fixed 2021-03-30RHSA-2021:1032
Red Hat Enterprise Linux 8perl-4:5.26.3-417.el8_3Fixed 2021-02-16RHSA-2021:0557
Red Hat Enterprise Linux 8.2 Extended Update Supportperl-4:5.26.3-417.el8_2Fixed 2021-06-02RHSA-2021:2184
Red Hat Hardened Imagesperl-main-0.02-524.1.hum1Fixed 2026-04-10RHSA-2026:7604
Red Hat Hardened Imagesperl-main-5.42.2-524.1.hum1Fixed 2026-04-10RHSA-2026:7604
Red Hat Enterprise Linux 5perlOut of support scope
Red Hat Enterprise Linux 6perlOut of support scope
Red Hat Enterprise Linux 8perl:5.24/perlWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-12723.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON