Skip to main content

YAML::Syck CVE-2026-57075

| EUVDEUVD-2026-45054 CRITICAL
Out-of-bounds Read (CWE-125)
2026-07-16 CPANSec GHSA-fwh5-hwhp-qgp4
Critical
Disputed · 9.1 Vendor: CPANSec
View

Attack ChainAIDerived

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

  1. Access
    Submit YAML doc with !!binary high-bit byte
  2. Delivery
    Reach syck_base64dec on default Load path
  3. Exploit
    Signed-char index reads before b64_xtable
  4. Execution
    OOB bytes folded into decoded scalar
  5. Impact
    Disclose adjacent process memory to attacker

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

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

Exploitation Conditions

The target application must call YAML::Syck::Load or LoadFile on attacker-controlled input, and that input must contain a !!binary scalar with at least one byte >= 0x80 (high bit set) - that byte is precisely the condition that produces the negative signed-char index. No non-default options are required: !!binary is a standard YAML tag handled on the ordinary Load path and is NOT gated by $LoadBlessed or $LoadCode, so default configurations are affected. Exploitation is further conditioned on the platform having a signed char type (the common case on x86/x86-64 with GCC/Clang); on platforms where char is unsigned the negative-index over-read does not occur. The practical limiter is not authentication (PR:N) but reachability and payoff: the application must actually route untrusted YAML into the parser, and the leaked data is a small, fixed-offset region adjacent to a static table rather than attacker-chosen memory.

Impact

The signals conflict and warrant tempering the headline number. NVD's CVSS 9.1 (AV:N/AC:L/PR:N/UI:N/C:H/I:N/A:H) reflects an unauthenticated, network-reachable parser defect on the default code path, which is the genuinely serious part - any service that Loads untrusted YAML is exposed. However, the technical impact is a short, fixed-offset over-read of static data immediately preceding a table, not an attacker-controlled arbitrary read, so C:H and A:H are likely overstated: the disclosed bytes are limited and adjacent, and a small negative offset into mapped memory typically will not crash a normal (non-ASan) build. This matches the low EPSS (0.19%) and SSVC Exploitation:none. SSVC does flag Automatable:yes and Technical Impact:total, meaning the trigger is trivial to reproduce at scale - but 'reachable and reliable' is not the same as 'high-value.' Net: treat this as a real, patch-worthy hygiene issue (unauthenticated, default path, trivial trigger) rather than a critical emergency; the practical payoff to an attacker is bounded memory disclosure, and no active exploitation is reported.

Exploit ScenarioDerived

An attacker submits a YAML document containing a !!binary scalar whose base64 payload includes a high-bit byte (e.g. '--- !!binary \x80\x80\x80\x80') to any network service that parses user-supplied YAML with YAML::Syck::Load. The decoder indexes before b64_xtable and folds the out-of-bounds bytes into the decoded result, which may then be echoed back or logged, leaking small amounts of adjacent process memory. The trigger inputs are already publicly documented in the vendor CI and oss-security post, lowering the bar to reproduce, though no weaponized exploit is known.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
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 22, 2026

Out-of-bounds read in the Perl module YAML::Syck before 1.47 lets a remote attacker leak adjacent process memory by feeding a crafted YAML document to Load or LoadFile. The bundled libsyck base64 decoder (syck_base64dec) indexes its 256-entry b64_xtable with a signed char, so any !!binary byte >= 0x80 sign-extends to a negative index and reads before the table; because !!binary is a standard tag processed on the default Load path (not gated by $LoadBlessed or $LoadCode), the flaw is reachable without any opt-in. No CISA KEV listing and EPSS is low (0.19%, 8th percentile), so no public weaponized exploit is identified at time of analysis, though the exact trigger strings (e.g. '--- !!binary \x80\x80\x80\x80') are publicly documented in the vendor's CI test suite and the oss-security advisory.

RemediationAI

