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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-browserify-sign | 4.2.1-3+deb12u1 | DEBIAN-CVE-2023-46234 |
| Debian:12 | node-browserify-sign | 4.2.1-3+deb12u1 | DSA-5539-1 |
| Debian:13 | node-browserify-sign | 4.2.2-1 | DEBIAN-CVE-2023-46234 |
| Debian:14 | node-browserify-sign | 4.2.2-1 | DEBIAN-CVE-2023-46234 |
| Ubuntu:22.04:LTS | node-browserify-sign | 4.2.1-2ubuntu0.1 | USN-6800-1 |
| Ubuntu:22.04:LTS | node-browserify-sign | 4.2.1-2ubuntu0.1 | UBUNTU-CVE-2023-46234 |
| npm | browserify-sign | 4.2.2 | GHSA-x9w5-v3q2-3rhw |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/browserify/browserify-sign/security/advisories/GHSA-x9w5-v3q2-3rhw x_refsource_CONFIRM
- https://github.com/browserify/browserify-sign/commit/85994cd6348b50f2fd1b73c54e20881416f44a30 x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2023/10/msg00040.html
- https://www.debian.org/security/2023/dsa-5539
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6PVVPNSAGSDS63HQ74PJ7MZ3MU5IYNVZ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3HUE6ZR5SL73KHL7XUPAOEL6SB7HUDT2/