# CVE-2021-21387: Partial secret key disclosure, improper safety number calculation, & inadequate encryption strength

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2021-03-19T15:25:12.000Z
- Modified: 2026-06-17T03:35:27.987Z
- Weaknesses: CWE-319, CWE-326, CWE-358
- Assigned by: GitHub_M

## Description

Wrongthink peer-to-peer, end-to-end encrypted messenger with PeerJS and Axolotl ratchet. In wrongthink from version 2.0.0 and before 2.3.0 there was a set of vulnerabilities causing inadequate encryption strength. Part of the secret identity key was disclosed by the fingerprint used for connection. Additionally, the safety number was improperly calculated. It was computed using part of one of the public identity keys instead of being derived from both public identity keys. This caused issues in computing safety numbers which would potentially be exploitable in the real world. Additionally there was inadequate encryption strength due to use of 1024-bit DSA keys. These issues are all fixed in version 2.3.0.

(As written by CVE List.)

## Affected

- parabirb wrongthink: >= 2.0.0, < 2.2.0
- wrongthink wrongthink: from 2.0.0 before 2.3.0

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/parabirb/wrongthink/security/advisories/GHSA-5jxh-6378-rg7v> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-21387](https://www.cve.org/CVERecord?id=CVE-2021-21387), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-21387](https://nvd.nist.gov/vuln/detail/CVE-2021-21387), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21387 · Whole record: https://cve.day/CVE-2021-21387.json · Rebuilt by cve.day 2026-11-25T22:58:00.345Z
