CVE-2023-26153: geokit-rails Command Injection vulnerability
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.49853%
CWE
Published
10/6/2023
Updated
11/8/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| geokit-rails | rubygems | < 2.5.0 | 2.5.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The critical vulnerability stemmed from two key functions: 1) retrieve_location_from_cookie_or_service directly used YAML.load on user-controlled cookie data (CWE-502), which allows deserialization of arbitrary objects and code execution. This was patched by replacing YAML with JSON in the commit. 2) store_ip_location's use of to_yaml created the persistent attack vector in cookies. The high confidence comes from the explicit YAML.load usage in the retrieval path being called out in vulnerability reports and the patch directly addressing both serialization/deserialization methods.