Skip to content

Use safe_load in yamlhelper#10190

Open
EhteshamSid wants to merge 1 commit intoaws:developfrom
EhteshamSid:fix/use-safe-load-in-yamlhelper
Open

Use safe_load in yamlhelper#10190
EhteshamSid wants to merge 1 commit intoaws:developfrom
EhteshamSid:fix/use-safe-load-in-yamlhelper

Conversation

@EhteshamSid
Copy link
Copy Markdown

yaml.load() in awscli/customizations/cloudformation/yamlhelper.py doesn't pass a safe Loader. This can deserialize arbitrary Python objects and is an RCE risk if the YAML comes from user input or the network. Switched to yaml.safe_load().

Changed files: awscli/bcdoc/textwriter.py, awscli/customizations/cloudformation/yamlhelper.py, awscli/customizations/eks/ordered_yaml.py, awscli/customizations/emr/sshutils.py, awscli/testutils.py and 1 more

Existing callers that pass the argument explicitly are unaffected - only the default value behavior changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant