Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. field_test
  4. ›
  5. CVE-2019-13146

CVE-2019-13146: field_test gem contains injection vulnerability

July 16, 2019 (updated March 3, 2025)

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).

References

  • github.com/advisories/GHSA-wg9m-gw3h-hg83
  • github.com/ankane/field_test
  • github.com/ankane/field_test/issues/17
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/field_test/CVE-2019-13146.yml
  • nvd.nist.gov/vuln/detail/CVE-2019-13146
  • web.archive.org/web/20210115194802/http://www.securityfocus.com/bid/109114

Code Behaviors & Features

Detect and mitigate CVE-2019-13146 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.3.0 before 0.3.1, version 0.3.0

Fixed versions

  • 0.3.1

Solution

Upgrade to version 0.3.1 or above.

Impact 5.3 MEDIUM

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Source file

gem/field_test/CVE-2019-13146.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:18 +0000.