Skip to main content

YAML::Syck CVE-2026-57076

| EUVDEUVD-2026-45055 HIGH
Use After Free (CWE-416)
2026-07-16 CPANSec GHSA-q6x2-vfpr-9j7p
7.8
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply untrusted YAML with a redefined anchor
  2. Delivery
    App calls Load/LoadFile on default path
  3. Exploit
    Old node freed, freeing shared anchors-table key
  4. Execution
    Redefinition triggers st_delete key comparison
  5. Persist
    st_strcmp reads freed heap memory
  6. Impact
    Crash or heap information exposure

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The application must call YAML::Syck::Load or LoadFile on an attacker-controlled YAML document that reuses/redefines an already-declared anchor name (e.g. two '&a' declarations in one document). Anchors are a standard YAML feature reached on the default Load path, so no special parser flags, options, or non-default configuration are required, and no authentication is needed to craft the document. What LIMITS exploitation: the attacker must control the document that gets parsed; the impact is a use-after-free READ rather than a controlled write, and on a normal (non-AddressSanitizer) build the freed read frequently does not crash - Load() often just returns - so observable damage is typically limited to instability or possible heap-memory exposure rather than reliable code execution. Only versions before 1.47 are affected.

Impact

Signals are mixed and should temper the raw 7.8 (HIGH) score. NVD's vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H rates local vector, low privileges, and full CIA impact, but the description contradicts the impact rating: the flaw is a read of freed heap memory via a string comparison, and the project's own guidance notes that on a normal (non-ASan) build the direct Load() 'just returns' - the defect is largely silent and only reliably aborts under AddressSanitizer. That makes the practical worst case a potential crash or limited heap information exposure rather than the confirmed high-integrity/high-availability compromise the vector implies - verify real impact with the vendor before treating it as RCE-class. The AV:L/PR:L choice is also questionable: exploitation needs no authentication and is driven purely by attacker-controlled document content, which commonly arrives over the network in real deployments, so network-reachable exposure is plausible. No EPSS score was provided, there is no CISA KEV entry (no confirmed active exploitation), and while proof-of-concept trigger inputs are public via the CPANSec/oss-security disclosure, no weaponized exploit is known. Net: a real memory-safety defect worth patching, but currently lower real-world risk than the HIGH label suggests, and the affected library has a modest footprint.

Exploit ScenarioDerived

An attacker submits a YAML document to a Perl service that deserializes user input with YAML::Syck::Load - for example a web API, config importer, or job queue - where the document declares an anchor and then redefines it (e.g. '- &a x\n&a y'). Parsing frees the first node and its shared anchor-table key, and the redefinition's key comparison then reads freed heap memory, causing a potential crash or limited heap-content exposure. Public proof-of-concept trigger inputs from the CPANSec disclosure make reproduction trivial, though reliable exploitation beyond a crash would require heap grooming.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 17, 2026

Heap use-after-free in YAML::Syck for Perl before version 1.47 lets a crafted YAML document corrupt parser memory when it redefines a previously declared anchor. The bug lives in the bundled libsyck C code (syck_hdlr_add_anchor), where an anchor name string is shared between a node's node->anchor field and the parser's anchors-table key; freeing the node frees the shared key, and a subsequent anchor redefinition makes st_delete/st_strcmp compare against freed heap memory. Any Perl application that calls Load or LoadFile on untrusted YAML is affected on the default code path (anchors need no special flags). Reported by CPANSec and disclosed via oss-security; publicly documented proof-of-concept trigger inputs exist, but there is no CISA KEV listing and no evidence of active exploitation.

RemediationAI

Vendor-released patch: YAML::Syck 1.47 - upgrade to 1.47 or later from CPAN, which is the primary and complete fix (commit 44c90a109ec3215ee7ce747bd11209835e123d8b, https://github.com/toddr/YAML-Syck/commit/44c90a109ec3215ee7ce747bd11209835e123d8b.patch; changelog https://metacpan.org/release/TODDR/YAML-Syck-1.47/changes). Rebuild or repackage any application that statically bundles libsyck so the fixed C code is actually shipped, not just the CPAN metadata. Where immediate upgrade is not possible, the actionable compensating control is to stop passing untrusted input to YAML::Syck::Load/LoadFile: route attacker-controlled documents through a memory-safe parser (YAML::PP is pure Perl) or validate/reject documents that redefine an anchor name before parsing - the trade-off is added latency and the loss of YAML::Syck's speed, and pre-parsing to detect duplicate anchors is itself non-trivial. If the module is only used for trusted internal data, restrict which code paths can reach it and ensure no network-facing endpoint feeds it user-supplied YAML. See the oss-security advisory (https://seclists.org/oss-sec/2026/q3/160) and VulDB entry (https://vuldb.com/vuln/379672) for disclosure detail.

Affected VersionsENISA

YAML::Syck 0 <1.47

Affected Packages

euvd yaml_syck fix: 1.47

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

YAML::Syck is a Perl XS binding around the legacy libsyck C YAML/JSON parser (CPE cpe:2.3:a:toddr:yaml::syck). YAML anchors (&name) and aliases (*name) are a standard serialization feature used to reference repeated nodes; the parser stores each anchor in an internal st_table (anchors) keyed by the anchor name. The root cause is CWE-416 (Use After Free): the anchor name is allocated once by syck_strndup and stored in two places with overlapping lifetimes - as node->anchor (freed with the node) and as the anchors-table key. When an anchor is redefined, the old node is freed, which frees the shared key string, but the stale key pointer remains in the table so the next st_delete key comparison (st_strcmp) dereferences freed memory. The upstream fix stops freeing evicted nodes inline (new syck_retire_node defers them to a p->retired table for teardown) and gives the anchors/bad_anchors tables their own syck_strndup-duplicated key strings so table keys no longer alias node-owned memory. The same commit also hardens two adjacent defects (signed-char base64 table indexing in syck_base64dec for CVE-2026-57075 and a newline over-read for CVE-2026-57077).

Know when Yaml gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CPANSec) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 6.5 MEDIUM

