Vulnerability · Published Oct 26, 2023 · Assigned by GitHub_M

CVE-2023-46234browserify-sign vulnerable via an upper bound check issue in `dsaVerify` that leads to a signature forgery attack

Medium 6.5

In plain English

A medium-severity security flaw in browserify-sign from browserify. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 47% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.6%top 53.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

browserify-sign is a package to duplicate the functionality of node's crypto public key functions, much of this is based on Fedor Indutny's work on indutny/tls.js. An upper bound check issue in `dsaVerify` function allows an attacker to construct signatures that can be successfully verified by any public key, thus leading to a signature forgery attack. All places in this project that involve DSA verification of user-input signatures will be affected by this vulnerability. This issue has been patched in version 4.2.2.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-browserify-sign4.2.1-3+deb12u1DEBIAN-CVE-2023-46234
Debian:12node-browserify-sign4.2.1-3+deb12u1DSA-5539-1
Debian:13node-browserify-sign4.2.2-1DEBIAN-CVE-2023-46234
Debian:14node-browserify-sign4.2.2-1DEBIAN-CVE-2023-46234
Ubuntu:22.04:LTSnode-browserify-sign4.2.1-2ubuntu0.1USN-6800-1
Ubuntu:22.04:LTSnode-browserify-sign4.2.1-2ubuntu0.1UBUNTU-CVE-2023-46234
npmbrowserify-sign4.2.2GHSA-x9w5-v3q2-3rhw

Affected products (as reported)

VendorProductVersions
browserify browserify-sign >= 2.6.0, <= 4.2.1

Weakness: CWE-347 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

References