{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-46285 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2022-46285 is a high-severity denial of service vulnerability in libXpm, published on 7 Feb 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-46285 and fix it if it is affected.\n\nWhat it is: CVE-2022-46285 is a high-severity denial of service vulnerability in libXpm, published on 7 Feb 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-46285 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-46285/ (Markdown: https://insights.sbomify.com/CVE-2022-46285/index.md)","id":"CVE-2022-46285","markdown":"https://insights.sbomify.com/CVE-2022-46285/index.md","name":"CVE-2022-46285","record":{"aliases":["ALPINE-CVE-2022-46285","AZL-13249","DEBIAN-CVE-2022-46285","GHSA-x5vr-48jx-h8wp","JLSEC-2026-284","UBUNTU-CVE-2022-46285","USN-5807-3"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"X11 image library","requires_auth":"none","summary":"An attacker can cause a denial of service in applications using libXpm by providing a file with an unclosed comment, triggering an infinite loop.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"libxpm","vendor":"x.org"}],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"description":"A flaw was found in libXpm. This issue occurs when parsing a file with a comment not closed; the end-of-file condition will not be detected, leading to an infinite loop and resulting in a Denial of Service in the application linked to the library.","ecosystems":[],"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":"Denial of service in libXpm","id":"CVE-2022-46285","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"denial_of_service","year":"2022"},"n_packages":0,"n_references":7,"next":{"headline":"CVE-2022-46286","id":"CVE-2022-46286"},"packages":[],"prev":{"headline":"This CVE ID has been rejected or withdrawn by its CVE Numbering Authority because it is Unused","id":"CVE-2022-46283"},"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":8.8,"headline":"Command injection in libXpm","id":"CVE-2022-4883","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":"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-25","vendors":["n/a"]},"summary":"An attacker can cause a denial of service in applications using libXpm by providing a file with an unclosed comment, triggering an infinite loop.","url":"https://insights.sbomify.com/CVE-2022-46285/"}