[CVE-2023-27531] Possible Deserialization of Untrusted Data vulnerability in Kredis JSON
Kredis JSON deserialization processes untrusted data, which may lead to deserialization of unexpected objects in the system. An attacker could exploit this to cause deserialization of untrusted data.
- Triaged in 11 hours
- Fixed in 29 days
- Paid in 29 days
- Disclosed after 30 days
Summary by the program
[CVE-2023-27531] Possible Deserialization of Untrusted Data vulnerability in Kredis JSON
There is a deserialization of untrusted data vulnerability in the Kredis JSON deserialization code. This vulnerability has been assigned the CVE identifier CVE-2023-27531.
Versions Affected: All. Not affected: None. Fixed Versions: 1.3.0.1
Impact Carefully crafted JSON data processed by Kredis may result in deserialization of untrusted data, potentially leading to deserialization of unexpected objects in the system.
Any applications using Kredis with JSON are affected.
Patches To aid users who aren’t able to upgrade immediately we have provided patches for the two supported release series. They are in git-am format and consist of a single changeset.
1-3-0-1-kredis.patch - Patch for 1.3.0 series
Credits Thank you ooooooo_q for reporting this!
Full security advisory: https://discuss.rubyonrails.org/t/cve-2023-27531-possible-deserialization-of-untrusted-data-vulnerability-in-kredis-json/82467
The report
I made a report and patch at https://hackerone.com/reports/1702859 .
There is a deserialization of untrusted data vulnerability in the Kredis JSON deserialization code. This vulnerability has been assigned the CVE identifier CVE-2023-27531.
Impact
Carefully crafted JSON data processed by Kredis may result in deserialization of untrusted data, potentially leading to deserialization of unexpected objects in the system.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Kredis JSON deserialization code does not properly restrict which types of objects can be instantiated from untrusted JSON input.
What the attacker needed
Application uses Kredis with JSON
The fix
The vulnerability was fixed in version 1.3.0.1, and patches were provided for the 1.3.0 series.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Kredis is a Ruby library that stores data in Redis. When it reads JSON data, it may turn that data into objects in a way that an attacker can control, which is dangerous because it can lead to unexpected behaviour. This is called deserialization of untrusted data.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.