PT-2021-23071 · Nameko · Nameko
Masatoshi Yoshizawa
·
Published
2021-10-19
·
Updated
2021-10-29
·
CVE-2021-41078
CVSS v4.0
9.3
Critical
| Vector | AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H |
Name of the Vulnerable Software and Affected Versions
Nameko versions prior to 2.14.0
Nameko versions v3.0.0rc0 through v3.0.0rc9
Description
The issue allows for arbitrary code execution when deserializing the config file. This can be achieved by tricking Nameko into deserializing a malicious YAML config file. For example, a malicious.yaml file can contain code that executes system commands, such as
import ('os').system('cat /etc/passwd'). This can lead to the execution of arbitrary system commands.Recommendations
For versions prior to 2.14.0, update to version 2.14.0 or later to resolve the issue.
For versions v3.0.0rc0 through v3.0.0rc9, update to v3.0.0rc10 or later to resolve the issue.
As a temporary workaround, consider only using config files that you trust to avoid exploitation.
Exploit
Fix
Deserialization of Untrusted Data
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Nameko