CVE-2019-16676
simple_form Gem for Ruby Incorrect Access Control for forms based on user input
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Ruby Advisory DB.
Description
Plataformatec Simple Form has Incorrect Access Control in file_method? in lib/simple_form/form_builder.rb, because a user-supplied string is invoked as a method call.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| rubygems::GitHub Security Advisory RubyGems | simple_form | 5.0.0 |
| rubygems::Ruby Advisory Database | simple_form | >= 5.0 |
References
- http://blog.plataformatec.com.br/2019/09/incorrect-access-control-in-simple-form-cve-2019-16676
- http://blog.plataformatec.com.br/2019/09/incorrect-access-control-in-simple-form-cve-2019-16676/
- https://github.com/advisories/GHSA-r74q-gxcg-73hx
- https://github.com/heartcombo/simple_form
- https://github.com/heartcombo/simple_form/commit/8c91bd76a5052ddf3e3ab9fd8333f9aa7b2e2dd6
- https://github.com/plataformatec/simple_form/commits/master
- https://github.com/plataformatec/simple_form/security/advisories/GHSA-r74q-gxcg-73hx
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/simple_form/CVE-2019-16676.yml