CVE-2021-3578 Memory corruption in isync

High 7.8 Published Updated

A malicious IMAP server can trigger a heap overflow in mbsync via a crafted APPENDUID response, potentially leading to remote code execution on the client.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-3578?

CVE-2021-3578 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 16 Feb 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A flaw was found in mbsync before v1.3.6 and v1.4.2, where an unchecked pointer cast allows a malicious or compromised server to write an arbitrary integer value past the end of a heap-allocated structure by issuing an unexpected APPENDUID response. This could be plausibly exploited for remote code execution on the client.

Weakness: CWE-704

Which versions are affected by CVE-2021-3578?

It affects 3 products.

Linux distribution packages (2)
isync SUSE:Package Hub 15 SP2All versions1.3.6-bp152.4.6.1
isync openSUSE:Leap 15.2All versions1.3.6-lp152.4.6.1

Products include Debian Debian Linux, Fedoraproject Fedora, Isync Project Isync.

How do I fix CVE-2021-3578?

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-2021-3578 being exploited?

There is no known exploitation of CVE-2021-3578 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-3578, GHSA-4r75-vj28-w5c7, UBUNTU-CVE-2021-3578, openSUSE-SU-2021:1170-1, openSUSE-SU-2021:1185-1.

Is CVE-2021-3578 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free