CVE-2023-26153 geokit-rails Command Injection vulnerability

High 8.3 Published Updated

Remote attackers can execute arbitrary commands on the host system by sending a malicious YAML cookie to applications using this Ruby geolocation library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-26153?

CVE-2023-26153 is a high-severity unsafe deserialization vulnerability in geokit-rails, published on 6 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-502, CWE-78

Which versions are affected by CVE-2023-26153?

2 open source packages ship an affected version, including geokit-rails. It affects 1 product.

PackageAffectedFixed in
geokit-rails RubyGemsAll versions2.5.0
geokit-rails RubyGemsAll versions2.5.0

Products include Geokit Geokit-Rails.

How do I fix CVE-2023-26153?

Upgrade geokit-rails to 2.5.0 or later.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2023-26153 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-26153 exists.

Sources

Also known as GHSA-7xvc-v44j-46fh.

Is CVE-2023-26153 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free