CVE catalog

CVE-2017-20285

YAML versions before 1.30 for Perl allow a loaded…

[CVE catalog]

YAML versions before 1.30 for Perl allow a loaded document to trigger the DESTROY method of arbitrary classes. A perl/hash:Class tag blesses a hash into the class it names. The document supplies the object's fields, and Perl calls DESTROY when it goes out of scope. What DESTROY does depends on the classes the process has loaded. With File::Temp::Dir from core Perl, it can delete a directory tree the document names.

Severity
Critical · CVSS 9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.34% · Oct 27, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Distribution / releasePackageVersionStatusSource
Debiantrixielibyaml-perl1.30-1FixedDistribution-reported fixed boundary[CVE-2017-20285]
Debiantrixielibyaml-perl1.31-1Fixed[CVE-2017-20285]
Debiansidlibyaml-perl1.30-1FixedDistribution-reported fixed boundary[CVE-2017-20285]
Debiansidlibyaml-perl1.321-1Fixed[CVE-2017-20285]
Debianforkylibyaml-perl1.30-1FixedDistribution-reported fixed boundary[CVE-2017-20285]
Debianforkylibyaml-perl1.321-1Fixed[CVE-2017-20285]
Debianbookwormlibyaml-perl1.30-1FixedDistribution-reported fixed boundary[CVE-2017-20285]
Debianbookwormlibyaml-perl1.30-2Fixed[CVE-2017-20285]

Showing 8 fix observations. All 9 observations, including unknown and conflicting reports, are available below.

Provider details and historical evidence
Distribution / releasePackageVersionStatusSource
Debianbookwormlibyaml-perl1.30-1FixedDistribution-reported fixed boundary[CVE-2017-20285]
Debianbookwormlibyaml-perl1.30-2Fixed[CVE-2017-20285]
Debianforkylibyaml-perl1.30-1FixedDistribution-reported fixed boundary[CVE-2017-20285]
Debianforkylibyaml-perl1.321-1Fixed[CVE-2017-20285]
Debiansidlibyaml-perl1.30-1FixedDistribution-reported fixed boundary[CVE-2017-20285]
Debiansidlibyaml-perl1.321-1Fixed[CVE-2017-20285]
Debiantrixielibyaml-perl1.30-1FixedDistribution-reported fixed boundary[CVE-2017-20285]
Debiantrixielibyaml-perl1.31-1Fixed[CVE-2017-20285]
Ubuntunoblelibyaml-perl1.31-1ubuntu0.24.04.1UnknownSource applicability is not establishedProvider not reported
Original provider fields
{
  "package_releases": [
    {
      "name": "libyaml-perl",
      "status": "fixed",
      "release": "sid",
      "version": "1.321-1"
    },
    {
      "name": "libyaml-perl",
      "status": "fixed",
      "release": "forky",
      "version": "1.321-1"
    },
    {
      "name": "libyaml-perl",
      "status": "fixed",
      "release": "trixie",
      "version": "1.31-1"
    },
    {
      "name": "libyaml-perl",
      "status": "fixed",
      "release": "bookworm",
      "version": "1.30-2"
    }
  ],
  "fixed_versions": [
    {
      "bug": null,
      "name": "libyaml-perl",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "not yet assigned",
      "fixed_version": "1.30-1"
    },
    {
      "bug": null,
      "name": "libyaml-perl",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "not yet assigned",
      "fixed_version": "1.30-1"
    },
    {
      "bug": null,
      "name": "libyaml-perl",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "not yet assigned",
      "fixed_version": "1.30-1"
    },
    {
      "bug": null,
      "name": "libyaml-perl",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "not yet assigned",
      "fixed_version": "1.30-1"
    }
  ],
  "distribution_packages": [
    {
      "name": "libyaml-perl",
      "distro": "ubuntu",
      "ranges": [
        {
          "fixed": "1.31-1ubuntu0.24.04.1",
          "introduced": "0"
        }
      ],
      "release": "noble",
      "ecosystem": "deb",
      "fixed_version": "1.31-1ubuntu0.24.04.1",
      "applicability_unknown": true
    }
  ]
}

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [libyaml-perl]Unknown
    Details (2)
    • 1.30-2 · all · bookworm

      Fixed · Fixed: 1.30-1

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

    • 1.30-2 · all · bookworm

      Fixed · Fixed: 1.30-1

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

[Debian 13 (Trixie)]

  • [libyaml-perl]Unknown
    Details (2)
    • 1.31-1 · all · trixie

      Fixed · Fixed: 1.30-1

      nvd · libyaml-perl · debian · 13

    • 1.31-1 · all · trixie

      Fixed · Fixed: 1.30-1

      nvd · libyaml-perl · debian · 13

Observed:

References