CVE-2023-27531 Kredis JSON Possible Deserialization of Untrusted Data Vulnerability
Attackers can execute arbitrary code via deserialization of untrusted data in the Kredis JSON library for Ruby on Rails.
- 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-27531?
CVE-2023-27531 is a medium-severity unsafe deserialization vulnerability in Rails Kredis JSON, published on 9 Jan 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
There is a deserialization of untrusted data vulnerability in the Kredis JSON deserialization code
Weakness: CWE-502
Which versions are affected by CVE-2023-27531?
2 open source packages ship an affected version, including kredis.
| Package | Affected | Fixed in |
|---|---|---|
kredis RubyGems | All versions | 1.3.0.1 |
kredis RubyGems | All versions | 1.3.0.1 |
How do I fix CVE-2023-27531?
Upgrade kredis to 1.3.0.1 or later.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2023-27531 being exploited?
There is no known exploitation of CVE-2023-27531 in the wild and no public exploit code.
Sources
Also known as GHSA-h2wm-p2vg-6pw4.