Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2020-12723

CVE-2020-12723: Perl Buffer Overflow Vulnerability

CVE-2020-12723 is a buffer overflow vulnerability in Perl caused by recursive S_study_chunk calls in regcomp.c. This article covers the technical details, affected versions, impact, and mitigation strategies.

Published: March 4, 2026

CVE-2020-12723 Overview

CVE-2020-12723 is a buffer overflow vulnerability in regcomp.c in Perl before version 5.30.3 that allows a denial of service condition via crafted regular expressions. The vulnerability occurs due to recursive S_study_chunk calls during regular expression compilation, which can be triggered by specially crafted regex patterns. This flaw enables remote attackers to cause application crashes and service disruption on systems processing untrusted regular expression input.

Critical Impact

Remote attackers can cause denial of service through crafted regular expressions, impacting applications that process user-supplied regex patterns without proper validation.

Affected Products

  • Perl versions before 5.30.3
  • NetApp OnCommand Workflow Automation
  • NetApp Snap Creator Framework
  • Fedora 31
  • openSUSE Leap 15.1
  • Oracle Communications Billing and Revenue Management 12.0.0.2.0, 12.0.0.3.0
  • Oracle Communications Diameter Signaling Router
  • Oracle Communications Eagle Application Processor
  • Oracle Communications Eagle LNP Application Processor 10.1, 10.2
  • Oracle Communications LSMS
  • Oracle Communications Offline Mediation Controller 12.0.0.3.0
  • Oracle Communications Performance Intelligence Center
  • Oracle Configuration Manager 12.1.2.0.8
  • Oracle Enterprise Manager Base Platform 13.4.0.0
  • Oracle SD-WAN Edge 8.2, 9.0, 9.1
  • Oracle Tekelec Platform Distribution

Discovery Timeline

  • 2020-06-05 - CVE-2020-12723 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-12723

Vulnerability Analysis

This buffer overflow vulnerability exists in the regular expression compilation component of Perl, specifically within the regcomp.c file. The vulnerability is classified under CWE-120 (Buffer Copy without Checking Size of Input), which represents classic buffer overflow conditions where data is copied to a buffer without adequate size verification.

The flaw manifests during the compilation phase of regular expressions when the S_study_chunk function processes complex regex patterns. Due to the recursive nature of this function, certain crafted regular expressions can trigger excessive recursion leading to a buffer overflow condition. This can result in memory corruption and ultimately cause the Perl interpreter to crash, creating a denial of service condition.

The vulnerability is particularly concerning for applications that accept and compile regular expressions from untrusted sources, such as web applications with user-supplied search patterns, log analysis tools, or content filtering systems.

Root Cause

The root cause lies in the S_study_chunk function within regcomp.c, which performs analysis and optimization of compiled regular expressions. When processing GOSUB regex elements (recursive subpattern calls), the function could mutate the regexp program during the study phase, leading to buffer boundary violations. The fix introduces a was_mutate_ok flag to prevent program mutation during GOSUB processing, ensuring that recursive calls maintain proper bounds checking.

Attack Vector

The attack vector is network-based, allowing remote exploitation without authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Submitting a specially crafted regular expression to an application that compiles user-supplied patterns
  2. The malicious regex triggers excessive recursive S_study_chunk calls during compilation
  3. The recursion causes buffer overflow, corrupting memory and crashing the Perl interpreter
  4. Applications processing the regex become unavailable, resulting in denial of service

The vulnerability affects any Perl application that processes untrusted regular expressions, including web servers, CGI scripts, and command-line tools.

c
// Security patch in embed.h - study_chunk: avoid mutating regexp program within GOSUB
// Source: https://github.com/perl/perl5/commit/66bbb51b93253a3f87d11c2695cfb7bdb782184a

#define ssc_is_cp_posixl_init	S_ssc_is_cp_posixl_init
#define ssc_or(a,b,c)		S_ssc_or(aTHX_ a,b,c)
#define ssc_union(a,b,c)	S_ssc_union(aTHX_ a,b,c)
-#define study_chunk(a,b,c,d,e,f,g,h,i,j,k)	S_study_chunk(aTHX_ a,b,c,d,e,f,g,h,i,j,k)
+#define study_chunk(a,b,c,d,e,f,g,h,i,j,k,l)	S_study_chunk(aTHX_ a,b,c,d,e,f,g,h,i,j,k,l)
#  endif
#  if defined(PERL_IN_REGCOMP_C) || defined (PERL_IN_DUMP_C)
#define _invlist_dump(a,b,c,d)	Perl__invlist_dump(aTHX_ a,b,c,d)

