curl can be told to parse a .netrc
file for credentials. If that file ends
in a line with consecutive non-white space letters and no newline, curl could
read past the end of the stack-based buffer, and if the read works, write a
zero byte possibly beyond its boundary.
This does 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.
{ "CWE": { "id": "CWE-121", "desc": "Stack-based Buffer Overflow" }, "award": { "amount": "480", "currency": "USD" }, "URL": "https://curl.se/docs/CVE-2022-35260.json", "package": "curl", "severity": "Low", "issue": "https://hackerone.com/reports/1721098", "www": "https://curl.se/docs/CVE-2022-35260.html", "last_affected": "7.85.0" }