CVE catalog

CVE-2026-57076

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

[CVE catalog]

Severity
High · CVSS 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.17% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibyaml-syck-perlsid1.47-1fixed
Debianlibyaml-syck-perlforky1.47-1fixed
Debianlibyaml-syck-perltrixie1.34-2+deb13u3fixed
Debianlibyaml-syck-perltrixie-security1.34-2+deb13u3fixed
Debianlibyaml-syck-perlbookworm1.34-2+deb12u2vulnerable
Debianlibyaml-syck-perlbookworm-security1.34-2+deb12u3fixed
Cpelibyaml-syck-perlNot reportedNot reportedvulnerable
Alpineperl-yaml-syck3.241.47-r0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibyaml-syck-perlsourcesid1.47-1not yet assignedNot reported[1142267]
Debianlibyaml-syck-perlsourceforky1.47-1not yet assignedNot reported[1142267]
Debianlibyaml-syck-perlsourcetrixie1.34-2+deb13u3not yet assignedNot reported[1142267]
Debianlibyaml-syck-perlsourcebookworm1.34-2+deb12u3not yet assignedNot reported[1142267]
Alpineperl-yaml-syckapk3.241.47-r0Not reportedALPINE-CVE-2026-57076Not reported

[Debian bug #1142267]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (4)
    • 1.34-2+deb12u2 · amd64 · bookworm

      Affected · Fixed: 1.34-2+deb12u3

      nvd · libyaml-syck-perl · debian · bookworm; nvd · libyaml-syck-perl · debian · 12

    • 1.34-2+deb12u2 · arm64 · bookworm

      Affected · Fixed: 1.34-2+deb12u3

      nvd · libyaml-syck-perl · debian · bookworm; nvd · libyaml-syck-perl · debian · 12

    • 1.34-2+deb12u3 · amd64 · bookworm-security

      Fixed · Fixed: 1.34-2+deb12u3

      nvd · libyaml-syck-perl · debian · bookworm; nvd · libyaml-syck-perl · debian · 12

    • 1.34-2+deb12u3 · arm64 · bookworm-security

      Fixed · Fixed: 1.34-2+deb12u3

      nvd · libyaml-syck-perl · debian · bookworm; nvd · libyaml-syck-perl · debian · 12

[Debian 13 (Trixie)]

  • Details (5)
    • 1.34-2+deb13u2 · amd64 · trixie

      Affected · Fixed: 1.34-2+deb13u3

      nvd · libyaml-syck-perl · debian · 13

    • 1.34-2+deb13u2 · arm64 · trixie

      Affected · Fixed: 1.34-2+deb13u3

      nvd · libyaml-syck-perl · debian · 13

    • 1.34-2+deb13u2 · amd64 · trixie-security · Historical version

      Affected · Fixed: 1.34-2+deb13u3

      nvd · libyaml-syck-perl · debian · 13

    • 1.34-2+deb13u3 · amd64 · trixie-security

      Fixed · Fixed: 1.34-2+deb13u3

      nvd · libyaml-syck-perl · debian · 13

    • 1.34-2+deb13u3 · arm64 · trixie-security

      Fixed · Fixed: 1.34-2+deb13u3

      nvd · libyaml-syck-perl · debian · 13

Observed:

References