Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use YAML.safe_load when loading custom config #684

Merged
merged 1 commit into from
Feb 26, 2015
Merged

Conversation

gylaz
Copy link
Member

@gylaz gylaz commented Feb 26, 2015

There's a vulnerability in YAML.load which can enable arbitrary code to be run
on our sytems. YAML.safe_load does not deserialize unsafe classes.

Related reading:
http://blog.codeclimate.com/blog/2013/01/10/rails-remote-code-execution-vulnerability-explained/
ruby/psych#119
http://docs.ruby-lang.org/en/2.1.0/Psych.html#method-c-safe_load

There's a vulnerability in `YAML.load` which can enable arbitrary code to be run
on our sytems. `YAML.safe_load` does not deserialize unsafe classes.

Related reading:
http://blog.codeclimate.com/blog/2013/01/10/rails-remote-code-execution-vulnerability-explained/
ruby/psych#119
http://docs.ruby-lang.org/en/2.1.0/Psych.html#method-c-safe_load
@salbertson
Copy link
Member

👍

@thorncp
Copy link
Contributor

thorncp commented Feb 26, 2015

:shipit:

@gylaz gylaz merged commit 20cf002 into master Feb 26, 2015
@gylaz gylaz deleted the gl-safe-load-yaml branch February 26, 2015 01:41
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.

3 participants