Untrusted documents are attacker-controlled and commonly network-delivered (AV:N, PR:N, no auth); impact is a UAF read causing limited heap exposure and possible crash (C:L/A:L), not confirmed integrity loss (I:N); NVD's AV:L/PR:L and H/H/H appear overstated.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 6.3 MEDIUM

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Jul 17, 2026 - 14:22 NVD
7.8 (HIGH)
CVE Published
Jul 16, 2026 - 21:40 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 16, 2026 - 21:40 cve.org
HIGH 7.8

DescriptionCVE.org

YAML::Syck versions before 1.47 for Perl allow a heap use-after-free via an anchor name reused as an anchors-table key in syck_hdlr_add_anchor.

In the bundled libsyck an anchor name allocated by syck_strndup is stored both as node->anchor, freed when the node is freed, and as the key in the parser's anchors table. Freeing the node frees the shared key, and a later anchor redefinition makes st_delete compare against the freed key, so st_strcmp reads freed heap memory. Anchors are a standard YAML feature and need no special flags, so this is reached on the default Load path.

Any caller that runs Load or LoadFile on an untrusted document that redefines an anchor reaches the read of freed memory.

Executive ViewAI

Why It Matters

YAML::Syck for Perl versions before 1.47 contains a heap corruption vulnerability triggered by parsing untrusted YAML documents-a routine operation in APIs, web applications, and configuration systems. Publicly available exploit code exists, and with a 7.8 CVSS score, this represents an immediate priority for organizations running affected Perl applications.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Low
Perl-only YAML parser, declining usage, largely superseded by YAML::XS/YAML::PP
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Yaml

View all
CVE-2023-2251 HIGH POC
7.5 Apr 24

Uncaught Exception in GitHub repository eemeli/yaml prior to 2.0.0-5. Rated high severity (CVSS 7.5), this vulnerability

CVE-2022-28948 HIGH POC
7.5 May 19

An issue in the Unmarshal function in Go-Yaml v3 causes the program to crash when attempting to deserialize invalid inpu

CVE-2026-57075 CRITICAL
9.1 Jul 16

Out-of-bounds read in the Perl module YAML::Syck before 1.47 lets a remote attacker leak adjacent process memory by feed

CVE-2026-4177 CRITICAL
9.1 Mar 16

A critical heap buffer overflow vulnerability exists in YAML::Syck through version 1.36 for Perl, allowing remote attack

CVE-2026-57077 HIGH
7.7 Jul 16

Out-of-bounds heap read in YAML::Syck before 1.47 for Perl lets an attacker who controls a parsed YAML document trigger

CVE-2022-3064 HIGH
7.5 Dec 27

Parsing malicious or large YAML documents can consume excessive amounts of CPU or memory. Rated high severity (CVSS 7.5)

CVE-2026-5089 HIGH
7.3 May 12

Buffer underflow in YAML::Syck for Perl versions before 1.38 allows remote unauthenticated attackers to trigger out-of-b

CVE-2025-11683 MEDIUM
6.5 Jul 17

Out-of-bounds memory read in YAML::Syck's bundled libsyck C library for Perl exposes any application calling Load() or L

CVE-2026-13713 MEDIUM
6.2 Jul 16

YAML::Syck before version 1.47 crashes the Perl interpreter when parsing a YAML document that redefines an anchor name,

CVE-2012-1152 MEDIUM
5.0 Sep 09

Multiple format string vulnerabilities in the error reporting functionality in the YAML::LibYAML (aka YAML-LibYAML and p

Vendor StatusVendor

SUSE

Severity: Important
Product Status
openSUSE Tumbleweed Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy