CVE-2023-26153
Ruby vulnerability analysis and mitigation

Overview

A command injection vulnerability was discovered in geokit-rails versions before 2.5.0, identified as CVE-2023-26153. The vulnerability stems from unsafe deserialization of YAML within the 'geo_location' cookie, which can be exploited remotely through malicious cookie values. The issue was disclosed on September 26, 2023, and affects the geokit-rails package, a Ruby gem used for geolocation functionality in Rails applications (Snyk Advisory).

Technical details

The vulnerability is classified with a CVSS v3.1 base score of 9.8 (CRITICAL) according to NIST, and 8.3 (HIGH) according to Snyk. The issue is related to CWE-502 (Deserialization of Untrusted Data) and CWE-78 (OS Command Injection). The vulnerable code is located in the IpGeocodeLookup module, specifically in the functionality that handles the retrieval of location data from cookies (NVD).

Impact

The vulnerability allows attackers to execute arbitrary commands on the host system through remote exploitation. Due to the nature of the vulnerability being remotely exploitable without requiring authentication or user interaction, it poses a significant security risk to affected systems (Snyk Advisory).

Mitigation and workarounds

The recommended mitigation is to upgrade geokit-rails to version 2.5.0 or higher, which removes YAML support and fixes the vulnerability. The fix was implemented through commits that specifically addressed the dangerous YAML loading vulnerability (GitHub Commit, GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66568CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
CVE-2025-66567CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
GHSA-4249-gjr8-jpq3HIGH8.7
  • RubyRuby
  • prosemirror_to_html
NoYesNov 13, 2025
CVE-2025-64501HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 10, 2025
GHSA-vfpf-xmwh-8m65HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 07, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management