Source: GitHub Perl Commit 66bbb51

Detection Methods for CVE-2020-12723

Indicators of Compromise

  • Unexpected Perl interpreter crashes or segmentation faults during regex operations
  • Application crashes when processing complex or deeply nested regular expressions
  • High CPU usage followed by process termination in Perl-based services
  • Error logs showing memory corruption or buffer overflow related messages from Perl

Detection Strategies

  • Monitor Perl process stability and crash frequency, particularly in applications processing user-supplied regex patterns
  • Implement logging around regex compilation operations to identify potentially malicious patterns
  • Deploy runtime application self-protection (RASP) to detect buffer overflow attempts in Perl processes
  • Use static code analysis tools to identify applications passing untrusted input to regex compilation functions

Monitoring Recommendations

  • Configure system monitoring to alert on Perl process crashes or abnormal terminations
  • Implement rate limiting on endpoints that accept and process regular expressions
  • Review application logs for patterns indicating regex-based attack attempts
  • Monitor memory usage anomalies in Perl-based applications that may indicate exploitation attempts

How to Mitigate CVE-2020-12723

Immediate Actions Required

  • Upgrade Perl to version 5.30.3 or later on all affected systems
  • Apply vendor-specific patches for Oracle, NetApp, and other affected enterprise products
  • Implement input validation to restrict or sanitize user-supplied regular expressions
  • Consider deploying web application firewalls (WAF) to filter suspicious regex patterns

Patch Information

The vulnerability is fixed in Perl version 5.30.3 and later. The patch modifies the S_study_chunk function to include a was_mutate_ok parameter that prevents program mutation during GOSUB processing. Organizations should update to the patched version using their package manager or by compiling from source.

For detailed patch information, refer to:

  • GitHub Perl 5.30.2 to 5.30.3 Comparison
  • GitHub Perl Commit 66bbb51

Enterprise vendors have released patches through their respective security advisories, including multiple Oracle Critical Patch Updates from October 2020 through April 2022.

Workarounds

  • Avoid compiling regular expressions from untrusted user input until patches can be applied
  • Implement regex complexity limits to reject patterns that exceed safe recursion depths
  • Use regex sandboxing or timeouts to prevent resource exhaustion from malicious patterns
  • Consider using alternative regex engines with better bounds checking for untrusted input scenarios
bash
# Configuration example - Update Perl on Fedora/RHEL-based systems
sudo dnf update perl

# For Debian/Ubuntu-based systems
sudo apt-get update && sudo apt-get upgrade perl

# Verify Perl version after update (should be 5.30.3 or later)
perl -v | grep version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechPerl

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.19%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-120
  • Technical References
  • openSUSE Security Announcement

  • GitHub Perl 5.30.3 Release Notes

  • GitHub Perl Issue #16947

  • GitHub Perl Issue #17743

  • Fedora Package Announcement

  • Gentoo GLSA 202006-03

  • NetApp Security Advisory NTAP-20200611-0001
  • Vendor Resources
  • GitHub Perl 5.30.2 to 5.30.3 Comparison

  • GitHub Perl Commit 66bbb51

  • Oracle July 2021 CPU Security Alert

  • Oracle April 2021 CPU Security Alert

  • Oracle April 2022 CPU Security Alert

  • Oracle January 2021 CPU Security Alert

  • Oracle January 2022 CPU Security Alert

  • Oracle October 2020 CPU Security Alert

  • Oracle October 2021 CPU Security Alert
  • Related CVEs
  • CVE-2023-47038: Perl Buffer Overflow Vulnerability

  • CVE-2020-10543: Perl Buffer Overflow Vulnerability

  • CVE-2025-40928: JSON::XS Perl DoS Vulnerability

  • CVE-2026-40199: Net::CIDR::Lite Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English