Skip to content
Heist/ feed
Unrated

YAML versions before 1.30 for Perl allow a loaded document to trigger the DESTROY method of arbitrary classes

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2017-20285

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2017-20285

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://github.com/ingydotnet/yaml-pm",
    "modules": [
      "YAML"
    ],
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "lessThan": "1.30",
        "versionType": "custom"
      }
    ],
    "packageURL": "pkg:cpan/YAML",
    "packageName": "YAML",
    "programFiles": [
      "lib/YAML.pm",
      "lib/YAML/Loader.pm",
      "lib/YAML/Types.pm"
    ],
    "collectionURL": "https://cpan.org/modules",
    "defaultStatus": "unaffected",
    "programRoutines": [
      {
        "name": "YAML::Loader::_parse_explicit"
      },
      {
        "name": "YAML::Type::code::yaml_load"
      },
      {
        "name": "YAML::Type::regexp::yaml_load"
      }
    ]
  }
]
Related CVEs
CVE-2017-20285

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#9415 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement