{"schemaVersion":3,"id":"CVE-2021-31855","aliases":["MGASA-2021-0208","UBUNTU-CVE-2021-31855","DEBIAN-CVE-2021-31855"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-06-02T00:00:00.000Z","modified":"2024-08-03T23:10:30.742Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00609,"percentile":0.48126,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00609},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00609,"percentile":0.48126}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00609,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00609,"percentile":0.48126}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-312","name":"Cleartext Storage of Sensitive Information","description":"The product stores sensitive information in cleartext within a resource that might be accessible to another control sphere.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/312.html"}],"affected":[{"vendor":"debian","product":"kf5-messagelib","name":"kf5-messagelib","label":"kf5-messagelib","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/kf5-messagelib","purlType":"deb","versions":[{"text":"< 4:20.08.3-5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4:20.08.3-5","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"kdepim4","name":"kdepim4","label":"kdepim4","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/kdepim4","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"kf5-messagelib","name":"kf5-messagelib","label":"kf5-messagelib","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/kf5-messagelib","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"kde","product":"messagelib","name":"messagelib","label":"messagelib","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 5.17.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 5.17.0","eol":null,"hubHref":"/vendor/kde/messagelib"},{"vendor":"mageia","product":"messagelib","name":"messagelib","label":"messagelib","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/messagelib","purlType":"rpm","versions":[{"text":"< 19.04.0-1.2.mga7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 19.04.0-1.2.mga7","eol":null,"hubHref":null},{"vendor":"mageia","product":"messagelib","name":"messagelib","label":"messagelib","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/messagelib","purlType":"rpm","versions":[{"text":"< 20.12.0-1.1.mga8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 20.12.0-1.1.mga8","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://kde.org/info/security/advisory-20210429-1.txt","label":"kde.org/info/security/advisory-20210429-1.txt","hostname":"kde.org","tags":["Advisory","REPORT","Vendor Advisory"]},{"url":"https://github.com/KDE/messagelib/commit/3b5b171e91ce78b966c98b1292a1bcbc8d984799","label":"github.com/KDE/messagelib/commit/3b5b171e91ce78b966c98b1292a1bcbc8d984799","hostname":"github.com","tags":[]},{"url":"https://advisories.mageia.org/MGASA-2021-0208.html","label":"advisories.mageia.org/MGASA-2021-0208.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=28861","label":"bugs.mageia.org/show_bug.cgi?id=28861","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/CVE-2021-31855","label":"ubuntu.com/security/CVE-2021-31855","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://commits.kde.org/messagelib/3b5b171e91ce78b966c98b1292a1bcbc8d984799","label":"commits.kde.org/messagelib/3b5b171e91ce78b966c98b1292a1bcbc8d984799","hostname":"commits.kde.org","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-31855","label":"www.cve.org/CVERecord?id=CVE-2021-31855","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-31855","label":"security-tracker.debian.org/tracker/CVE-2021-31855","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:11046-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:11046-1"]},"timeline":[{"kind":"published","date":"2021-06-02T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T23:10:30.742Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T16:05:20.156Z","stale":false,"partial":false}}