{"id":"CVE-2021-31855","aliases":["CVE-2021-31855"],"related":[],"kind":"vulnerability","state":"published","title":"KDE Messagelib through 5.17.0 reveals cleartext of encrypted messages in some situations.","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"KDE Messagelib versiones hasta 5.17.0, revela el texto sin cifrar de los mensajes cifrados en algunas situaciones. Eliminar un adjunto de un mensaje cifrado descifrado almacenado en un servidor remoto (por ejemplo, un servidor IMAP) hace que KMail cargue el contenido descifrado del mensaje en el servidor remoto. Con un mensaje diseñado, un usuario podría ser engañado para descifrar un mensaje cifrado y luego eliminar un archivo adjunto a este mensaje. Si el atacante tiene acceso a los mensajes almacenados en el servidor de correo electrónico, entonces el atacante podría leer el contenido descifrado del mensaje cifrado. Esto ocurre en la función ViewerPrivate::deleteAttachment en el archivo messageviewer/src/viewer/viewer_p.cpp","source":"nvd"}],"published":"2021-06-02T00:00:00.000Z","modified":"2026-06-17T03:52:21.330Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","score":4,"rating":"MEDIUM"}],"cwes":["CWE-312"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"5.17.0"}],"vendor":"kde","product":"messagelib","cpe":"cpe:2.3:a:kde:messagelib:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://kde.org/info/security/advisory-20210429-1.txt","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/KDE/messagelib/commit/3b5b171e91ce78b966c98b1292a1bcbc8d984799","tags":["x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-31855","url":"https://www.cve.org/CVERecord?id=CVE-2021-31855","licence":"CVE Terms of Use","modified":"2024-08-03T23:10:30.742Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-31855","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31855","licence":"Public domain","modified":"2026-06-17T03:52:21.330Z"}],"updatedAt":"2026-11-25T22:58:01.623Z","epss":{"score":0.00609,"percentile":0.50517,"date":"2026-12-01T12:00:22.000Z"}}