OSV-2021-1796 Heap-buffer-overflow in Curl_sasl_decode_mech
A heap buffer overflow in cURL's SASL mechanism decoding allows attackers to cause denial of service or potentially execute code via crafted network responses.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is OSV-2021-1796?
OSV-2021-1796 is a memory corruption vulnerability in curl, published on 2 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43186
Crash type: Heap-buffer-overflow READ 10
Crash state:
Curl_sasl_decode_mech
Curl_sasl_parse_url_auth_option
pop3_parse_url_options
Which versions are affected by OSV-2021-1796?
1 open source package ship an affected version, including curl.
| Package | Affected | Fixed in |
|---|---|---|
curl OSS-Fuzz | All versions | None |
How do I fix OSV-2021-1796?
No fix has been published for OSV-2021-1796 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is OSV-2021-1796 being exploited?
There is no known exploitation of OSV-2021-1796 in the wild and no public exploit code.