CVE-2019-13146: field_test gem contains injection vulnerability
5.3
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.48989%
CWE
Published
7/16/2019
Updated
3/3/2025
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
field_test | rubygems | = 0.3.0 | 0.3.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the field_test method returning arbitrary user-controlled values without validation. Multiple sources explicitly show vulnerable patterns like Page.where("key = '#{landing_page}'")
where landing_page comes from field_test. The method's inability to restrict output to predefined variants makes it the clear injection vector. Though exact implementation details aren't shown in diffs, the method's documented behavior and usage examples in advisories directly implicate it.