Vulnerabilities in pkg:gem/field_test

PACKAGE
Advisory Identifier: GHSA-wg9m-gw3h-hg83
Advisory Summary

CVE-2019-13146 is a MODERATE (CVSS 5.3) field_test gem contains injection vulnerability vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Field test libraries in the RubyGems ecosystem. The issue involves field_test gem contains injection vulnerability. Remediation is available by upgrading affected packages to version 0.3.1.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/field_test

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/field_test. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-wg9m-gw3h-hg83 CVE-2019-13146 MODERATE field_test gem contains injection vulnerability
GHSA-w542-cpp9-r3g7 CVE-2020-16252 MODERATE Field Test CSRF vulnerability

CVE-2019-13146 at a Glance

CVE Identifier CVE-2019-13146
GHSA Identifier GHSA-wg9m-gw3h-hg83
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected Product Field test
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2019-13146

To remediate this vulnerability, upgrade all affected Field test dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

field_test fixed: 0.3.1
Upgrade field_test to 0.3.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for field_test

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-13146, inspect your project dependencies for Field test:

inspect dependencies for field_test

Analyze the terminal output to locate any version of Field test in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Field test, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

CVE-2019-13146 Affected Field test Versions

1 component(s)
Fixed Versions:
0.3.1
Product / Package Ecosystem Affected Versions Fixed Version
field_test
RubyGems
≥ 0.3.0
< 0.3.1
All 1 versions
0.3.0
0.3.1

References

Frequently Asked Questions

What is CVE-2019-13146?
CVE-2019-13146 is a security vulnerability in Field test involving field_test gem contains injection vulnerability under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection').
Which Field test versions are affected?
Affected versions include releases prior to 0.3.1 across affected packages: field_test.
What version fixes CVE-2019-13146?
Upgrading to 0.3.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is field_test affected?
Yes, field_test is affected in releases prior to 0.3.1. Upgrade your dependency to 0.3.1 or later.
What is the CVSS score of CVE-2019-13146?
CVE-2019-13146 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2019-13146?
CVE-2019-13146 is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.).
How can I check RubyGems dependencies for CVE-2019-13146?
Run the dependency tree command: 'inspect dependencies for field_test'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-wg9m-gw3h-hg83",
  "modified" : "2025-03-03T13:30:18Z",
  "published" : "2019-07-16T00:42:27Z",
  "aliases" : [ "CVE-2019-13146" ],
  "summary" : "field_test gem contains injection vulnerability",
  "details" : "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).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "field_test"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.3.0"
      }, {
        "fixed" : "0.3.1"
      } ]
    } ],
    "versions" : [ "0.3.0" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-13146"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ankane/field_test/issues/17"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ankane/field_test"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/field_test/CVE-2019-13146.yml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20210115194802/http://www.securityfocus.com/bid/109114"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-74" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-07-15T23:48:32Z",
    "nvd_published_at" : "2019-07-09T18:15:00Z"
  }
}