{"answers":{"affected":"It affects 4 products.","exploited":"There is no known exploitation of CVE-2022-4904 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2022-4904 is a high-severity memory corruption vulnerability in Fedoraproject Fedora, published on 6 Mar 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-4904 and fix it if it is affected.\n\nWhat it is: CVE-2022-4904 is a high-severity memory corruption vulnerability in Fedoraproject Fedora, published on 6 Mar 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-4904 in the wild and no public exploit code.\n\nAffected product: Fedoraproject Fedora. 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-4904/ (Markdown: https://insights.sbomify.com/CVE-2022-4904/index.md)","id":"CVE-2022-4904","markdown":"https://insights.sbomify.com/CVE-2022-4904/index.md","name":"CVE-2022-4904","record":{"aliases":["ALSA-2023:7116","AZL-13817","AZL-13827","AZL-13828","AZL-34775","AZL-43921","CLSA-2025-1744116893","CLSA-2026-1776431757","CLSA-2026-1776432133","CLSA-2026-1792443100","DEBIAN-CVE-2022-4904","DLA-3323-1","ECHO-38f2-beda-35a2","GHSA-v7h6-g695-5j7q","MGASA-2023-0069","OESA-2023-1091","OESA-2023-1110","RHSA-2023:6291","RHSA-2023:7116","RHSA-2023:7368","SUSE-SU-2023:0486-1","SUSE-SU-2023:3420-1","UBUNTU-CVE-2022-4904","USN-5907-1","openSUSE-SU-2024:12674-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["denial_of_service","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"c-ares DNS library","requires_auth":"none","summary":"A stack overflow in c-ares allows attackers to cause denial of service or limited data exposure via invalid input.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"c-ares","vendor":"c-ares_project"},{"product":"fedora","vendor":"fedoraproject"},{"product":"enterprise_linux","vendor":"redhat"},{"product":"software_collections","vendor":"redhat"}],"cvss":{"score":8.6,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","version":"3.1"},"cwes":[{"id":"CWE-1284","name":"Improper Validation of Specified Quantity in Input"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"A flaw was found in the c-ares package. The ares_set_sortlist is missing checks about the validity of the input string, which allows a possible arbitrary length stack overflow. This issue may cause a denial of service or a limited impact on confidentiality and integrity.","ecosystems":["AlmaLinux:8","Red Hat:enterprise_linux:8::baseos","Red Hat:rhel_eus:9.0::appstream","Red Hat:rhel_eus:9.0::baseos","Red Hat:rhel_eus:9.2::appstream","Red Hat:rhel_eus:9.2::baseos","SUSE:Enterprise Storage 7","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Real Time 15 SP3","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Linux Enterprise Workstation Extension 12 SP5","SUSE:Manager Proxy 4.2","SUSE:Manager Server 4.2","openSUSE:Leap 15.4","openSUSE:Leap Micro 5.3","openSUSE:Tumbleweed"],"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":"Memory corruption in c-ares","id":"CVE-2022-4904","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"fedoraproject:fedora","products":["fedoraproject:fedora","redhat:enterprise_linux","redhat:software_collections"],"type":"memory_corruption","year":"2022"},"n_packages":44,"n_references":4,"next":{"headline":"UDX Stateless Media Plugin class-settings.php setup_wizard_interface cross site scripting","id":"CVE-2022-4905"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["1.13.0-8.el8"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/almalinux/c-ares","source":"ALSA-2023:7116"},{"ecosystem":"AlmaLinux:8","fixed":["1.13.0-8.el8"],"introduced":["0"],"last_affected":[],"package":"c-ares-devel","purl":"pkg:rpm/almalinux/c-ares-devel","source":"ALSA-2023:7116"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.13.0-8.el8"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/redhat/c-ares","source":"RHSA-2023:7116"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.13.0-8.el8"],"introduced":["0"],"last_affected":[],"package":"c-ares-debuginfo","purl":"pkg:rpm/redhat/c-ares-debuginfo","source":"RHSA-2023:7116"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.13.0-8.el8"],"introduced":["0"],"last_affected":[],"package":"c-ares-debugsource","purl":"pkg:rpm/redhat/c-ares-debugsource","source":"RHSA-2023:7116"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.13.0-8.el8"],"introduced":["0"],"last_affected":[],"package":"c-ares-devel","purl":"pkg:rpm/redhat/c-ares-devel","source":"RHSA-2023:7116"},{"ecosystem":"Red Hat:rhel_eus:9.0::appstream","fixed":["0:1.17.1-5.el9_0.2"],"introduced":["0"],"last_affected":[],"package":"c-ares-debuginfo","purl":"pkg:rpm/redhat/c-ares-debuginfo","source":"RHSA-2023:6291"},{"ecosystem":"Red Hat:rhel_eus:9.0::appstream","fixed":["0:1.17.1-5.el9_0.2"],"introduced":["0"],"last_affected":[],"package":"c-ares-debugsource","purl":"pkg:rpm/redhat/c-ares-debugsource","source":"RHSA-2023:6291"},{"ecosystem":"Red Hat:rhel_eus:9.0::appstream","fixed":["0:1.17.1-5.el9_0.2"],"introduced":["0"],"last_affected":[],"package":"c-ares-devel","purl":"pkg:rpm/redhat/c-ares-devel","source":"RHSA-2023:6291"},{"ecosystem":"Red Hat:rhel_eus:9.0::baseos","fixed":["0:1.17.1-5.el9_0.2"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/redhat/c-ares","source":"RHSA-2023:6291"},{"ecosystem":"Red Hat:rhel_eus:9.0::baseos","fixed":["0:1.17.1-5.el9_0.2"],"introduced":["0"],"last_affected":[],"package":"c-ares-debuginfo","purl":"pkg:rpm/redhat/c-ares-debuginfo","source":"RHSA-2023:6291"},{"ecosystem":"Red Hat:rhel_eus:9.0::baseos","fixed":["0:1.17.1-5.el9_0.2"],"introduced":["0"],"last_affected":[],"package":"c-ares-debugsource","purl":"pkg:rpm/redhat/c-ares-debugsource","source":"RHSA-2023:6291"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:1.17.1-5.el9_2.2"],"introduced":["0"],"last_affected":[],"package":"c-ares-debuginfo","purl":"pkg:rpm/redhat/c-ares-debuginfo","source":"RHSA-2023:7368"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:1.17.1-5.el9_2.2"],"introduced":["0"],"last_affected":[],"package":"c-ares-debugsource","purl":"pkg:rpm/redhat/c-ares-debugsource","source":"RHSA-2023:7368"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:1.17.1-5.el9_2.2"],"introduced":["0"],"last_affected":[],"package":"c-ares-devel","purl":"pkg:rpm/redhat/c-ares-devel","source":"RHSA-2023:7368"},{"ecosystem":"Red Hat:rhel_eus:9.2::baseos","fixed":["0:1.17.1-5.el9_2.2"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/redhat/c-ares","source":"RHSA-2023:7368"},{"ecosystem":"Red Hat:rhel_eus:9.2::baseos","fixed":["0:1.17.1-5.el9_2.2"],"introduced":["0"],"last_affected":[],"package":"c-ares-debuginfo","purl":"pkg:rpm/redhat/c-ares-debuginfo","source":"RHSA-2023:7368"},{"ecosystem":"Red Hat:rhel_eus:9.2::baseos","fixed":["0:1.17.1-5.el9_2.2"],"introduced":["0"],"last_affected":[],"package":"c-ares-debugsource","purl":"pkg:rpm/redhat/c-ares-debugsource","source":"RHSA-2023:7368"},{"ecosystem":"SUSE:Enterprise Storage 7","fixed":["1.19.0-150000.3.20.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Enterprise%20Storage%207","source":"SUSE-SU-2023:0486-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["1.19.0-150000.3.20.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2023:0486-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","fixed":["1.19.0-150000.3.20.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSS","source":"SUSE-SU-2023:0486-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["1.19.0-150000.3.20.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2023:0486-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","fixed":["1.19.0-150000.3.20.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOS","source":"SUSE-SU-2023:0486-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["1.19.0-150000.3.20.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2023:0486-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.1","fixed":["1.19.0-150000.3.20.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.1","source":"SUSE-SU-2023:0486-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.2","fixed":["1.19.0-150000.3.20.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.2","source":"SUSE-SU-2023:0486-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.3","fixed":["1.19.0-150000.3.20.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.3","source":"SUSE-SU-2023:0486-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP4","fixed":["1.19.0-150000.3.20.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4","source":"SUSE-SU-2023:0486-1"},{"ecosystem":"SUSE:Linux Enterprise Real Time 15 SP3","fixed":["1.19.0-150000.3.20.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP3","source":"SUSE-SU-2023:0486-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5","fixed":["1.9.1-9.15.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5","source":"SUSE-SU-2023:3420-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-LTSS","fixed":["1.19.0-150000.3.20.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSS","source":"SUSE-SU-2023:0486-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-LTSS","fixed":["1.19.0-150000.3.20.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSS","source":"SUSE-SU-2023:0486-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP3-LTSS","fixed":["1.19.0-150000.3.20.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSS","source":"SUSE-SU-2023:0486-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["1.9.1-9.15.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2023:3420-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP1","fixed":["1.19.0-150000.3.20.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1","source":"SUSE-SU-2023:0486-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP2","fixed":["1.19.0-150000.3.20.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2","source":"SUSE-SU-2023:0486-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP3","fixed":["1.19.0-150000.3.20.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3","source":"SUSE-SU-2023:0486-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","fixed":["1.9.1-9.15.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5","source":"SUSE-SU-2023:3420-1"},{"ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP5","fixed":["1.9.1-9.15.1"],"introduced":["0"],"last_affected":[],"package":"libcares2","purl":"pkg:rpm/suse/libcares2\u0026distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2012%20SP5","source":"SUSE-SU-2023:3420-1"},{"ecosystem":"SUSE:Manager Proxy 4.2","fixed":["1.19.0-150000.3.20.1"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/suse/c-ares\u0026distro=SUSE%20Manager%20Proxy%204.2","source":"SUSE-SU-2023:0486-1"}],"prev":{"headline":"CodenameOne implicit intent for sensitive communication","id":"CVE-2022-4903"},"products":["c-ares"],"published":"2023-03-06","related":[{"cvss_score":7.5,"headline":"0-byte UDP payload DoS in c-ares","id":"CVE-2023-32067","kev_date_added":null,"published":"2023-05-25"},{"cvss_score":7.5,"headline":"Uncontrolled Resource Consumption in node","id":"CVE-2020-8277","kev_date_added":null,"published":"2020-11-19"},{"cvss_score":5.9,"headline":"Insufficient randomness in generation of DNS query IDs in c-ares","id":"CVE-2023-31147","kev_date_added":null,"published":"2023-05-25"},{"cvss_score":5.6,"headline":"Other in c-ares","id":"CVE-2021-3672","kev_date_added":null,"published":"2021-11-23"},{"cvss_score":4.1,"headline":"Buffer Underwrite in ares_inet_net_pton()","id":"CVE-2023-31130","kev_date_added":null,"published":"2023-05-25"},{"cvss_score":3.7,"headline":"AutoTools does not set CARES_RANDOM_FILE during cross compilation","id":"CVE-2023-31124","kev_date_added":null,"published":"2023-05-25"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"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":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"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-12-02","vendors":["n/a"]},"summary":"A stack overflow in c-ares allows attackers to cause denial of service or limited data exposure via invalid input.","url":"https://insights.sbomify.com/CVE-2022-4904/"}