Vulnerabilities in pkg:gem/geokit-rails

PACKAGE
Advisory Identifier: GHSA-7xvc-v44j-46fh
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/geokit-rails

1 Known Advisory Record(s)

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

CVE Identifier CVE-2023-26153
GHSA Identifier GHSA-7xvc-v44j-46fh
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Geokit rails
Package Ecosystem RubyGems
Published Date
Last Updated

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

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 High (C:H)
Integrity High (I:H)
Availability High (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.

geokit-rails fixed: 2.5.0
Upgrade geokit-rails to 2.5.0
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 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

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. **Note:** An attacker can use this vulnerability to execute commands on the host system.

CVE-2023-26153 Affected Geokit rails Versions

1 component(s)
Fixed Versions:
2.5.0
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?
CVE-2023-26153 is a security vulnerability in Geokit rails involving geokit-rails Command Injection vulnerability under CWE-502: Deserialization of Untrusted Data.
Which Geokit rails versions are affected?
Affected versions include releases prior to 2.5.0 across affected packages: geokit-rails.
What version fixes CVE-2023-26153?
Upgrading to 2.5.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is geokit-rails affected?
Yes, geokit-rails is affected in releases prior to 2.5.0. Upgrade your dependency to 2.5.0 or later.
What is the CVSS score of CVE-2023-26153?
CVE-2023-26153 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-26153?
CVE-2023-26153 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check RubyGems dependencies for CVE-2023-26153?
Run the dependency tree command: 'inspect dependencies for geokit-rails'. 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-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"
  }
}