OESA-2023-1148 (CVE-2022-48339)

Vulnerability from osv_openeuler – Published: 2023-03-04 11:05 – Updated: 2026-08-06 11:05 – Source website
VLAI
Summary
emacs security update
Details

Emacs is the extensible, customizable, self-documenting real-time display editor.At its core is an interpreter for Emacs Lisp, a dialect of the Lisp programming language with extensions to support text editing. And it is an entire ecosystem of functionality beyond text editing,including a project planner, mail and news reader, debugger interface, calendar, and more.

Security Fix(es):

An issue was discovered in GNU Emacs through 28.2. htmlfontify.el has a command injection vulnerability. In the hfy-istext-command function, the parameter file and parameter srcdir come from external input, and parameters are not escaped. If a file name or directory name contains shell metacharacters, code may be executed.(CVE-2022-48339)

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.(CVE-2022-48338)

GNU Emacs through 28.2 allows attackers to execute commands via shell metacharacters in the name of a source-code file, because lib-src/etags.c uses the system C library function in its implementation of the etags program. For example, a victim may use the "etags -u *" command (suggested in the etags documentation) in a situation where the current working directory has contents that depend on untrusted input.(CVE-2022-48337)

Impacted products
Ecosystem Package Version
openEuler:20.03-LTS-SP1 emacs
pkg:rpm/openEuler/emacs&distro=openEuler-20.03-LTS-SP1
Affected: < 27.1-10.oe1 (ecosystem)
openEuler:20.03-LTS-SP3 emacs
pkg:rpm/openEuler/emacs&distro=openEuler-20.03-LTS-SP3
Affected: < 27.1-8.oe1 (ecosystem)
openEuler:22.03-LTS emacs
pkg:rpm/openEuler/emacs&distro=openEuler-22.03-LTS
Affected: < 27.2-9.oe2203sp1 (ecosystem)
openEuler:22.03-LTS-SP1 emacs
pkg:rpm/openEuler/emacs&distro=openEuler-22.03-LTS-SP1
Affected: < 27.2-9.oe2203sp1 (ecosystem)

