{"answers":{"affected":"It affects 3 products.","exploited":"There is no known exploitation of CVE-2023-31130 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2023-31130 is a medium-severity memory corruption vulnerability in Debian Debian Linux, published on 25 May 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-31130 and fix it if it is affected.\n\nWhat it is: CVE-2023-31130 is a medium-severity memory corruption vulnerability in Debian Debian Linux, published on 25 May 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-31130 in the wild and no public exploit code.\n\nAffected product: Debian Debian Linux. 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-2023-31130/ (Markdown: https://insights.sbomify.com/CVE-2023-31130/index.md)","id":"CVE-2023-31130","markdown":"https://insights.sbomify.com/CVE-2023-31130/index.md","name":"CVE-2023-31130","record":{"aliases":["AZL-26914","AZL-26917","AZL-26922","AZL-26938","AZL-26940","AZL-26941","AZL-34781","AZL-43693","DEBIAN-CVE-2023-31130","ECHO-a21f-e650-029a","GHSA-x6mf-cxr9-8q6v","OESA-2023-1359","OESA-2023-1360","RHSA-2023:7392","UBUNTU-CVE-2023-31130"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"c-ares resolver library","requires_auth":"high_privilege","summary":"A buffer underflow in c-ares allows attackers to cause memory corruption and potential code execution if specific IPv6 addresses are configured.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"c-ares","vendor":"c-ares_project"},{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"}],"cvss":{"score":4.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-124","name":"Buffer Underwrite"}],"description":"c-ares is an asynchronous resolver library. ares_inet_net_pton() is vulnerable to a buffer underflow for certain ipv6 addresses, in particular \"0::00:00:00/2\" was found to cause an issue.  C-ares only uses this function internally for configuration purposes which would require an administrator to configure such an address via ares_set_sortlist(). However, users may externally use ares_inet_net_pton() for other purposes and thus be vulnerable to more severe issues. This issue has been fixed in 1.19.1.","ecosystems":["Red Hat:rhel_eus:8.6::baseos"],"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":"Buffer Underwrite in ares_inet_net_pton()","id":"CVE-2023-31130","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora"],"type":"memory_corruption","year":"2023"},"n_packages":4,"n_references":8,"next":{"headline":"Arbitrary File Write when Extracting Tarballs in greenplum-db","id":"CVE-2023-31131"},"packages":[{"ecosystem":"Red Hat:rhel_eus:8.6::baseos","fixed":["0:1.13.0-6.el8_6.2"],"introduced":["0"],"last_affected":[],"package":"c-ares","purl":"pkg:rpm/redhat/c-ares","source":"RHSA-2023:7392"},{"ecosystem":"Red Hat:rhel_eus:8.6::baseos","fixed":["0:1.13.0-6.el8_6.2"],"introduced":["0"],"last_affected":[],"package":"c-ares-debuginfo","purl":"pkg:rpm/redhat/c-ares-debuginfo","source":"RHSA-2023:7392"},{"ecosystem":"Red Hat:rhel_eus:8.6::baseos","fixed":["0:1.13.0-6.el8_6.2"],"introduced":["0"],"last_affected":[],"package":"c-ares-debugsource","purl":"pkg:rpm/redhat/c-ares-debugsource","source":"RHSA-2023:7392"},{"ecosystem":"Red Hat:rhel_eus:8.6::baseos","fixed":["0:1.13.0-6.el8_6.2"],"introduced":["0"],"last_affected":[],"package":"c-ares-devel","purl":"pkg:rpm/redhat/c-ares-devel","source":"RHSA-2023:7392"}],"prev":{"headline":"Contiki-NG missing NULL pointer check in IPv6 neighbor discovery","id":"CVE-2023-31129"},"products":["c-ares"],"published":"2023-05-25","related":[{"cvss_score":8.6,"headline":"Memory corruption in c-ares","id":"CVE-2022-4904","kev_date_added":null,"published":"2023-03-06"},{"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":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":"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":"partial"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["c-ares"]},"summary":"A buffer underflow in c-ares allows attackers to cause memory corruption and potential code execution if specific IPv6 addresses are configured.","url":"https://insights.sbomify.com/CVE-2023-31130/"}