{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-7256 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2023-7256 is a medium-severity use after free vulnerability in The Tcpdump Group libpcap, published on 30 Aug 2024. 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-7256 and fix it if it is affected.\n\nWhat it is: CVE-2023-7256 is a medium-severity use after free vulnerability in The Tcpdump Group libpcap, published on 30 Aug 2024. 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-7256 in the wild and no public exploit code.\n\nAffected product: The Tcpdump Group libpcap. 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-7256/ (Markdown: https://insights.sbomify.com/CVE-2023-7256/index.md)","id":"CVE-2023-7256","markdown":"https://insights.sbomify.com/CVE-2023-7256/index.md","name":"CVE-2023-7256","record":{"aliases":["AZL-48415","AZL-48427","AZL-48451","AZL-48468","CLEANSTART-2026-AS20822","DEBIAN-CVE-2023-7256","GHSA-7m22-9mw3-j4pp","JLSEC-2026-764","ROOT-OS-ALPINE-318-CVE-2023-7256","ROOT-OS-ALPINE-319-CVE-2023-7256","ROOT-OS-ALPINE-320-CVE-2023-7256"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Packet capture library","requires_auth":"high_privilege","summary":"A double-free vulnerability in libpcap during remote packet capture setup can lead to denial of service or arbitrary code execution.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Tcpdump","cpe":[{"product":"libpcap","vendor":"tcpdump"}],"cvss":{"score":4.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-415","name":"Double Free"}],"description":"In affected libpcap versions during the setup of a remote packet capture the internal function sock_initaddress() calls getaddrinfo() and possibly freeaddrinfo(), but does not clearly indicate to the caller function whether freeaddrinfo() still remains to be called after the function returns.  This makes it possible in some scenarios that both the function and its caller call freeaddrinfo() for the same allocated memory block.  A similar problem was reported in Apple libpcap, to which Apple assigned CVE-2023-40400.","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":"Double-free in libpcap before 1.10.5 with remote packet capture support.","id":"CVE-2023-7256","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"use_after_free","year":"2023"},"n_packages":0,"n_references":2,"next":{"headline":"Denial-of-Service in Gvisor","id":"CVE-2023-7258"},"packages":[],"prev":{"headline":"Assigned as duplicate and no longer used.","id":"CVE-2023-7255"},"products":["libpcap"],"published":"2024-08-30","related":[{"cvss_score":9.8,"headline":"Information disclosure in n/a","id":"CVE-2011-1935","kev_date_added":null,"published":"2017-10-20"},{"cvss_score":7.5,"headline":"Null dereference in n/a","id":"CVE-2019-15163","kev_date_added":null,"published":"2019-10-03"},{"cvss_score":5.3,"headline":"Integer overflow in n/a","id":"CVE-2019-15161","kev_date_added":null,"published":"2019-10-03"},{"cvss_score":5.3,"headline":"Information disclosure in n/a","id":"CVE-2019-15162","kev_date_added":null,"published":"2019-10-03"},{"cvss_score":5.3,"headline":"Server-side request forgery in n/a","id":"CVE-2019-15164","kev_date_added":null,"published":"2019-10-03"},{"cvss_score":4.4,"headline":"NULL pointer dereference in libpcap before 1.10.5 with remote packet capture support","id":"CVE-2024-8006","kev_date_added":null,"published":"2024-08-30"}],"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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-03","vendors":["The Tcpdump Group"]},"summary":"A double-free vulnerability in libpcap during remote packet capture setup can lead to denial of service or arbitrary code execution.","url":"https://insights.sbomify.com/CVE-2023-7256/"}