{
  "affected": [
    {
      "ecosystem_specific": {
        "aarch64": [
          "emacs-lucid-27.1-10.oe1.aarch64.rpm",
          "emacs-devel-27.1-10.oe1.aarch64.rpm",
          "emacs-common-27.1-10.oe1.aarch64.rpm",
          "emacs-debugsource-27.1-10.oe1.aarch64.rpm",
          "emacs-nox-27.1-10.oe1.aarch64.rpm",
          "emacs-debuginfo-27.1-10.oe1.aarch64.rpm",
          "emacs-27.1-10.oe1.aarch64.rpm"
        ],
        "noarch": [
          "emacs-terminal-27.1-10.oe1.noarch.rpm",
          "emacs-filesystem-27.1-10.oe1.noarch.rpm",
          "emacs-help-27.1-10.oe1.noarch.rpm"
        ],
        "src": [
          "emacs-27.1-10.oe1.src.rpm"
        ],
        "x86_64": [
          "emacs-debuginfo-27.1-10.oe1.x86_64.rpm",
          "emacs-devel-27.1-10.oe1.x86_64.rpm",
          "emacs-debugsource-27.1-10.oe1.x86_64.rpm",
          "emacs-27.1-10.oe1.x86_64.rpm",
          "emacs-lucid-27.1-10.oe1.x86_64.rpm",
          "emacs-nox-27.1-10.oe1.x86_64.rpm",
          "emacs-common-27.1-10.oe1.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:20.03-LTS-SP1",
        "name": "emacs",
        "purl": "pkg:rpm/openEuler/emacs\u0026distro=openEuler-20.03-LTS-SP1"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "27.1-10.oe1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "aarch64": [
          "emacs-devel-27.1-8.oe1.aarch64.rpm",
          "emacs-debuginfo-27.1-8.oe1.aarch64.rpm",
          "emacs-common-27.1-8.oe1.aarch64.rpm",
          "emacs-27.1-8.oe1.aarch64.rpm",
          "emacs-debugsource-27.1-8.oe1.aarch64.rpm",
          "emacs-lucid-27.1-8.oe1.aarch64.rpm",
          "emacs-nox-27.1-8.oe1.aarch64.rpm"
        ],
        "noarch": [
          "emacs-filesystem-27.1-8.oe1.noarch.rpm",
          "emacs-help-27.1-8.oe1.noarch.rpm",
          "emacs-terminal-27.1-8.oe1.noarch.rpm"
        ],
        "src": [
          "emacs-27.1-8.oe1.src.rpm"
        ],
        "x86_64": [
          "emacs-common-27.1-8.oe1.x86_64.rpm",
          "emacs-debugsource-27.1-8.oe1.x86_64.rpm",
          "emacs-nox-27.1-8.oe1.x86_64.rpm",
          "emacs-lucid-27.1-8.oe1.x86_64.rpm",
          "emacs-27.1-8.oe1.x86_64.rpm",
          "emacs-debuginfo-27.1-8.oe1.x86_64.rpm",
          "emacs-devel-27.1-8.oe1.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:20.03-LTS-SP3",
        "name": "emacs",
        "purl": "pkg:rpm/openEuler/emacs\u0026distro=openEuler-20.03-LTS-SP3"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "27.1-8.oe1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "aarch64": [
          "emacs-27.2-9.oe2203.aarch64.rpm",
          "emacs-debugsource-27.2-9.oe2203.aarch64.rpm",
          "emacs-nox-27.2-9.oe2203.aarch64.rpm",
          "emacs-lucid-27.2-9.oe2203.aarch64.rpm",
          "emacs-debuginfo-27.2-9.oe2203.aarch64.rpm",
          "emacs-devel-27.2-9.oe2203.aarch64.rpm",
          "emacs-common-27.2-9.oe2203.aarch64.rpm",
          "emacs-devel-27.2-9.oe2203sp1.aarch64.rpm",
          "emacs-lucid-27.2-9.oe2203sp1.aarch64.rpm",
          "emacs-debuginfo-27.2-9.oe2203sp1.aarch64.rpm",
          "emacs-common-27.2-9.oe2203sp1.aarch64.rpm",
          "emacs-debugsource-27.2-9.oe2203sp1.aarch64.rpm",
          "emacs-27.2-9.oe2203sp1.aarch64.rpm",
          "emacs-nox-27.2-9.oe2203sp1.aarch64.rpm"
        ],
        "noarch": [
          "emacs-terminal-27.2-9.oe2203.noarch.rpm",
          "emacs-filesystem-27.2-9.oe2203.noarch.rpm",
          "emacs-help-27.2-9.oe2203.noarch.rpm",
          "emacs-terminal-27.2-9.oe2203sp1.noarch.rpm",
          "emacs-filesystem-27.2-9.oe2203sp1.noarch.rpm",
          "emacs-help-27.2-9.oe2203sp1.noarch.rpm"
        ],
        "src": [
          "emacs-27.2-9.oe2203.src.rpm",
          "emacs-27.2-9.oe2203sp1.src.rpm"
        ],
        "x86_64": [
          "emacs-lucid-27.2-9.oe2203.x86_64.rpm",
          "emacs-nox-27.2-9.oe2203.x86_64.rpm",
          "emacs-devel-27.2-9.oe2203.x86_64.rpm",
          "emacs-27.2-9.oe2203.x86_64.rpm",
          "emacs-debuginfo-27.2-9.oe2203.x86_64.rpm",
          "emacs-debugsource-27.2-9.oe2203.x86_64.rpm",
          "emacs-common-27.2-9.oe2203.x86_64.rpm",
          "emacs-common-27.2-9.oe2203sp1.x86_64.rpm",
          "emacs-debugsource-27.2-9.oe2203sp1.x86_64.rpm",
          "emacs-devel-27.2-9.oe2203sp1.x86_64.rpm",
          "emacs-lucid-27.2-9.oe2203sp1.x86_64.rpm",
          "emacs-27.2-9.oe2203sp1.x86_64.rpm",
          "emacs-debuginfo-27.2-9.oe2203sp1.x86_64.rpm",
          "emacs-nox-27.2-9.oe2203sp1.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:22.03-LTS",
        "name": "emacs",
        "purl": "pkg:rpm/openEuler/emacs\u0026distro=openEuler-22.03-LTS"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "27.2-9.oe2203sp1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "aarch64": [
          "emacs-devel-27.2-9.oe2203sp1.aarch64.rpm",
          "emacs-lucid-27.2-9.oe2203sp1.aarch64.rpm",
          "emacs-debuginfo-27.2-9.oe2203sp1.aarch64.rpm",
          "emacs-common-27.2-9.oe2203sp1.aarch64.rpm",
          "emacs-debugsource-27.2-9.oe2203sp1.aarch64.rpm",
          "emacs-27.2-9.oe2203sp1.aarch64.rpm",
          "emacs-nox-27.2-9.oe2203sp1.aarch64.rpm"
        ],
        "noarch": [
          "emacs-terminal-27.2-9.oe2203sp1.noarch.rpm",
          "emacs-filesystem-27.2-9.oe2203sp1.noarch.rpm",
          "emacs-help-27.2-9.oe2203sp1.noarch.rpm"
        ],
        "src": [
          "emacs-27.2-9.oe2203sp1.src.rpm"
        ],
        "x86_64": [
          "emacs-common-27.2-9.oe2203sp1.x86_64.rpm",
          "emacs-debugsource-27.2-9.oe2203sp1.x86_64.rpm",
          "emacs-devel-27.2-9.oe2203sp1.x86_64.rpm",
          "emacs-lucid-27.2-9.oe2203sp1.x86_64.rpm",
          "emacs-27.2-9.oe2203sp1.x86_64.rpm",
          "emacs-debuginfo-27.2-9.oe2203sp1.x86_64.rpm",
          "emacs-nox-27.2-9.oe2203sp1.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:22.03-LTS-SP1",
        "name": "emacs",
        "purl": "pkg:rpm/openEuler/emacs\u0026distro=openEuler-22.03-LTS-SP1"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "27.2-9.oe2203sp1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "severity": "High"
  },
  "details": "Emacs is the extensible, customizable, self-documenting real-time display editor.At its core is an interpreter for Emacs Lisp, a dialect of the Lisp programming language with extensions to support text editing. And it is an entire ecosystem of functionality beyond text editing,including a project planner, mail and news reader, debugger interface, calendar, and more.\r\n\r\nSecurity Fix(es):\r\n\r\nAn issue was discovered in GNU Emacs through 28.2. htmlfontify.el has a command injection vulnerability. In the hfy-istext-command function, the parameter file and parameter srcdir come from external input, and parameters are not escaped. If a file name or directory name contains shell metacharacters, code may be executed.(CVE-2022-48339)\r\n\r\nAn 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.(CVE-2022-48338)\r\n\r\nGNU Emacs through 28.2 allows attackers to execute commands via shell metacharacters in the name of a source-code file, because lib-src/etags.c uses the system C library function in its implementation of the etags program. For example, a victim may use the \u0026quot;etags -u *\u0026quot; command (suggested in the etags documentation) in a situation where the current working directory has contents that depend on untrusted input.(CVE-2022-48337)",
  "id": "OESA-2023-1148",
  "modified": "2026-08-06T11:05:37Z",
  "published": "2023-03-04T11:05:37Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1148"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-48339"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-48338"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-48337"
    }
  ],
  "schema_version": "1.7.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "emacs security update",
  "upstream": [
    "CVE-2022-48339",
    "CVE-2022-48338",
    "CVE-2022-48337"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.