Upgrade to YAML::Syck 1.47 or later - Vendor-released patch: 1.47 (fix commit 44c90a109ec3215ee7ce747bd11209835e123d8b, https://github.com/toddr/YAML-Syck/commit/44c90a109ec3215ee7ce747bd11209835e123d8b.patch); the changelog is at https://metacpan.org/release/TODDR/YAML-Syck-1.47/changes and the advisory at https://seclists.org/oss-sec/2026/q3/159. If you cannot patch immediately, the practical compensating control is to avoid running Load/LoadFile on untrusted YAML, or to pre-scan incoming documents and reject those containing a !!binary tag before parsing (the trade-off is that any legitimate use of binary scalars breaks, and naive string matching can be bypassed by unusual whitespace/aliasing so it is a stopgap, not a guarantee). Since the flaw is not gated by $LoadBlessed or $LoadCode, toggling those options does not mitigate it. Where feasible, isolate the parsing process so a memory over-read cannot expose sensitive adjacent data (e.g., parse in a low-privilege, minimal-secret worker).

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

The vulnerability lives in libsyck, the C YAML library bundled inside the YAML::Syck XS module (CPE cpe:2.3:a:toddr:yaml::syck). YAML's !!binary type carries base64-encoded data, and syck_base64dec in emitter.c decodes it by looking each input byte up in a static 256-entry translation table, b64_xtable. The lookup was written as b64_xtable[(int)s[0]]; on platforms where char is signed, an input byte with the high bit set (>= 0x80) becomes a negative int, so the code reads memory before the start of the table - a classic CWE-125 out-of-bounds read caused by using a signed type as an array index. The fix (commit 44c90a1, released in 1.47) simply casts each index to (unsigned char) so all 256 byte values map into the valid 0-255 range. Because the decoded sextets are assembled into the returned scalar, whatever bytes lie before the table can be folded into the value handed back to the Perl caller, turning a memory-safety bug into a potential information leak.

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

Sources disagree (Medium–Critical)
Vendor (CPANSec) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
vuln.today AI 6.5 MEDIUM

Default Load path is unauthenticated and network-reachable (AV:N/AC:L/PR:N/UI:N), but the impact is a small fixed-offset over-read: limited disclosure (C:L) and only possible crash on hardened builds (A:L).

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 CRITICAL
Red Hat 6.5 MEDIUM

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorVendor: CPANSec

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

Lifecycle Timeline

2
CVE Published
Jul 16, 2026 - 21:39 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 16, 2026 - 21:39 cve.org
CRITICAL 9.1

DescriptionCVE.org

YAML::Syck versions before 1.47 for Perl allow an out-of-bounds read via a signed-char lookup-table index in syck_base64dec.

The base64 decoder in the bundled libsyck indexes the 256-entry static table b64_xtable with a signed char, so any !!binary byte >= 0x80 sign-extends to a negative index and reads before the table. The decoder receives the raw bytes of any !!binary node, a standard YAML type not gated by $LoadBlessed or $LoadCode, so it is reached on the default Load path.

Any caller that runs Load or LoadFile on an untrusted document containing a !!binary scalar with a high-bit byte triggers the read, and the value read can surface in the decoded result.

Executive ViewAI

Why It Matters

YAML::Syck, a widely-used Perl module for parsing YAML documents, contains a remote memory disclosure vulnerability enabling attackers to leak sensitive data directly from application process memory without authentication. Systems processing untrusted YAML input are at risk of exposing credentials, encryption keys, and session tokens stored in process memory. Organizations should prioritize patching to YAML::Syck 1.47 to eliminate this information disclosure channel.

Business Impact: High
Compensating Controls

Apply vendor patch: YAML::Syck 1.47 or later

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
common Perl CPAN YAML parser, moderate but declining real-world footprint
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

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-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-57076 HIGH
7.8 Jul 16

Heap use-after-free in YAML::Syck for Perl before version 1.47 lets a crafted YAML document corrupt parser memory when i

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: Critical
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Module for Development Tools 15 SP7 Affected
SUSE Linux Enterprise Server 15 SP7 Affected

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