{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2017-9502 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2017-9502 is a medium-severity memory corruption vulnerability in Haxx Curl, published on 14 Jun 2017. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2017-9502 and fix it if it is affected.\n\nWhat it is: CVE-2017-9502 is a medium-severity memory corruption vulnerability in Haxx Curl, published on 14 Jun 2017. 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-2017-9502 in the wild and no public exploit code.\n\nAffected product: Haxx Curl. 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-2017-9502/ (Markdown: https://insights.sbomify.com/CVE-2017-9502/index.md)","id":"CVE-2017-9502","markdown":"https://insights.sbomify.com/CVE-2017-9502/index.md","name":"CVE-2017-9502","record":{"aliases":["CURL-CVE-2017-9502","GHSA-2p6v-q44g-p7m7"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"curl library","requires_auth":"none","summary":"Heap buffer overflow in libcurl on Windows/DOS allows attackers to execute arbitrary code or cause denial of service via crafted URLs.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"curl","vendor":"haxx"}],"cvss":{"score":5.3,"severity":"medium","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.0"},"cwes":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"description":"In curl before 7.54.1 on Windows and DOS, libcurl's default protocol function, which is the logic that allows an application to set which protocol libcurl should attempt to use when given a URL without a scheme part, had a flaw that could lead to it overwriting a heap based memory buffer with seven bytes. If the default protocol is specified to be FILE or a file: URL lacks two slashes, the given \"URL\" starts with a drive letter, and libcurl is built for Windows or DOS, then libcurl would copy the path 7 bytes off, so that the end of the given path would write beyond the malloc buffer (7 bytes being the length in bytes of the ascii string \"file://\").","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":"Memory corruption in n/a","id":"CVE-2017-9502","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"haxx:curl","products":["haxx:curl"],"type":"memory_corruption","year":"2017"},"n_packages":0,"n_references":4,"next":{"headline":"Null dereference in n/a","id":"CVE-2017-9503"},"packages":[],"prev":{"headline":"Denial of service in n/a","id":"CVE-2017-9501"},"products":["n/a"],"published":"2017-06-14","related":[{"cvss_score":9.8,"headline":"Negotiate ambient user conn reuse","id":"CVE-2026-19931","kev_date_added":null,"published":"2026-09-06"},{"cvss_score":9.8,"headline":"HTTP/2 stream-dependency tree UAF","id":"CVE-2026-10536","kev_date_added":null,"published":"2026-07-03"},{"cvss_score":9.8,"headline":"cross-origin Digest auth state leak","id":"CVE-2026-11856","kev_date_added":null,"published":"2026-07-03"},{"cvss_score":9.8,"headline":"SASL double-free","id":"CVE-2026-8925","kev_date_added":null,"published":"2026-07-03"},{"cvss_score":9.8,"headline":"stale proxy password leak","id":"CVE-2026-9079","kev_date_added":null,"published":"2026-07-03"},{"cvss_score":9.8,"headline":"Code injection in curl","id":"CVE-2016-4606","kev_date_added":null,"published":"2020-02-21"},{"cvss_score":9.8,"headline":"Information disclosure in n/a","id":"CVE-2016-9953","kev_date_added":null,"published":"2018-03-12"}],"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Heap buffer overflow in libcurl on Windows/DOS allows attackers to execute arbitrary code or cause denial of service via crafted URLs.","url":"https://insights.sbomify.com/CVE-2017-9502/"}