# CVE-2021-31855: KDE Messagelib through 5.17.0 reveals cleartext of encrypted messages in some situations.

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Published: 2021-06-02T00:00:00.000Z
- Modified: 2026-06-17T03:52:21.330Z
- Weaknesses: CWE-312
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- kde messagelib: up to 5.17.0

## Every score

- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`

## References

- <https://kde.org/info/security/advisory-20210429-1.txt> (vendor-advisory)
- <https://github.com/KDE/messagelib/commit/3b5b171e91ce78b966c98b1292a1bcbc8d984799>

## Sources

- CVE List: [CVE-2021-31855](https://www.cve.org/CVERecord?id=CVE-2021-31855), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-31855](https://nvd.nist.gov/vuln/detail/CVE-2021-31855), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-31855 · Whole record: https://cve.day/CVE-2021-31855.json · Rebuilt by cve.day 2026-11-25T22:58:01.623Z
