{"id":"CVE-2021-32685","published":"2021-06-16T00:25:11Z","modified":"2024-08-03T23:25:31Z","title":"Improper Verification of Cryptographic Signature in tenvoy","vendor":"TogaTech","product":"tEnvoy","tier":"tail","description":{"text":"tEnvoy contains the PGP, NaCl, and PBKDF2 in node.js and the browser (hashing, random, encryption, decryption, signatures, conversions), used by TogaTech.org. In versions prior to 7.0.3, the `verifyWithMessage` method of `tEnvoyNaClSigningKey` always returns `true` for any signature that has a SHA-512 hash matching the SHA-512 hash of the message even if the signature was invalid. This issue is patched in version 7.0.3. As a workaround: In `tenvoy.js` under the `verifyWithMessage` method definition within the `tEnvoyNaClSigningKey` class, ensure that the return statement call to `this.verify` ends in `.verified`.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00658,"percentile":0.52446,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://github.com/TogaTech/tEnvoy/security/advisories/GHSA-7r96-8g3x-g36m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/TogaTech/tEnvoy/commit/a121b34a45e289d775c62e58841522891dee686b","tags":["x_refsource_MISC"]},{"url":"https://github.com/TogaTech/tEnvoy/releases/tag/v7.0.3","tags":["x_refsource_MISC"]}],"priority":{"score":17.3,"factors":[{"name":"EPSS percentile","points":10.49},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"togatech","affectedVersions":[{"vendor":"TogaTech","product":"tEnvoy","versions":["< 7.0.3"]}],"affected":[{"ecosystem":"npm","package":"tenvoy","vulnerableRanges":["<7.0.3"],"patched":["7.0.3"],"from":["GHSA-7r96-8g3x-g36m"],"provenance":"source"}],"summary":{"text":"tEnvoy, a PGP, NaCl and PBKDF2 library for Node.js and the browser published by TogaTech, has a flaw in the verifyWithMessage method of its tEnvoyNaClSigningKey class, which returns true for any signature whose SHA-512 hash matches that of the message even when the signature is invalid. An attacker with network access can exploit this without authentication or user interaction, using a forged signature against any application relying on tEnvoy's NaCl signature verification.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:48Z"},"euvd":{"id":"EUVD-2021-1273","exploited":false,"provenance":"source"}}