GitHub Advisoryadvisory · RubyGems
GHSA-h2wm-p2vg-6pw4 Kredis JSON Possible Deserialization of Untrusted Data Vulnerability
MEDIUM
Official page ↗
- Aliases
- CVE-2023-27531
- Ecosystem
- RubyGems
- Packages
- kredis
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Weaknesses
- CWE-502
- Reviewed
- 2023-06-09
Affected packages
• RubyGems kredis: < 1.3.0.1 → fixed in 1.3.0.1
Description
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!
Related
Alias · CVE (1)
- CVE-2023-27531 There is a deserialization of untrusted data vulnerability in the Kredis JSON deserialization code vulnerability
Weakness · CWE (1)
- CWE-502 Deserialization of Untrusted Data weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-27531 advisory
- https://github.com/rails/kredis/commit/d576b7ae5c8d3d74eeb4bd84cad0aa64ffc299fa web
- https://discuss.rubyonrails.org/t/cve-2023-27531-possible-deserialization-of-untrusted-data-vulnerability-in-kredis-json/82467 web
- https://discuss.rubyonrails.org/t/cve-2023-27531-possible-deserialization-of-untrusted-data-vulnerability-in-kredis-json/82467#post_1 web
- https://github.com/rails/kredis package
- https://github.com/rails/kredis/releases/tag/v1.3.0.1 web
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/kredis/CVE-2023-27531.yml web