ubuntu-cve-2022-48338
Vulnerability from osv_ubuntu
Published
2023-02-20 23:15
Modified
2026-05-20 14:56
Summary
Details

An issue was discovered in GNU Emacs through 28.2. In ruby-mode.el, the ruby-find-library-file function has a local command injection vulnerability. The ruby-find-library-file function is an interactive function, and bound to C-c C-f. Inside the function, the external command gem is called through shell-command-to-string, but the feature-name parameters are not escaped. Thus, malicious Ruby source files may cause commands to be executed.


{
  "affected": [
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "xemacs21",
            "binary_version": "21.4.22-14ubuntu1"
          },
          {
            "binary_name": "xemacs21-bin",
            "binary_version": "21.4.22-14ubuntu1"
          },
          {
            "binary_name": "xemacs21-mule",
            "binary_version": "21.4.22-14ubuntu1"
          },
          {
            "binary_name": "xemacs21-mule-canna-wnn",
            "binary_version": "21.4.22-14ubuntu1"
          },
          {
            "binary_name": "xemacs21-nomule",
            "binary_version": "21.4.22-14ubuntu1"
          },
          {
            "binary_name": "xemacs21-support",
            "binary_version": "21.4.22-14ubuntu1"
          },
          {
            "binary_name": "xemacs21-supportel",
            "binary_version": "21.4.22-14ubuntu1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:16.04:LTS",
        "name": "xemacs21",
        "purl": "pkg:deb/ubuntu/xemacs21@21.4.22-14ubuntu1?arch=source\u0026distro=xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "21.4.22-4ubuntu3",
        "21.4.22-14ubuntu1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "xemacs21-basesupport",
            "binary_version": "2009.02.17.dfsg.2-2"
          },
          {
            "binary_name": "xemacs21-basesupport-el",
            "binary_version": "2009.02.17.dfsg.2-2"
          },
          {
            "binary_name": "xemacs21-mulesupport",
            "binary_version": "2009.02.17.dfsg.2-2"
          },
          {
            "binary_name": "xemacs21-mulesupport-el",
            "binary_version": "2009.02.17.dfsg.2-2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:16.04:LTS",
        "name": "xemacs21-packages",
        "purl": "pkg:deb/ubuntu/xemacs21-packages@2009.02.17.dfsg.2-2?arch=source\u0026distro=xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2009.02.17.dfsg.2-2"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "xemacs21",
            "binary_version": "21.4.24-5ubuntu1"
          },
          {
            "binary_name": "xemacs21-bin",
            "binary_version": "21.4.24-5ubuntu1"
          },
          {
            "binary_name": "xemacs21-mule",
            "binary_version": "21.4.24-5ubuntu1"
          },
          {
            "binary_name": "xemacs21-mule-canna-wnn",
            "binary_version": "21.4.24-5ubuntu1"
          },
          {
            "binary_name": "xemacs21-nomule",
            "binary_version": "21.4.24-5ubuntu1"
          },
          {
            "binary_name": "xemacs21-support",
            "binary_version": "21.4.24-5ubuntu1"
          },
          {
            "binary_name": "xemacs21-supportel",
            "binary_version": "21.4.24-5ubuntu1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:18.04:LTS",
        "name": "xemacs21",
        "purl": "pkg:deb/ubuntu/xemacs21@21.4.24-5ubuntu1?arch=source\u0026distro=bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "21.4.24-4ubuntu1",
        "21.4.24-5ubuntu1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "xemacs21-basesupport",
            "binary_version": "2009.02.17.dfsg.2-4"
          },
          {
            "binary_name": "xemacs21-basesupport-el",
            "binary_version": "2009.02.17.dfsg.2-4"
          },
          {
            "binary_name": "xemacs21-mulesupport",
            "binary_version": "2009.02.17.dfsg.2-4"
          },
          {
            "binary_name": "xemacs21-mulesupport-el",
            "binary_version": "2009.02.17.dfsg.2-4"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:18.04:LTS",
        "name": "xemacs21-packages",
        "purl": "pkg:deb/ubuntu/xemacs21-packages@2009.02.17.dfsg.2-4?arch=source\u0026distro=bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2009.02.17.dfsg.2-4"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "xemacs21",
            "binary_version": "21.4.24-9"
          },
          {
            "binary_name": "xemacs21-bin",
            "binary_version": "21.4.24-9"
          },
          {
            "binary_name": "xemacs21-mule",
            "binary_version": "21.4.24-9"
          },
          {
            "binary_name": "xemacs21-mule-canna-wnn",
            "binary_version": "21.4.24-9"
          },
          {
            "binary_name": "xemacs21-nomule",
            "binary_version": "21.4.24-9"
          },
          {
            "binary_name": "xemacs21-support",
            "binary_version": "21.4.24-9"
          },
          {
            "binary_name": "xemacs21-supportel",
            "binary_version": "21.4.24-9"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:20.04:LTS",
        "name": "xemacs21",
        "purl": "pkg:deb/ubuntu/xemacs21@21.4.24-9?arch=source\u0026distro=focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "21.4.24-8build1",
        "21.4.24-9"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "xemacs21-basesupport",
            "binary_version": "2009.02.17.dfsg.2-5"
          },
          {
            "binary_name": "xemacs21-basesupport-el",
            "binary_version": "2009.02.17.dfsg.2-5"
          },
          {
            "binary_name": "xemacs21-mulesupport",
            "binary_version": "2009.02.17.dfsg.2-5"
          },
          {
            "binary_name": "xemacs21-mulesupport-el",
            "binary_version": "2009.02.17.dfsg.2-5"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:20.04:LTS",
        "name": "xemacs21-packages",
        "purl": "pkg:deb/ubuntu/xemacs21-packages@2009.02.17.dfsg.2-5?arch=source\u0026distro=focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2009.02.17.dfsg.2-4",
        "2009.02.17.dfsg.2-5"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "emacs",
            "binary_version": "1:27.1+1-3ubuntu5.2"
          },
          {
            "binary_name": "emacs-bin-common",
            "binary_version": "1:27.1+1-3ubuntu5.2"
          },
          {
            "binary_name": "emacs-common",
            "binary_version": "1:27.1+1-3ubuntu5.2"
          },
          {
            "binary_name": "emacs-el",
            "binary_version": "1:27.1+1-3ubuntu5.2"
          },
          {
            "binary_name": "emacs-gtk",
            "binary_version": "1:27.1+1-3ubuntu5.2"
          },
          {
            "binary_name": "emacs-lucid",
            "binary_version": "1:27.1+1-3ubuntu5.2"
          },
          {
            "binary_name": "emacs-nox",
            "binary_version": "1:27.1+1-3ubuntu5.2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:22.04:LTS",
        "name": "emacs",
        "purl": "pkg:deb/ubuntu/emacs@1:27.1+1-3ubuntu5.2?arch=source\u0026distro=jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1:27.1+1-3ubuntu5.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1:27.1+1-3ubuntu3",
        "1:27.1+1-3ubuntu5",
        "1:27.1+1-3ubuntu5.1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "xemacs21",
            "binary_version": "21.4.24-9ubuntu2"
          },
          {
            "binary_name": "xemacs21-bin",
            "binary_version": "21.4.24-9ubuntu2"
          },
          {
            "binary_name": "xemacs21-mule",
            "binary_version": "21.4.24-9ubuntu2"
          },
          {
            "binary_name": "xemacs21-mule-canna-wnn",
            "binary_version": "21.4.24-9ubuntu2"
          },
          {
            "binary_name": "xemacs21-nomule",
            "binary_version": "21.4.24-9ubuntu2"
          },
          {
            "binary_name": "xemacs21-support",
            "binary_version": "21.4.24-9ubuntu2"
          },
          {
            "binary_name": "xemacs21-supportel",
            "binary_version": "21.4.24-9ubuntu2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:22.04:LTS",
        "name": "xemacs21",
        "purl": "pkg:deb/ubuntu/xemacs21@21.4.24-9ubuntu2?arch=source\u0026distro=jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "21.4.24-9ubuntu2"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "xemacs21-basesupport",
            "binary_version": "2009.02.17.dfsg.2-5"
          },
          {
            "binary_name": "xemacs21-basesupport-el",
            "binary_version": "2009.02.17.dfsg.2-5"
          },
          {
            "binary_name": "xemacs21-mulesupport",
            "binary_version": "2009.02.17.dfsg.2-5"
          },
          {
            "binary_name": "xemacs21-mulesupport-el",
            "binary_version": "2009.02.17.dfsg.2-5"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:22.04:LTS",
        "name": "xemacs21-packages",
        "purl": "pkg:deb/ubuntu/xemacs21-packages@2009.02.17.dfsg.2-5?arch=source\u0026distro=jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2009.02.17.dfsg.2-5"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "xemacs21",
            "binary_version": "21.4.24-12build3"
          },
          {
            "binary_name": "xemacs21-bin",
            "binary_version": "21.4.24-12build3"
          },
          {
            "binary_name": "xemacs21-mule",
            "binary_version": "21.4.24-12build3"
          },
          {
            "binary_name": "xemacs21-mule-canna-wnn",
            "binary_version": "21.4.24-12build3"
          },
          {
            "binary_name": "xemacs21-nomule",
            "binary_version": "21.4.24-12build3"
          },
          {
            "binary_name": "xemacs21-support",
            "binary_version": "21.4.24-12build3"
          },
          {
            "binary_name": "xemacs21-supportel",
            "binary_version": "21.4.24-12build3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:24.04:LTS",
        "name": "xemacs21",
        "purl": "pkg:deb/ubuntu/xemacs21@21.4.24-12build3?arch=source\u0026distro=noble"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "21.4.24-12",
        "21.4.24-12build2",
        "21.4.24-12build3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "xemacs21-basesupport",
            "binary_version": "2009.02.17.dfsg.3-3"
          },
          {
            "binary_name": "xemacs21-basesupport-el",
            "binary_version": "2009.02.17.dfsg.3-3"
          },
          {
            "binary_name": "xemacs21-mulesupport",
            "binary_version": "2009.02.17.dfsg.3-3"
          },
          {
            "binary_name": "xemacs21-mulesupport-el",
            "binary_version": "2009.02.17.dfsg.3-3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:24.04:LTS",
        "name": "xemacs21-packages",
        "purl": "pkg:deb/ubuntu/xemacs21-packages@2009.02.17.dfsg.3-3?arch=source\u0026distro=noble"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2009.02.17.dfsg.3-2",
        "2009.02.17.dfsg.3-3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "xemacs21",
            "binary_version": "21.4.24-12build3"
          },
          {
            "binary_name": "xemacs21-bin",
            "binary_version": "21.4.24-12build3"
          },
          {
            "binary_name": "xemacs21-mule",
            "binary_version": "21.4.24-12build3"
          },
          {
            "binary_name": "xemacs21-mule-canna-wnn",
            "binary_version": "21.4.24-12build3"
          },
          {
            "binary_name": "xemacs21-nomule",
            "binary_version": "21.4.24-12build3"
          },
          {
            "binary_name": "xemacs21-support",
            "binary_version": "21.4.24-12build3"
          },
          {
            "binary_name": "xemacs21-supportel",
            "binary_version": "21.4.24-12build3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:25.10",
        "name": "xemacs21",
        "purl": "pkg:deb/ubuntu/xemacs21@21.4.24-12build3?arch=source\u0026distro=questing"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "21.4.24-12build3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "xemacs21-basesupport",
            "binary_version": "2009.02.17.dfsg.3-3"
          },
          {
            "binary_name": "xemacs21-basesupport-el",
            "binary_version": "2009.02.17.dfsg.3-3"
          },
          {
            "binary_name": "xemacs21-mulesupport",
            "binary_version": "2009.02.17.dfsg.3-3"
          },
          {
            "binary_name": "xemacs21-mulesupport-el",
            "binary_version": "2009.02.17.dfsg.3-3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:25.10",
        "name": "xemacs21-packages",
        "purl": "pkg:deb/ubuntu/xemacs21-packages@2009.02.17.dfsg.3-3?arch=source\u0026distro=questing"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2009.02.17.dfsg.3-3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "xemacs21",
            "binary_version": "21.4.24-12build3"
          },
          {
            "binary_name": "xemacs21-bin",
            "binary_version": "21.4.24-12build3"
          },
          {
            "binary_name": "xemacs21-mule",
            "binary_version": "21.4.24-12build3"
          },
          {
            "binary_name": "xemacs21-mule-canna-wnn",
            "binary_version": "21.4.24-12build3"
          },
          {
            "binary_name": "xemacs21-nomule",
            "binary_version": "21.4.24-12build3"
          },
          {
            "binary_name": "xemacs21-support",
            "binary_version": "21.4.24-12build3"
          },
          {
            "binary_name": "xemacs21-supportel",
            "binary_version": "21.4.24-12build3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:26.04:LTS",
        "name": "xemacs21",
        "purl": "pkg:deb/ubuntu/xemacs21@21.4.24-12build3?arch=source\u0026distro=resolute"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "21.4.24-12build3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "xemacs21-basesupport",
            "binary_version": "2009.02.17.dfsg.3-3build1"
          },
          {
            "binary_name": "xemacs21-basesupport-el",
            "binary_version": "2009.02.17.dfsg.3-3build1"
          },
          {
            "binary_name": "xemacs21-mulesupport",
            "binary_version": "2009.02.17.dfsg.3-3build1"
          },
          {
            "binary_name": "xemacs21-mulesupport-el",
            "binary_version": "2009.02.17.dfsg.3-3build1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:26.04:LTS",
        "name": "xemacs21-packages",
        "purl": "pkg:deb/ubuntu/xemacs21-packages@2009.02.17.dfsg.3-3build1?arch=source\u0026distro=resolute"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2009.02.17.dfsg.3-3",
        "2009.02.17.dfsg.3-3build1"
      ]
    }
  ],
  "aliases": [],
  "details": "An issue was discovered in GNU Emacs through 28.2. In ruby-mode.el, the ruby-find-library-file function has a local command injection vulnerability. The ruby-find-library-file function is an interactive function, and bound to C-c C-f. Inside the function, the external command gem is called through shell-command-to-string, but the feature-name parameters are not escaped. Thus, malicious Ruby source files may cause commands to be executed.",
  "id": "UBUNTU-CVE-2022-48338",
  "modified": "2026-05-20T14:56:21Z",
  "published": "2023-02-20T23:15:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2022-48338"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2022-48338"
    },
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-7027-1"
    }
  ],
  "related": [
    "USN-7027-1"
  ],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2022-48338"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…