CVE-2017-18342
Python packages · CVE-2017-18342
In PyYAML before 5.1, the yaml.load() API could execute arbitrary code if used with untrusted data. The load() function has been deprecated in version 5.1 and the 'UnsafeLoader' has been introduced for backward compatibility with the function.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 5.570% · score date 2026-11-18. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T15:55:09.885Z. Public exploit availability is not used to set this status.
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T15:55:09.885Z | CISA KEV |
| cvss | unknown | unknown | unknown |
| epss | verified | 2026-11-19T12:59:54.299Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:19.794Z | OSV |
| affected | verified | 2026-11-19T12:54:56.350Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:54:56.350Z | CVE Program |
Affected versions and configuration
n/a n/a; default status: unknown: n/a [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "n/a",
"product": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/yaml/pyyaml/pull/74",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/yaml/pyyaml/blob/master/CHANGES",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M6JCFGEIEOFMWWIXGHSELMKQDD4CV2BA/",
"name": "FEDORA-2019-bed9afe622",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KSQQMRUQSXBSUXLCRD3TSZYQ7SEZRKCE/",
"name": "FEDORA-2019-779a9db46a",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JEX7IPV5P2QJITAMA5Z63GQCZA5I6NVZ/",
"name": "FEDORA-2019-44643e8bcb",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
]
},
{
"url": "https://github.com/marshmallow-code/apispec/issues/278",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/yaml/pyyaml/issues/193",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load%28input%29-Deprecation",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://security.gentoo.org/glsa/202003-45",
"name": "GLSA-202003-45",
"tags": [
"vendor-advisory",
"x_refsource_GENTOO",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-05T21:20:50.850Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-rprw-h62v-c2w7",
"aliases": [
"CVE-2017-18342",
"PYSEC-2018-49"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "5.1"
}
]
}
],
"package": {
"name": "pyyaml",
"purl": "pkg:pypi/pyyaml",
"ecosystem": "PyPI"
},
"versions": [
"3.01",
"3.02",
"3.03",
"3.04",
"3.05",
"3.06",
"3.07",
"3.08",
"3.09",
"3.10",
"3.11",
"3.12",
"3.13",
"3.13b1",
"3.13rc1",
"4.2b1",
"4.2b2",
"4.2b4",
"5.1b1",
"5.1b3",
"5.1b5",
"5.1b7"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/01/GHSA-rprw-h62v-c2w7/GHSA-rprw-h62v-c2w7.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-18342",
"type": "ADVISORY"
},
{
"url": "https://github.com/marshmallow-code/apispec/issues/278",
"type": "WEB"
},
{
"url": "https://github.com/yaml/pyyaml/issues/193",
"type": "WEB"
},
{
"url": "https://github.com/yaml/pyyaml/issues/207#issuecomment-472520007",
"type": "WEB"
},
{
"url": "https://github.com/yaml/pyyaml/pull/74",
"type": "WEB"
},
{
"url": "https://github.com/yaml/pyyaml/commit/7b68405c81db889f83c32846462b238ccae5be80",
"type": "WEB"
},
{
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/pyyaml/PYSEC-2018-49.yaml",
"type": "WEB"
},
{
"url": "https://github.com/yaml/pyyaml",
"type": "PACKAGE"
},
{
"url": "https://github.com/yaml/pyyaml/blob/master/CHANGES",
"type": "WEB"
},
{
"url": "https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/JEX7IPV5P2QJITAMA5Z63GQCZA5I6NVZ",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/KSQQMRUQSXBSUXLCRD3TSZYQ7SEZRKCE",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/M6JCFGEIEOFMWWIXGHSELMKQDD4CV2BA",
"type": "WEB"
},
{
"url": "https://security.gentoo.org/glsa/202003-45",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-502"
],
"severity": "CRITICAL",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2020-06-16T21:55:26Z"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "PYSEC-2018-49",
"aliases": [
"CVE-2017-18342",
"GHSA-rprw-h62v-c2w7"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "5.1"
}
]
}
],
"package": {
"name": "pyyaml",
"purl": "pkg:pypi/pyyaml",
"ecosystem": "PyPI"
},
"versions": [
"3.01",
"3.02",
"3.03",
"3.04",
"3.05",
"3.06",
"3.07",
"3.08",
"3.09",
"3.10",
"3.11",
"3.12",
"3.13",
"3.13b1",
"3.13rc1",
"4.2b1",
"4.2b2",
"4.2b4",
"5.1b1",
"5.1b3",
"5.1b5",
"5.1b7"
],
"database_specific": {
"source": "https://github.com/pypa/advisory-database/blob/main/vulns/pyyaml/PYSEC-2018-49.yaml"
}
}
],
"severity": [],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/yaml/pyyaml/pull/74",
"type": "WEB"
},
{
"url": "https://github.com/yaml/pyyaml/blob/master/CHANGES",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/M6JCFGEIEOFMWWIXGHSELMKQDD4CV2BA/",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/KSQQMRUQSXBSUXLCRD3TSZYQ7SEZRKCE/",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/JEX7IPV5P2QJITAMA5Z63GQCZA5I6NVZ/",
"type": "WEB"
},
{
"url": "https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation",
"type": "WEB"
},
{
"url": "https://github.com/marshmallow-code/apispec/issues/278",
"type": "REPORT"
},
{
"url": "https://github.com/yaml/pyyaml/issues/193",
"type": "REPORT"
},
{
"url": "https://security.gentoo.org/glsa/202003-45",
"type": "ADVISORY"
},
{
"url": "https://github.com/advisories/GHSA-rprw-h62v-c2w7",
"type": "ADVISORY"
}
],
"relatedGitRanges": [],
"database_specific": {}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | PyPI / package | pyyaml | Not a distribution channel | 5.1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CISA KEVConsulted: 2026-11-19T15:55:09.885ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - OSVConsulted: 2026-11-19T12:52:19.794ZArchived source JSON
Source publication: 2019-01-04T17:45:26.000Z
Source modification: 2026-07-01T17:45:34.796ZDocument fingerprint
4cb3ea6d8f0e3dc328aae06d0e95bebc899380c7883292c0886a7d36d8046323 - OSVConsulted: 2026-11-19T12:52:19.794ZArchived source JSON
Source publication: 2018-06-27T12:29:00.000Z
Source modification: 2023-11-08T03:59:15.614ZDocument fingerprint
4cb3ea6d8f0e3dc328aae06d0e95bebc899380c7883292c0886a7d36d8046323 - FIRST EPSSConsulted: 2026-11-19T12:59:54.299ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
3125722b6baaadf93963ea939ab80fab306c9b43805f893ce32ce99cd33e15f4 - CVE ProgramConsulted: 2026-11-19T12:54:56.350ZArchived source JSON
Source publication: 2018-06-27T12:00:00.000Z
Source modification: 2024-08-05T21:20:50.850ZDocument fingerprint
db141b04a27c7141b5ed4a41e14cc2a96c690c4898578c4b5ce1b1bccf6ae1a6
Official status history
- UNKNOWN → PUBLISHED · · evidence