GitHub Advisoryadvisory · RubyGems
GHSA-wg9m-gw3h-hg83 field_test gem contains injection vulnerability
MEDIUM
Official page ↗
- Aliases
- CVE-2019-13146
- Ecosystem
- RubyGems
- Packages
- field_test
- Severity
- Moderate
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Weaknesses
- CWE-74
- Reviewed
- 2019-07-15
Affected packages
• RubyGems field_test: >= 0.3.0, < 0.3.1 → fixed in 0.3.1
Description
The field_test gem 0.3.0 for Ruby has unvalidated input. A method call that is expected to return a value from a certain set of inputs can be made to return any input, which can be dangerous depending on how applications use it. If an application treats arbitrary variants as trusted, this can lead to a variety of potential vulnerabilities like SQL injection or cross-site scripting (XSS).
Related
Alias · CVE (1)
- CVE-2019-13146 The field_test gem 0.3.0 for Ruby has unvalidated input. vulnerability
Weakness · CWE (1)
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-13146 advisory
- https://github.com/ankane/field_test/issues/17 web
- https://github.com/ankane/field_test package
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/field_test/CVE-2019-13146.yml web
- https://web.archive.org/web/20210115194802/http://www.securityfocus.com/bid/109114 web