Skip to content
Heist/ feed
Back to feed
Medium

ruby-dalli — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2022-4064

A vulnerability was found in Dalli up to 3.2.2. It has been classified as problematic. 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 of the argument cas/ttl leads to injection. It is possible to launch the attack remotely. The complexity of an attack is rather high. The exploitability is told to be difficult. The exploit has been disclosed to the public and may be used. Upgrading to version 3.2.3 is able to address this issue. The patch is identified as 48d594dae55934476fec61789e7a7c3700e0f50d. It is recommended to upgrade the affected component.

Products
ruby-dalli
Affected versions
2.7.11-1, 2.7.4-1, 2.7.9-1, 2.7.9-2, 3.0.6-1, 3.0.6-1.1, 3.0.6-2, 3.2.8-1, 3.2.8-2, 5.0.5-1, 5.0.6-1
Fixed versions
Not specified
CVEs
CVE-2022-4064
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:43 UTC · Revision 1

Source evidence

UBUNTU-CVE-2022-4064

core-osv · Original source

Published 19 Nov 2022, 19:15 UTC

A vulnerability was found in Dalli up to 3.2.2. It has been classified as problematic. 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 of the argument cas/ttl leads to injection. It is possible to launch the attack remotely. The complexity of an attack is rather high. The exploitability is told to be difficult. The exploit has been disclosed to the public and may be used. Upgrading to version 3.2.3 is able to address this issue. The patch is identified as 48d594dae55934476fec61789e7a7c3700e0f50d. It is recommended to upgrade the affected component.

osv:UBUNTU-CVE-2022-4064

ruby-dalli

Fixed versions: Not specified

ruby-dalli

Fixed versions: Not specified

ruby-dalli

Fixed versions: Not specified

ruby-dalli

Fixed versions: Not specified

ruby-dalli

Fixed versions: Not specified

ruby-dalli

Fixed versions: Not specified

ruby-dalli

Fixed versions: Not specified

ruby-dalli

Fixed versions: Not specified

Complete source record
{
  "id": "ee7b64732d89474ce01fe567a17b5cea18e57eaf7e8d459f60c87c6444e119fe",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-4064",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2022-4064",
    "summary": "A vulnerability was found in Dalli up to 3.2.2. It has been classified as problematic. 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 of the argument cas/ttl leads to injection. It is possible to launch the attack remotely. The complexity of an attack is rather high. The exploitability is told to be difficult. The exploit has been disclosed to the public and may be used. Upgrading to version 3.2.3 is able to address this issue. The patch is identified as 48d594dae55934476fec61789e7a7c3700e0f50d. It is recommended to upgrade the affected component.",
    "evidence": "osv:UBUNTU-CVE-2022-4064",
    "products": [
      {
        "name": {
          "value": "ruby-dalli",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.7.4-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-dalli",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.7.4-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-dalli",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.7.9-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.7.9-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-dalli",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.7.11-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3.0.6-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-dalli",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.0.6-1.1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.0.6-2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-dalli",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.2.8-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "3.2.8-2",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-dalli",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.2.8-2",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "5.0.5-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "5.0.6-1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-dalli",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.2.8-2",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2022-4064",
      "aliases": [
        "UBUNTU-CVE-2022-4064"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
        },
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
        },
        {
          "type": "Ubuntu",
          "score": "low"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-dalli",
            "purl": "pkg:deb/ubuntu/ruby-dalli?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "2.7.4-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4064.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-dalli",
                "binary_version": "2.7.4-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-dalli",
            "purl": "pkg:deb/ubuntu/ruby-dalli?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "2.7.4-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4064.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-dalli",
                "binary_version": "2.7.4-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-dalli",
            "purl": "pkg:deb/ubuntu/ruby-dalli?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "2.7.9-1",
            "2.7.9-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4064.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-dalli",
                "binary_version": "2.7.9-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-dalli",
            "purl": "pkg:deb/ubuntu/ruby-dalli?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2.7.11-1",
            "3.0.6-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4064.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-dalli",
                "binary_version": "3.0.6-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-dalli",
            "purl": "pkg:deb/ubuntu/ruby-dalli?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "3.0.6-1.1",
            "3.0.6-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4064.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-dalli",
                "binary_version": "3.0.6-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-dalli",
            "purl": "pkg:deb/ubuntu/ruby-dalli?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "3.2.8-1",
            "3.2.8-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4064.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-dalli",
                "binary_version": "3.2.8-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-dalli",
            "purl": "pkg:deb/ubuntu/ruby-dalli?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "3.2.8-2",
            "5.0.5-1",
            "5.0.6-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4064.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-dalli",
                "binary_version": "5.0.6-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-dalli",
            "purl": "pkg:deb/ubuntu/ruby-dalli?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "3.2.8-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4064.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-dalli",
                "binary_version": "3.2.8-2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:55:59.357801108Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-4064"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2022-4064",
        "https://github.com/petergoldstein/dalli/issues/932",
        "https://github.com/petergoldstein/dalli/pull/933",
        "https://github.com/petergoldstein/dalli/commit/48d594dae55934476fec61789e7a7c3700e0f50d",
        "https://www.cve.org/CVERecord?id=CVE-2022-4064"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-4064",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/2/score"
  },
  "source_id": "core-osv",
  "document_id": 354482,
  "published_at": "2022-11-19T19:15:00+00:00"
}