CVE-2023-26153
JSON

8.3high

geokit-rails Command Injection vulnerability

Severity
8.3high CVSS:3.1 by snyk
Exploit likelihood
3.85% (higher than 90% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-7xvc-v44j-46fh

Description

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.

Affected

Product or packageVersionsReported by
geokit-railsbefore 2.5.0CVE List
geokit-rails (RubyGems)before 2.5.0GitHub Advisory Database
geokit geokit-railsbefore 2.5.0NVD

All scores

snyk8.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L/E:P
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-77CWE-78CWE-502

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Las versiones del paquete geokit-rails anteriores a la 2.5.0 son vulnerables a la inyección de comandos debido a una deserialización insegura de YAML dentro de la cookie 'geo_location'. Este problema se puede explotar de forma remota mediante un valor de cookie malicioso. **Nota:** Un atacante puede utilizar esta vulnerabilidad para ejecutar comandos en el host system.

References

https://security.snyk.io/vuln/SNYK-RUBY-GEOKITRAILS-5920323exploit, patch, third-party-advisory, web
https://gist.github.com/CalumHutton/b7aa1c2e71c8d4386463ac14f686901dexploit, third-party-advisory, web
https://github.com/geokit/geokit-rails/blob/master/lib/geokit-rails/ip_geocode_lookup.rb%23L37broken-link, web
https://github.com/geokit/geokit-rails/commit/7ffc5813e57f6f417987043e1039925fd0865c43patch, web
https://github.com/geokit/geokit-rails/commit/a93dfe49fb9aeae7164e2f8c4041450a04b5482fpatch, web
https://nvd.nist.gov/vuln/detail/CVE-2023-26153advisory
https://github.com/advisories/GHSA-7xvc-v44j-46fhadvisory
https://github.com/geokit/geokit-railspackage
https://github.com/geokit/geokit-rails/blob/master/lib/geokit-rails/ip_geocode_lookup.rb#L37web
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/geokit-rails/CVE-2023-26153.ymlweb

Sources

SourceRecordLicence
CVE ListCVE-2023-26153 changed 2024-09-19CVE Terms of Use
GitHub Advisory DatabaseGHSA-7xvc-v44j-46fh changed 2024-02-16CC-BY-4.0
NVDCVE-2023-26153 changed 2026-06-17Public domain