{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-6197 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2024-6197 is a high-severity memory corruption vulnerability in Haxx Libcurl, published on 24 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-6197 and fix it if it is affected.\n\nWhat it is: CVE-2024-6197 is a high-severity memory corruption vulnerability in Haxx Libcurl, published on 24 Jul 2024. 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-2024-6197 in the wild and no public exploit code.\n\nAffected product: Haxx Libcurl. 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-2024-6197/ (Markdown: https://insights.sbomify.com/CVE-2024-6197/index.md)","id":"CVE-2024-6197","markdown":"https://insights.sbomify.com/CVE-2024-6197/index.md","name":"CVE-2024-6197","record":{"aliases":["ALPINE-CVE-2024-6197","AZL-47023","AZL-47028","AZL-47049","BELL-CVE-2024-6197","CLEANSTART-2026-TJ58314","CURL-CVE-2024-6197","DEBIAN-CVE-2024-6197","ECHO-afee-d753-9067","GHSA-x3h8-3mf2-v794","JLSEC-2025-36"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"libcurl library","requires_auth":"none","summary":"An attacker can trigger a stack buffer free error in libcurl's ASN1 parser, causing crashes or potential code execution via memory corruption.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"curl","cpe":[{"product":"libcurl","vendor":"haxx"}],"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":[],"description":"libcurl's ASN1 parser has this utf8asn1str() function used for parsing an ASN.1 UTF-8 string. Itcan detect an invalid field and return error. Unfortunately, when doing so it also invokes `free()` on a 4 byte localstack buffer.  Most modern malloc implementations detect this error and immediately abort. Some however accept the input pointer and add that memory to its list of available chunks. This leads to the overwriting of nearby stack memory. The content of the overwrite is decided by the `free()` implementation; likely to be memory pointers and a set of flags.  The most likely outcome of exploting this flaw is a crash, although it cannot be ruled out that more serious results can be had in special circumstances.","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":"freeing stack buffer in utf8asn1str","id":"CVE-2024-6197","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"haxx:libcurl","products":["haxx:libcurl"],"type":"memory_corruption","year":"2024"},"n_packages":0,"n_references":5,"next":{"headline":"SNORE Interface Unauthenticated Remote Code Execution","id":"CVE-2024-6198"},"packages":[],"prev":{"headline":"itsourcecode Banking Management System admin_class.php sql injection","id":"CVE-2024-6196"},"products":["curl"],"published":"2024-07-24","related":[{"cvss_score":7.5,"headline":"Memory corruption in n/a","id":"CVE-2017-1000254","kev_date_added":null,"published":"2017-10-06"},{"cvss_score":7.5,"headline":"Auth bypass in n/a","id":"CVE-2016-7141","kev_date_added":null,"published":"2016-10-03"},{"cvss_score":6.5,"headline":"Information disclosure in n/a","id":"CVE-2017-1000099","kev_date_added":null,"published":"2017-10-04"},{"cvss_score":6.5,"headline":"Information disclosure in n/a","id":"CVE-2017-1000100","kev_date_added":null,"published":"2017-10-04"},{"cvss_score":6.3,"headline":"ASN.1 date parser overread","id":"CVE-2024-7264","kev_date_added":null,"published":"2024-07-31"},{"cvss_score":4.8,"headline":"Security feature bypass in curl","id":"CVE-2017-7468","kev_date_added":null,"published":"2018-07-16"}],"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":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["curl"]},"summary":"An attacker can trigger a stack buffer free error in libcurl's ASN1 parser, causing crashes or potential code execution via memory corruption.","url":"https://insights.sbomify.com/CVE-2024-6197/"}