CVE-2021-31855
KDE Messagelib through 5.17.0 reveals cleartext of encrypted messages in some situations. Deleting an attachment of a decrypted encrypted message stored on a remote server (e.g., an IMAP server) causes KMail to upload the decrypted content of the message to the remote server. With a crafted message, a user could be tricked into decrypting an encrypted message and then deleting an attachment attached to this message. If the attacker has access to the messages stored on the email server, then the attacker could read the decrypted content of the encrypted message. This occurs in ViewerPrivate::deleteAttachment in messageviewer/src/viewer/viewer_p.cpp.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | kf5-messagelib | Under investigation | UBUNTU-CVE-2021-31855 | |
| Ubuntu 22.04 | kf5-messagelib | Under investigation | UBUNTU-CVE-2021-31855 | |
| Ubuntu 20.04 | kf5-messagelib | Fix pending | UBUNTU-CVE-2021-31855 | |
| Ubuntu 18.04 | kdepim4 | Fix pending | UBUNTU-CVE-2021-31855 | |
| Ubuntu 18.04 | kf5-messagelib | Fix pending | UBUNTU-CVE-2021-31855 | |
| Debian 12 | kf5-messagelib | Fixed | 4:20.08.3-5 | DEBIAN-CVE-2021-31855 |
References
- https://kde.org/info/security/advisory-20210429-1.txt
- https://github.com/KDE/messagelib/commit/3b5b171e91ce78b966c98b1292a1bcbc8d984799
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.