{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-48339 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2022-48339 is a high-severity command injection vulnerability in n/a, published on 20 Feb 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-48339 and fix it if it is affected.\n\nWhat it is: CVE-2022-48339 is a high-severity command injection vulnerability in n/a, published on 20 Feb 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-48339 in the wild and no public exploit code.\n\nAffected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-48339/ (Markdown: https://insights.sbomify.com/CVE-2022-48339/index.md)","id":"CVE-2022-48339","markdown":"https://insights.sbomify.com/CVE-2022-48339/index.md","name":"CVE-2022-48339","record":{"aliases":["AZL-13682","DEBIAN-CVE-2022-48339","GHSA-jwxq-f9vm-725g","RHSA-2023:3481","UBUNTU-CVE-2022-48339","USN-5955-1"],"analysis":{"component_type":"desktop_application","fix_type":"patch","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"GNU Emacs","requires_auth":"none","summary":"Attackers can execute arbitrary code via shell metacharacters in file or directory names processed by the htmlfontify.el package in GNU Emacs.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"emacs","vendor":"gnu"}],"cvss":{"score":7.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"},{"id":"CWE-1116","name":"Inaccurate Source Code Comments"}],"description":"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.","ecosystems":["Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Command injection in n/a","id":"CVE-2022-48339","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2022"},"n_packages":27,"n_references":5,"next":{"headline":"Use after free in n/a","id":"CVE-2022-48340"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs","purl":"pkg:rpm/redhat/emacs","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-common","purl":"pkg:rpm/redhat/emacs-common","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-debuginfo","purl":"pkg:rpm/redhat/emacs-debuginfo","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-el","purl":"pkg:rpm/redhat/emacs-el","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-filesystem","purl":"pkg:rpm/redhat/emacs-filesystem","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-nox","purl":"pkg:rpm/redhat/emacs-nox","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-terminal","purl":"pkg:rpm/redhat/emacs-terminal","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs","purl":"pkg:rpm/redhat/emacs","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-common","purl":"pkg:rpm/redhat/emacs-common","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-debuginfo","purl":"pkg:rpm/redhat/emacs-debuginfo","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-el","purl":"pkg:rpm/redhat/emacs-el","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-nox","purl":"pkg:rpm/redhat/emacs-nox","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-terminal","purl":"pkg:rpm/redhat/emacs-terminal","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs","purl":"pkg:rpm/redhat/emacs","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-common","purl":"pkg:rpm/redhat/emacs-common","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-debuginfo","purl":"pkg:rpm/redhat/emacs-debuginfo","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-el","purl":"pkg:rpm/redhat/emacs-el","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-filesystem","purl":"pkg:rpm/redhat/emacs-filesystem","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-nox","purl":"pkg:rpm/redhat/emacs-nox","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-terminal","purl":"pkg:rpm/redhat/emacs-terminal","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs","purl":"pkg:rpm/redhat/emacs","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-common","purl":"pkg:rpm/redhat/emacs-common","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-debuginfo","purl":"pkg:rpm/redhat/emacs-debuginfo","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-el","purl":"pkg:rpm/redhat/emacs-el","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-filesystem","purl":"pkg:rpm/redhat/emacs-filesystem","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-nox","purl":"pkg:rpm/redhat/emacs-nox","source":"RHSA-2023:3481"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["1:24.3-23.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"emacs-terminal","purl":"pkg:rpm/redhat/emacs-terminal","source":"RHSA-2023:3481"}],"prev":{"headline":"Command injection in n/a","id":"CVE-2022-48338"},"products":["n/a"],"published":"2023-02-20","related":[{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2007-6109","kev_date_added":null,"published":"2007-12-07"},{"cvss_score":9.8,"headline":"Code injection in n/a","id":"CVE-2024-39331","kev_date_added":null,"published":"2024-06-23"},{"cvss_score":7.8,"headline":"Code injection in n/a","id":"CVE-2024-53920","kev_date_added":null,"published":"2024-11-27"},{"cvss_score":7.8,"headline":"Code injection in n/a","id":"CVE-2024-30202","kev_date_added":null,"published":"2024-03-25"},{"cvss_score":7.8,"headline":"Command injection in emacs","id":"CVE-2023-2491","kev_date_added":null,"published":"2023-05-17"},{"cvss_score":7.8,"headline":"emacsclient-mail.desktop in Emacs 28.1 through 28.2 is vulnerable to shell command injections through a crafted mailto: URI.","id":"CVE-2023-27985","kev_date_added":null,"published":"2023-03-09"},{"cvss_score":7.8,"headline":"emacsclient-mail.desktop in Emacs 28.1 through 28.2 is vulnerable to Emacs Lisp code injections through a crafted mailto: URI with unescaped","id":"CVE-2023-27986","kev_date_added":null,"published":"2023-03-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-03-18","vendors":["n/a"]},"summary":"Attackers can execute arbitrary code via shell metacharacters in file or directory names processed by the htmlfontify.el package in GNU Emacs.","url":"https://insights.sbomify.com/CVE-2022-48339/"}