CVE-2026-2739 bn.js affected by an infinite loop
MediumCVSS 6.9
EPSS 0.52%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
Description
This affects versions of the package bn.js before 5.2.3. Calling maskn(0) on any BN instance corrupts the internal state, causing toString(), divmod(), and other methods to enter an infinite loop, hanging the process indefinitely.
Upgrade path
25 packages: 3 fixed, 22 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/node-bn.js(Debian 12) | = 5.2.1+~5.1.1-1; = 5.2.3+~5.2.0-1; = 5.2.5+~5.2.0-1; All versions | No fix listed | No fix yet |
| debian/node-bn.js(Debian 13) | = 5.2.1+~5.1.1-1; = 5.2.3+~5.2.0-1; = 5.2.5+~5.2.0-1; All versions | No fix listed | No fix yet |
| redhat/com.github.streamshub-console(Red Hat amq_streams 2) | All versions | No fix listed | No fix yet |
| redhat/com.github.streamshub-console(Red Hat amq_streams 3) | All versions | No fix listed | No fix yet |
| redhat/devspaces/dashboard-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/gjs(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/grafana(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/io.apicurio-apicurio-registry(Red Hat service_registry 2) | All versions | No fix listed | No fix yet |
| redhat/mozjs60(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/openshift-pipelines/pipelines-hub-ui-rhel8(Red Hat openshift_pipelines 1) | All versions | No fix listed | No fix yet |
| redhat/openshift-pipelines/pipelines-hub-ui-rhel9(Red Hat openshift_pipelines 1) | All versions | No fix listed | No fix yet |
| redhat/openshift-service-mesh/kiali-ossmc-rhel9(Red Hat service_mesh 3) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-console(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-console-rhel9(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/pcs(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/polkit(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/quay/quay-rhel9(Red Hat quay 3) | All versions | No fix listed | No fix yet |
| redhat/rhdh/rhdh-hub-rhel9(Red Hat rhdh 1) | All versions | No fix listed | No fix yet |
| ubuntu/node-bn.js(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-bn.js(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-bn.js(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-bn.js(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| cbl-mariner reaper(CBL-Mariner 2.0) | < 3.1.1-23 | 3.1.1-23 | Fixed |
| debian/node-bn.js(Debian 14) | < 5.2.3+~5.2.0-1; = 5.2.1+~5.1.1-1 | 5.2.3+~5.2.0-1 | Fixed |
| npm bn.js(npm) | < 4.12.3; >= 5.0.0, < 5.2.3 | 4.12.3, 5.2.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cbl-mariner reaper(CBL-Mariner:2.0) | < 3.1.1-23 | 3.1.1-23 |
| npm bn.js(npm) | < 4.12.3 | 4.12.3 |
| npm bn.js(npm) | >= 5.0.0, < 5.2.3 | 5.2.3 |
| debian/node-bn.js(Debian:12) | All versions | No fix listed |
| debian/node-bn.js(Debian:12) | = 5.2.1+~5.1.1-1 | No fix listed |
| debian/node-bn.js(Debian:12) | = 5.2.3+~5.2.0-1 | No fix listed |
| debian/node-bn.js(Debian:12) | = 5.2.5+~5.2.0-1 | No fix listed |
| debian/node-bn.js(Debian:13) | All versions | No fix listed |
| debian/node-bn.js(Debian:13) | = 5.2.1+~5.1.1-1 | No fix listed |
| debian/node-bn.js(Debian:13) | = 5.2.3+~5.2.0-1 | No fix listed |
| debian/node-bn.js(Debian:13) | = 5.2.5+~5.2.0-1 | No fix listed |
| debian/node-bn.js(Debian:14) | < 5.2.3+~5.2.0-1 | 5.2.3+~5.2.0-1 |
| debian/node-bn.js(Debian:14) | = 5.2.1+~5.1.1-1 | No fix listed |
| ubuntu/node-bn.js(Ubuntu:22.04) | All versions | No fix listed |
| redhat/openshift-logging/elasticsearch6-rhel9(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/elasticsearch-operator-bundle(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/elasticsearch-proxy-rhel9(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/elasticsearch-rhel9-operator(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/kibana6-rhel8(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/logging-curator5-rhel9(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-pipelines/pipelines-hub-ui-rhel8(Red Hat:openshift_pipelines:1) | All versions | No fix listed |
| redhat/openshift-pipelines/pipelines-hub-ui-rhel9(Red Hat:openshift_pipelines:1) | All versions | No fix listed |
| redhat/openshift-service-mesh/kiali-ossmc-rhel8(Red Hat:service_mesh:2) | All versions | No fix listed |
| redhat/openshift-service-mesh/kiali-operator-bundle(Red Hat:service_mesh:3) | All versions | No fix listed |
| redhat/openshift-service-mesh/kiali-ossmc-rhel9(Red Hat:service_mesh:3) | All versions | No fix listed |
Show 33 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/openshift-service-mesh/kiali-rhel9-operator(Red Hat:service_mesh:3) | All versions | No fix listed |
| redhat/3scale-amp20/system(Red Hat:3scale:2.13) | All versions | No fix listed |
| redhat/3scale-amp21/system(Red Hat:3scale:2.13) | All versions | No fix listed |
| redhat/3scale-amp22/system(Red Hat:3scale:2.13) | All versions | No fix listed |
| redhat/3scale-amp24/system(Red Hat:3scale:2.13) | All versions | No fix listed |
| redhat/3scale-amp25/system(Red Hat:3scale:2.13) | All versions | No fix listed |
| redhat/3scale-amp26/system(Red Hat:3scale:2.13) | All versions | No fix listed |
| redhat/3scale-amp2/system-rhel7(Red Hat:3scale:2.13) | All versions | No fix listed |
| redhat/3scale-amp2/system-rhel8(Red Hat:3scale:2.13) | All versions | No fix listed |
| redhat/3scale-amp2/system-rhel9(Red Hat:3scale:2.13) | All versions | No fix listed |
| redhat/io.apicurio-apicurio-registry(Red Hat:service_registry:2) | All versions | No fix listed |
| redhat/rhdh/rhdh-hub-rhel9(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/grafana(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/mozjs60(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/pcs(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/gjs(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/pcs(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/polkit(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/io.apicurio-apicurito(Red Hat:jboss_fuse:7) | All versions | No fix listed |
| redhat/io.syndesis-syndesis-parent(Red Hat:jboss_fuse:7) | All versions | No fix listed |
| redhat/openshift4/ose-console(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-console-rhel9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/devspaces/dashboard-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| redhat/org.kie-process-migration-service(Red Hat:jboss_bpms:7) | All versions | No fix listed |
| redhat/org.kie.workbench-kie-wb-common(Red Hat:jboss_bpms:7) | All versions | No fix listed |
| redhat/org.uberfire-uberfire-parent(Red Hat:jboss_bpms:7) | All versions | No fix listed |
| redhat/quay/quay-rhel8(Red Hat:quay:3) | All versions | No fix listed |
| redhat/quay/quay-rhel9(Red Hat:quay:3) | All versions | No fix listed |
| redhat/com.github.streamshub-console(Red Hat:amq_streams:2) | All versions | No fix listed |
| redhat/com.github.streamshub-console(Red Hat:amq_streams:3) | All versions | No fix listed |
| ubuntu/node-bn.js(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/node-bn.js(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-bn.js(Ubuntu:26.10) | All versions | No fix listed |
References
- security.snyk.io
- github.com
- github.com
- gist.github.com
- github.com patch
- github.com patch
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com
- Debian Security Tracker CVE-2026-2739 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2441279 issue-tracking
- bugs.debian.org issue-tracking
- github.com product