# CVE-2021-31855

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-06-02 · Modified: 2024-08-03
- Aliases: MGASA-2021-0208, UBUNTU-CVE-2021-31855, DEBIAN-CVE-2021-31855
- Record: https://cvemate.com/vulnerability/CVE-2021-31855 · JSON: https://cvemate.com/vulnerability/CVE-2021-31855/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.609%, percentile 50.611%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian kf5-messagelib (Debian): \< 4:20.08.3-5
- ubuntu kdepim4 (Ubuntu): All versions (No fix recorded)
- ubuntu kf5-messagelib (Ubuntu): All versions (No fix recorded)
- kde messagelib: ≤ 5.17.0
- mageia messagelib (Mageia): \< 19.04.0-1.2.mga7
- mageia messagelib (Mageia): \< 20.12.0-1.1.mga8

## References

- <https://kde.org/info/security/advisory-20210429-1.txt>
- <https://github.com/KDE/messagelib/commit/3b5b171e91ce78b966c98b1292a1bcbc8d984799>
- <https://advisories.mageia.org/MGASA-2021-0208.html>
- <https://bugs.mageia.org/show_bug.cgi?id=28861>
- <https://ubuntu.com/security/CVE-2021-31855>
- <https://commits.kde.org/messagelib/3b5b171e91ce78b966c98b1292a1bcbc8d984799>
- <https://www.cve.org/CVERecord?id=CVE-2021-31855>
- <https://security-tracker.debian.org/tracker/CVE-2021-31855>

---

Data as of 2026-12-05T06:27:14.069Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
