geokit-rails Command Injection vulnerability
Published 6 Oct 2023 · Updated 16 Feb 2024
Is your project on an affected geokit-rails?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <2.5.0
- Fixed in
- 2.5.0
bundle update --conservative geokit-rails # Gemfile: '>= 2.5.0'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.
Note:
An attacker can use this vulnerability to execute commands on the host system.
Is GHSA-7xvc-v44j-46fh in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected geokit-rails, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-26153
- Linkgithub.com/geokit/geokit-rails/commit/7ffc5813e57f6f417987043e1039925fd0865c43
- Linkgithub.com/geokit/geokit-rails/commit/a93dfe49fb9aeae7164e2f8c4041450a04b5482f
- Linkgist.github.com/CalumHutton/b7aa1c2e71c8d4386463ac14f686901d
- Advisorygithub.com/advisories/GHSA-7xvc-v44j-46fh
- Packagegithub.com/geokit/geokit-rails
- Linkgithub.com/geokit/geokit-rails/blob/master/lib/geokit-rails/ip_geocode_lookup.rb#L37
- Linkgithub.com/geokit/geokit-rails/blob/master/lib/geokit-rails/ip_geocode_lookup.rb%23L37
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/geokit-rails/CVE-2023-26153.yml
- Linksecurity.snyk.io/vuln/SNYK-RUBY-GEOKITRAILS-5920323
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.