
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-4177 is a heap-based buffer overflow vulnerability in YAML::Syck, a Perl YAML parsing and emitting library, affecting all versions through 1.36. The primary issue is a high-severity heap buffer overflow in the YAML emitter that occurs when Perl class names exceed the initial 512-byte tag buffer allocation. Additional issues include a base64 decoder out-of-bounds read on trailing newlines, strtok-induced corruption of shared node data, and a memory leak in anchor handling. Disclosed on March 16, 2026 by the CPAN Security Group (CPANSec) via the oss-security mailing list, it carries a CVSS v3.1 base score of 9.1 (Critical) (Red Hat Advisory, oss-security).
The root cause is classified as CWE-122 (Heap-based Buffer Overflow) and CWE-120 (Buffer Copy without Checking Size of Input). In emitter.c, the YAML emitter allocates a fixed 512-byte buffer for tag construction and uses strcat(tag, ref) without bounds checking; when a blessed Perl object's class name exceeds this allocation, the heap overflows. A secondary issue in the base64 decoder (emitter.c) skips whitespace characters without checking the buffer boundary (s < send), allowing reads past the end of the input buffer. In perl_syck.h, strtok() was called directly on n->type_id, mutating shared node data in place across six call sites in the parser handler; the fix replaces each with a savepv() copy. A memory leak in handler.c's syck_hdlr_add_anchor freed the incoming anchor string a on early return only after the patch was applied. The complete fix is documented in the upstream commit patch (GitHub Patch, oss-security).
Successful exploitation of the heap buffer overflow can lead to high-impact confidentiality compromise (information disclosure from heap memory) and high-impact availability compromise (denial of service or potential code execution via heap corruption), with no integrity impact reflected in the CVSS score. The vulnerability is network-accessible with no privileges or user interaction required, meaning any application that accepts and processes untrusted YAML input using YAML::Syck ≤1.36 is at risk. The strtok node data corruption issue could additionally cause unpredictable application behavior or data integrity issues during YAML parsing (Red Hat Advisory, oss-security).
strcat(tag, ref) call in emitter.c will write beyond the 512-byte heap allocation.emitter.c or heap corruption in Perl application logs.Upgrade YAML::Syck to version 1.37_01 or later, which addresses all four C-layer vulnerabilities identified in the audit (oss-security, GitHub Patch). Red Hat has issued RHSA-2026:6470 for Red Hat Enterprise Linux 8 and RHSA-2026:8311 for RHEL 7 Extended Lifecycle Support (Red Hat RHSA-2026:6470, Red Hat Bugzilla). Debian (DSA-6175-1, DLA-4525-1), Mageia (MGASA-2026-0058), Fedora, Amazon Linux 2 (ALAS2-2026-3216), AlmaLinux, and openSUSE have also released updated packages. If immediate patching is not possible, restrict network access to services that process untrusted YAML input and validate or sanitize YAML content before processing.
The vulnerability was disclosed by Timothy Legge on behalf of the CPAN Security Group (CPANSec) via the oss-security mailing list on March 16, 2026, crediting Todd Rinaldo as the finder (oss-security). The Hacker Wire published a summary article covering the heap overflow and memory issues in the YAML::Syck Perl module (The Hacker Wire). Multiple Linux distributions responded promptly with security advisories and updated packages within weeks of disclosure, reflecting the broad ecosystem impact of the vulnerability on Perl-based systems.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."