Perl yaml syck: CWE-122 Heap-based Buffer Overflow in TODDR YAML::Syck (CVE-2026-4177)
CVE-2026-4177 is a critical heap-based buffer overflow vulnerability in YAML::Syck versions through 1.36 for Perl. The flaw occurs when class names exceed the initial 512-byte allocation in the YAML emitter. Additional issues include a base64 decoder reading past buffer ends on trailing newlines, corruption of shared node data due to strtok mutating type IDs, and a memory leak when adding anchors to nodes that already have one. Red Hat has issued security advisories and updates addressing these vulnerabilities.
AI Analysis
Technical Summary
YAML::Syck versions up to 1.36 for Perl contain multiple security vulnerabilities, notably a high-severity heap buffer overflow triggered when class names exceed a 512-byte buffer allocation during YAML emission. Other vulnerabilities include a base64 decoder that may read beyond buffer boundaries on trailing newlines, in-place mutation of node type IDs corrupting shared data, and a memory leak in the anchor handling function when duplicate anchors are added. These issues can lead to denial of service or potential memory corruption. Red Hat has released security updates for their Extended Life Cycle Support 7 distributions to address these flaws.
Potential Impact
The heap buffer overflow vulnerability can lead to application crashes or potentially arbitrary code execution due to memory corruption. The base64 decoder flaw and strtok mutation can cause data corruption or instability. The memory leak may degrade system performance over time. The CVSS score of 9.1 indicates critical severity with network attack vector, low attack complexity, no privileges required, no user interaction, and high impact on confidentiality and availability.
Mitigation Recommendations
Red Hat has released official security updates for perl-YAML-Syck in Red Hat Enterprise Linux 7 Extended Life Cycle Support to fix these vulnerabilities. Users should apply these updates promptly. The vendor advisory does not indicate that no action is required or that the issue is already mitigated without updates. Patch status is confirmed by Red Hat advisories RHSA-2026:6470 and RHSA-2026:8311. No cloud service is involved; remediation requires applying vendor patches.
Perl yaml syck: CWE-122 Heap-based Buffer Overflow in TODDR YAML::Syck (CVE-2026-4177)
Description
CVE-2026-4177 is a critical heap-based buffer overflow vulnerability in YAML::Syck versions through 1.36 for Perl. The flaw occurs when class names exceed the initial 512-byte allocation in the YAML emitter. Additional issues include a base64 decoder reading past buffer ends on trailing newlines, corruption of shared node data due to strtok mutating type IDs, and a memory leak when adding anchors to nodes that already have one. Red Hat has issued security advisories and updates addressing these vulnerabilities.
CVSS v3.1
Score 9.1critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
YAML::Syck versions up to 1.36 for Perl contain multiple security vulnerabilities, notably a high-severity heap buffer overflow triggered when class names exceed a 512-byte buffer allocation during YAML emission. Other vulnerabilities include a base64 decoder that may read beyond buffer boundaries on trailing newlines, in-place mutation of node type IDs corrupting shared data, and a memory leak in the anchor handling function when duplicate anchors are added. These issues can lead to denial of service or potential memory corruption. Red Hat has released security updates for their Extended Life Cycle Support 7 distributions to address these flaws.
Potential Impact
The heap buffer overflow vulnerability can lead to application crashes or potentially arbitrary code execution due to memory corruption. The base64 decoder flaw and strtok mutation can cause data corruption or instability. The memory leak may degrade system performance over time. The CVSS score of 9.1 indicates critical severity with network attack vector, low attack complexity, no privileges required, no user interaction, and high impact on confidentiality and availability.
Mitigation Recommendations
Red Hat has released official security updates for perl-YAML-Syck in Red Hat Enterprise Linux 7 Extended Life Cycle Support to fix these vulnerabilities. Users should apply these updates promptly. The vendor advisory does not indicate that no action is required or that the issue is already mitigated without updates. Patch status is confirmed by Red Hat advisories RHSA-2026:6470 and RHSA-2026:8311. No cloud service is involved; remediation requires applying vendor patches.
Technical Details
- Gcve Source
- db.gcve.eu
- Csaf Category
- csaf_security_advisory
- Csaf Version
- 2.0
- Publisher
- Red Hat Product Security
- Advisory Id
- RHSA-2026:6470
- Cve Count
- 1
- Additional Cves
- []
- Cvss Version
- null
Threat ID: 6a4049d727e9c7971982e430
Added to database: 06/27/2026, 22:08:23 UTC
Last enriched: 07/15/2026, 15:35:20 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 16
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.