CVE-2023-27531 — Vulnerability in kredis — CVE Details
Kredis JSON Possible Deserialization of Untrusted Data Vulnerability
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.80%). Schedule for your next planned update.
Does your project use an affected kredis version?
Paste your Gemfile.lock to check it for CVE-2023-27531 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
'Not affected: None.' 'Versions Affected: All.' '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.
Releases The fixed releases are available at the normal locations.
Workarounds There are no feasible workarounds for this issue.
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_k 7 for reporting this!
Advisory Timeline
- First published June 9, 2023 (1266 days ago).
- Last revised January 10, 2025 — 581 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install kredis -v 1.3.0.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| kredis RubyGems · Affected: 0.1.0, 0.1.1, 0.1.2, 0.2.0 (+11 more) | 1.3.0.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-502Deserialization of Untrusted DataMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-27531ADVISORY
- https://github.com/rails/kredis/commit/d576b7ae5c8d3d74eeb4bd84cad0aa64ffc299faWEB
- https://discuss.rubyonrails.org/t/cve-2023-27531-possible-deserialization-of-untrusted-data-vulnerability-in-kredis-json/82467WEB
- https://discuss.rubyonrails.org/t/cve-2023-27531-possible-deserialization-of-untrusted-data-vulnerability-in-kredis-json/82467#post_1WEB
- https://github.com/rails/kredisPACKAGE
- https://github.com/rails/kredis/releases/tag/v1.3.0.1WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/kredis/CVE-2023-27531.ymlWEB
Frequently Asked Questions
- What is CVE-2023-27531?
- Kredis JSON Possible Deserialization of Untrusted Data Vulnerability. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.3/10).
- How do I check if my project is affected by CVE-2023-27531?
- CVE-2023-27531 affects kredis. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-27531 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is an above-median EPSS score — 53.2% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-128084MEDIUM
sqlite3-ruby: Possible SQL query truncation when a string is 4 GiB or larger
- CVE-2026-115472MEDIUM
Doorkeeper: When using public clients, any client can revoke any access token