Vulnerabilities in pkg:gem/geokit-rails
PACKAGECVE-2023-26153 is a CRITICAL (CVSS 9.8) geokit-rails command injection vulnerability vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Geokit rails libraries in the RubyGems ecosystem. The issue involves geokit-rails command injection vulnerability. Remediation is available by upgrading affected packages to version 2.5.0.
pkg:gem/geokit-rails
Vulnerability advisories affecting package pkg:gem/geokit-rails. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-7xvc-v44j-46fh | CVE-2023-26153 | CRITICAL | geokit-rails Command Injection vulnerability |
CVE-2023-26153 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2023-26153
To remediate this vulnerability, upgrade all affected Geokit rails 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 geokit-rails to 2.5.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for geokit-rails
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-26153, inspect your project dependencies for Geokit rails:
inspect dependencies for geokit-rails
Analyze the terminal output to locate any version of Geokit rails in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.5.0), 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Geokit rails, 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-2023-26153 Affected Geokit rails Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
geokit-rails
|
RubyGems |
< 2.5.0
|
2.5.0
|
References
Frequently Asked Questions
What is CVE-2023-26153?
Which Geokit rails versions are affected?
What version fixes CVE-2023-26153?
Is geokit-rails affected?
What is the CVSS score of CVE-2023-26153?
What CWE is associated with CVE-2023-26153?
How can I check RubyGems dependencies for CVE-2023-26153?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7xvc-v44j-46fh",
"modified" : "2023-10-13T19:36:29Z",
"published" : "2023-10-06T06:30:16Z",
"aliases" : [ "CVE-2023-26153" ],
"summary" : "geokit-rails Command Injection vulnerability",
"details" : "Versions of the package geokit-rails before 2.5.0 are vulnerable to Command Injection due to unsafe deserialisation of YAML within the 'geo_location' cookie. This issue can be exploited remotely via a malicious cookie value.\n\n**Note:**\n\n An attacker can use this vulnerability to execute commands on the host system.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "geokit-rails"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.5.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-26153"
}, {
"type" : "WEB",
"url" : "https://github.com/geokit/geokit-rails/commit/7ffc5813e57f6f417987043e1039925fd0865c43"
}, {
"type" : "WEB",
"url" : "https://github.com/geokit/geokit-rails/commit/a93dfe49fb9aeae7164e2f8c4041450a04b5482f"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/CalumHutton/b7aa1c2e71c8d4386463ac14f686901d"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-7xvc-v44j-46fh"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/geokit/geokit-rails"
}, {
"type" : "WEB",
"url" : "https://github.com/geokit/geokit-rails/blob/master/lib/geokit-rails/ip_geocode_lookup.rb#L37"
}, {
"type" : "WEB",
"url" : "https://github.com/geokit/geokit-rails/blob/master/lib/geokit-rails/ip_geocode_lookup.rb%23L37"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/geokit-rails/CVE-2023-26153.yml"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-RUBY-GEOKITRAILS-5920323"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502", "CWE-77" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-10-06T18:45:58Z",
"nvd_published_at" : "2023-10-06T05:15:52Z"
}
}