CVE-2021-31855

NameCVE-2021-31855
DescriptionKDE 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs989438

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
kdepim4 (PTS)stretch4:4.14.10-7vulnerable
kf5-messagelib (PTS)stretch4:16.04.3-3~deb9u1vulnerable
buster4:18.08.3-2vulnerable
bullseye4:20.08.3-5fixed
bookworm4:22.12.3-2~deb12u1fixed
trixie4:22.12.3-2fixed
sid4:22.12.3-2.1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
kdepim4source(unstable)(unfixed)
kf5-messagelibsource(unstable)4:20.08.3-5989438

Notes

[buster] - kf5-messagelib <no-dsa> (Minor issue)
[stretch] - kf5-messagelib <no-dsa> (Minor issue)
[stretch] - kdepim4 <no-dsa> (Minor issue)
https://kde.org/info/security/advisory-20210429-1.txt
https://commits.kde.org/messagelib/3b5b171e91ce78b966c98b1292a1bcbc8d984799

Search for package or bug name: Reporting problems