0

在“捆绑安装”命令之后,似乎使用了一些旧版本的 libyaml(见下文)。按照说明不起作用,因为 rails_admin 是一个引擎(我猜)。知道如何解决这个问题吗?

SafeYAML Warning
  ----------------

  You appear to have an outdated version of libyaml (0.1.5) installed on your system.

  Prior to 0.1.6, libyaml is vulnerable to a heap overflow exploit from malicious YAML payloads.

  For more info, see:
  https://www.ruby-lang.org/en/news/2014/03/29/heap-overflow-in-yaml-uri-escape-parsing-cve-2014-2525/

  The easiest thing to do right now is probably to update Psych to the latest version and enable
  the 'bundled-libyaml' option, which will install a vendored libyaml with the vulnerability patched:

  gem install psych -- --enable-bundled-libyaml
4

1 回答 1

3

只需 3 个步骤:

  1. 告诉 bundlerpsych使用特定参数进行安装

    捆绑配置 build.psych --enable-bundled-libyaml

  2. 在 Gemfile中指定较新版本的psychgem(ruby 2.0+ 与 psych 2.0.0 一起提供)

    宝石“心理”,“〜> 2.0.5”

  3. 运行捆绑器

于 2014-04-23T23:22:59.463 回答