CVE-2022-35260 Memory corruption in https://github.com/curl/curl
A buffer overflow in curl's netrc parser allows attackers to cause a denial of service via a specially crafted file.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-35260?
CVE-2022-35260 is a medium-severity memory corruption vulnerability in Apple Macos, published on 5 Dec 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
curl can be told to parse a `.netrc` file for credentials. If that file endsin a line with 4095 consecutive non-white space letters and no newline, curlwould first read past the end of the stack-based buffer, and if the readworks, write a zero byte beyond its boundary.This will in most cases cause a segfault or similar, but circumstances might also cause different outcomes.If a malicious user can provide a custom netrc file to an application or otherwise affect its contents, this flaw could be used as denial-of-service.
Which versions are affected by CVE-2022-35260?
It affects 8 products.
Products include Apple Macos, Haxx Curl, Netapp Clustered Data Ontap, Netapp H300s Firmware, Netapp H410s Firmware, Netapp H500s Firmware and 2 more.
How do I fix CVE-2022-35260?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2022-35260 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-35260 exists.
Other vulnerabilities in Apple Macos
Sources
Also known as ALPINE-CVE-2022-35260, AZL-38755, CLEANSTART-2026-QQ39017, CURL-CVE-2022-35260, DEBIAN-CVE-2022-35260, GHSA-pv52-98qj-pq55 and 1 more.