CVE-2023-47038
NixOS vulnerability analysis and mitigation

Overview

A vulnerability was discovered in perl versions 5.30.0 through 5.38.0 (CVE-2023-47038). The issue occurs when a crafted regular expression is compiled by perl, which can allow an attacker-controlled byte buffer overflow in a heap allocated buffer. The vulnerability was reported by Nathan Mills to the Perl security team (Perl Delta).

Technical details

The vulnerability is classified as a heap-based buffer overflow (CWE-122) with a CVSS v3.1 base score of 7.8 (High). The issue specifically occurs when processing illegal user-defined Unicode properties in regular expressions. A proof of concept test case demonstrates the vulnerability using the command 'qr/\p{utf8::perlsurrogate}/' (Debian Bug).

Impact

The vulnerability could allow an attacker to cause a buffer overflow in a heap allocated buffer, potentially leading to code execution or system crashes. The CVSS scoring indicates high potential impact on confidentiality, integrity, and availability of the affected system (NVD).

Mitigation and workarounds

The vulnerability has been fixed in multiple perl versions through security updates. Fixed versions include perl 5.32.1-4+deb11u3 for Debian Bullseye, 5.36.0-7+deb12u1 for Debian Bookworm, and 5.38.2 for newer distributions. Users are advised to update to the patched versions available through their distribution's package management system (Debian Bug).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management