{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-4883 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2022-4883 is a high-severity command injection vulnerability in libXpm, published on 7 Feb 2023. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-4883 and fix it if it is affected.\n\nWhat it is: CVE-2022-4883 is a high-severity command injection vulnerability in libXpm, published on 7 Feb 2023. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-4883 in the wild and no public exploit code.\n\nAffected product: libXpm. 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-4883/ (Markdown: https://insights.sbomify.com/CVE-2022-4883/index.md)","id":"CVE-2022-4883","markdown":"https://insights.sbomify.com/CVE-2022-4883/index.md","name":"CVE-2022-4883","record":{"aliases":["ALPINE-CVE-2022-4883","AZL-13248","DEBIAN-CVE-2022-4883","GHSA-75px-q76w-83rc","JLSEC-2026-285","RHSA-2023:0377","UBUNTU-CVE-2022-4883"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"X11 image library","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary code by manipulating the PATH environment variable when libXpm processes compressed image files.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"libxpm","vendor":"x.org"}],"cvss":{"score":8.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-426","name":"Untrusted Search Path"}],"description":"A flaw was found in libXpm. When processing files with .Z or .gz extensions, the library calls external programs to compress and uncompress files, relying on the PATH environment variable to find these programs, which could allow a malicious user to execute other programs by manipulating the PATH environment variable.","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 libXpm","id":"CVE-2022-4883","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2022"},"n_packages":11,"n_references":5,"next":{"headline":"Path-Traversal in MKP storing","id":"CVE-2022-4884"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:3.5.12-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"libXpm","purl":"pkg:rpm/redhat/libXpm","source":"RHSA-2023:0377"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:3.5.12-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"libXpm-debuginfo","purl":"pkg:rpm/redhat/libXpm-debuginfo","source":"RHSA-2023:0377"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:3.5.12-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"libXpm-devel","purl":"pkg:rpm/redhat/libXpm-devel","source":"RHSA-2023:0377"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:3.5.12-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"libXpm-debuginfo","purl":"pkg:rpm/redhat/libXpm-debuginfo","source":"RHSA-2023:0377"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:3.5.12-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"libXpm-devel","purl":"pkg:rpm/redhat/libXpm-devel","source":"RHSA-2023:0377"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:3.5.12-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"libXpm","purl":"pkg:rpm/redhat/libXpm","source":"RHSA-2023:0377"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:3.5.12-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"libXpm-debuginfo","purl":"pkg:rpm/redhat/libXpm-debuginfo","source":"RHSA-2023:0377"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:3.5.12-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"libXpm-devel","purl":"pkg:rpm/redhat/libXpm-devel","source":"RHSA-2023:0377"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:3.5.12-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"libXpm","purl":"pkg:rpm/redhat/libXpm","source":"RHSA-2023:0377"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:3.5.12-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"libXpm-debuginfo","purl":"pkg:rpm/redhat/libXpm-debuginfo","source":"RHSA-2023:0377"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:3.5.12-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"libXpm-devel","purl":"pkg:rpm/redhat/libXpm-devel","source":"RHSA-2023:0377"}],"prev":{"headline":"kaltura mwEmbed Share Plugin share.js cross site scripting","id":"CVE-2022-4882"},"products":["libXpm"],"published":"2023-02-07","related":[{"cvss_score":9.8,"headline":"Integer overflow in n/a","id":"CVE-2016-10164","kev_date_added":null,"published":"2017-02-01"},{"cvss_score":7.5,"headline":"Denial of service in libXpm","id":"CVE-2022-46285","kev_date_added":null,"published":"2023-02-07"},{"cvss_score":7.5,"headline":"Denial of service in libXpm","id":"CVE-2022-44617","kev_date_added":null,"published":"2023-02-06"}],"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-20","vendors":["n/a"]},"summary":"Attackers can execute arbitrary code by manipulating the PATH environment variable when libXpm processes compressed image files.","url":"https://insights.sbomify.com/CVE-2022-4883/"}