Unsanitized input leading to code injection in Dalli
Published 19 Nov 2022 · Updated 8 Nov 2023
Is your project on an affected dalli?
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
- <3.2.3
- Fixed in
- 3.2.3
bundle update --conservative dalli # Gemfile: '>= 3.2.3'Details
A vulnerability was found in Dalli. Affected is the function self.meta_set of the file lib/dalli/protocol/meta/request_formatter.rb of the component Meta Protocol Handler. The manipulation leads to injection. The exploit has been disclosed to the public and may be used. The name of the patch is 48d594dae55934476fec61789e7a7c3700e0f50d. It is recommended to apply a patch to fix this issue.
Is GHSA-3xg8-cc8f-9wv2 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 dalli, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-4064
- Linkgithub.com/petergoldstein/dalli/issues/932
- Linkgithub.com/petergoldstein/dalli/pull/933
- Linkgithub.com/petergoldstein/dalli/commit/48d594dae55934476fec61789e7a7c3700e0f50d
- Packagegithub.com/petergoldstein/dalli
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/dalli/CVE-2022-4064.yml
- Linkvuldb.com/?id.214026
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.