Vulnerabilities in pkg:gem/field_test
PACKAGECVE-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.
pkg:gem/field_test
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
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).
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.
Upgrade field_test to 0.3.1
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
CVE-2019-13146 Affected Field test Versions
1 component(s)| 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?
Which Field test versions are affected?
What version fixes CVE-2019-13146?
Is field_test affected?
What is the CVSS score of CVE-2019-13146?
What CWE is associated with CVE-2019-13146?
How can I check RubyGems dependencies for CVE-2019-13146?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}