{"id":"CVE-2021-31855","aliases":["DEBIAN-CVE-2021-31855","EUVD-2021-18730","GHSA-h76g-vp43-8cw5","MGASA-2021-0208","UBUNTU-CVE-2021-31855","openSUSE-SU-2024:11046-1"],"status":"published","title":"KDE Messagelib through 5.17.0 reveals cleartext of encrypted messages in some situations....","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.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.00609,"percentile":0.49649,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-312","CWE-319"],"published":"2021-05-07T05:35:41Z","modified":"2026-10-23T18:03:26Z","fixes":[{"ecosystem":"Debian:12","package":"kf5-messagelib","fixed_in":["4:20.08.3-5"],"sources":["osv"]},{"ecosystem":"Mageia:7","package":"messagelib","fixed_in":["19.04.0-1.2.mga7"],"sources":["osv"]},{"ecosystem":"Mageia:8","package":"messagelib","fixed_in":["20.12.0-1.1.mga8"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"kf5-messagelib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4:20.08.3-5"}]}]},{"source":"osv","ecosystem":"Mageia:7","package":"messagelib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"19.04.0-1.2.mga7"}]}]},{"source":"osv","ecosystem":"Mageia:8","package":"messagelib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20.12.0-1.1.mga8"}]}]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"kdepim4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4:4.14.10-7"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"kf5-messagelib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4:17.04.3-0ubuntu1","4:17.04.3-0ubuntu2","4:17.08.3-0ubuntu1","4:17.08.3-0ubuntu2","4:17.12.2-0ubuntu3","4:17.12.3-0ubuntu2","4:17.12.3-0ubuntu3","4:17.12.3-0ubuntu3+esm1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"kf5-messagelib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4:19.04.3-0ubuntu1","4:19.04.3-0ubuntu2","4:19.12.3-0ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"kf5-messagelib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4:21.08.1-0ubuntu1","4:21.08.3-0ubuntu2","4:21.11.80-0ubuntu1","4:21.11.90-0ubuntu1","4:21.12.0-0ubuntu1","4:21.12.1-0ubuntu1","4:21.12.2-0ubuntu1","4:21.12.3-0ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"kf5-messagelib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4:23.08.1-0ubuntu1","4:23.08.2-0ubuntu1","4:23.08.3-0ubuntu1","4:23.08.4-0ubuntu1","4:23.08.5-0ubuntu1","4:23.08.5-0ubuntu3","4:23.08.5-0ubuntu4"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"messagelib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"21.08.1-1.2"}]}],"bundled":2}],"products":[{"vendor":"kde","product":"messagelib"}],"references":[{"url":"https://kde.org/info/security/advisory-20210429-1.txt","tags":["x_transferred","Vendor Advisory","advisory","report"]},{"url":"https://github.com/KDE/messagelib/commit/3b5b171e91ce78b966c98b1292a1bcbc8d984799","tags":["x_transferred","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31855"},{"url":"https://github.com/advisories/GHSA-h76g-vp43-8cw5"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-31855","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2021-0208.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=28861","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-31855","tags":["report"]},{"url":"https://commits.kde.org/messagelib/3b5b171e91ce78b966c98b1292a1bcbc8d984799","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-31855","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2019-10732","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-31855","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2021-31855","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.","status":"published","published":"2021-06-02T00:00:00Z","modified":"2024-08-03T23:10:30.742Z","updated_at":"2026-11-02T14:33:05.665371Z"}],"euvd":[{"id":"EUVD-2021-18730","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.","status":"published","published":"2021-06-02T00:00:00Z","modified":"2024-08-03T23:10:30Z","updated_at":"2026-11-03T03:24:37.97373Z"}],"ghsa":[{"id":"GHSA-h76g-vp43-8cw5","title":"KDE Messagelib through 5.17.0 reveals cleartext of encrypted messages in some situations....","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.","status":"published","published":"2022-05-24T19:03:52Z","modified":"2023-11-09T00:33:54Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-312","CWE-319"],"updated_at":"2026-11-02T14:54:55.524004Z"}],"nvd":[{"id":"CVE-2021-31855","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.","status":"published","published":"2021-06-02T16:15:08.893Z","modified":"2026-06-17T03:52:21.33Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4,"vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-312"],"updated_at":"2026-11-02T14:06:53.987491Z"}],"osv":[{"id":"CVE-2021-31855","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.","status":"published","published":"2021-06-02T16:15:08.893Z","modified":"2026-10-20T14:29:27.206439061Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:19.483607Z"},{"id":"DEBIAN-CVE-2021-31855","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.","status":"published","published":"2021-06-02T16:15:08.893Z","modified":"2026-10-23T18:03:26.819830155Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:34.94143Z"},{"id":"UBUNTU-CVE-2021-31855","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.","status":"published","published":"2021-06-02T16:15:00Z","modified":"2026-04-22T12:54:07.751632Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:27.332852Z"},{"id":"MGASA-2021-0208","title":"Updated messagelib packages fix security vulnerability","description":"Deleting an attachment of a decrypted encrypted message stored on a remote\nserver (e.g. an IMAP server) causes KMail to upload the decrypted content of\nthe message to the remote server. This is not easily noticeable by the user\nbecause KMail does not display the decrypted content.\n\nWith a specially crafted message a user could be tricked into decrypting an\nencrypted message and then deleting an attachment attached to this message.\nIf the attacker has access to the messages stored on the email server, then\nthe attacker could read the decrypted content of the encrypted message\n(CVE-2021-31855).\n","status":"published","published":"2021-05-07T05:35:41Z","modified":"2026-04-16T04:44:05.783586804Z","updated_at":"2026-11-02T15:49:41.509337Z"},{"id":"openSUSE-SU-2024:11046-1","title":"messagelib-21.08.1-1.2 on GA media","description":"These are all security issues fixed in the messagelib-21.08.1-1.2 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T04:24:21.001544Z","updated_at":"2026-11-02T16:58:34.894275Z"}]}}
