CVE-2023-45133 Babel vulnerable to arbitrary code execution when compiling specifically crafted malicious code
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebianRed Hat
Description
Babel is a compiler for writingJavaScript. In @babel/traverse prior to versions 7.23.2 and 8.0.0-alpha.4 and all versions of babel-traverse, using Babel to compile code that was specifically crafted by an attacker can lead to arbitrary code execution during compilation, when using plugins that rely on the path.evaluate()or path.evaluateTruthy() internal Babel methods. Known affected plugins are @babel/plugin-transform-runtime; @babel/preset-env when using its useBuiltIns option; and any "polyfill provider" plugin that depends on @babel/helper-define-polyfill-provider, such as babel-plugin-polyfill-corejs3, babel-plugin-polyfill-corejs2, babel-plugin-polyfill-es-shims, babel-plugin-polyfill-regenerator. No other plugins under the @babel/ namespace are impacted, but third-party plugins might be. Users that only compile trusted code are not impacted. The vulnerability has been fixed in @babel/traverse@7.23.2 and @babel/traverse@8.0.0-alpha.4. Those who cannot upgrade @babel/traverse and are using one of the affected packages mentioned above should upgrade them to their latest version to avoid triggering the vulnerable code path in affected @babel/traverse versions: @babel/plugin-transform-runtime v7.23.2, @babel/preset-env v7.23.2, @babel/helper-define-polyfill-provider v0.4.3, babel-plugin-polyfill-corejs2 v0.4.6, babel-plugin-polyfill-corejs3 v0.8.5, babel-plugin-polyfill-es-shims v0.10.0, babel-plugin-polyfill-regenerator v0.5.3.
Upgrade path
48 packages: 14 fixed, 1 partially fixed, 31 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/babel(Red Hat storage 3) | All versions | No fix listed | No fix yet |
| redhat/odf5/cephcsi-rhel9-operator:1795073546(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/cephcsi-rhel9:1795073870(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/devicefinder-rhel9:1795073967(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/mcg-core-rhel9:1795074158(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/mcg-rhel9-operator:1795074167(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/ocs-client-console-rhel9:1795074655(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/ocs-client-rhel9-operator:1795074170(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/ocs-metrics-exporter-rhel9:1795074383(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/ocs-rhel9-operator:1795074368(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-blackbox-exporter-rhel9:1795074330(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-cli-rhel9:1795074438(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-cloudnative-pg-rhel9-operator:1795074371(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-console-rhel9:1795074803(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-cosi-sidecar-rhel9:1795074454(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-csi-addons-rhel9-operator:1795074485(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-csi-addons-sidecar-rhel9:1795074572(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-drbd-rhel9:1795074668(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-external-snapshot-metadata-sidecar-rhel9:1795074674(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-external-snapshotter-rhel9-operator:1795074723(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-external-snapshotter-sidecar-rhel9:1795074744(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-multicluster-console-rhel9:1795075063(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-multicluster-rhel9-operator:1795074810(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-must-gather-rhel9:1795074944(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-rhel9-operator:1795074987(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odr-rhel9-operator:1795074981(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odr-volsync-plugin-mover-rhel9:1795075376(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odr-volsync-plugin-rhel9-operator:1795075367(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/rook-ceph-rhel9-operator:1795075598(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| ubuntu/node-babel7(Ubuntu 22.04) | = 7.12.12+~cs150.141.84-6; = 7.12.12+~cs150.141.84-7; = 7.12.12+~cs150.141.84-8; All versions | No fix listed | No fix yet |
… and 18 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| babel @babel/traverse(npm) | < 7.23.2 | 7.23.2 |
| babel @babel/traverse(npm) | >= 8.0.0-alpha.0, < 8.0.0-alpha.4 | 8.0.0-alpha.4 |
| npm babel-traverse(npm) | < 7.23.2 | 7.23.2 |
| debian/node-babel7(Debian:12) | < 7.20.15+ds1+~cs214.269.168-3+deb12u1 | 7.20.15+ds1+~cs214.269.168-3+deb12u1 |
| debian/node-babel7(Debian:12) | = 7.20.15+ds1+~cs214.269.168-3 | No fix listed |
| debian/node-babel7(Debian:13) | < 7.20.15+ds1+~cs214.269.168-5 | 7.20.15+ds1+~cs214.269.168-5 |
| debian/node-babel7(Debian:14) | < 7.20.15+ds1+~cs214.269.168-5 | 7.20.15+ds1+~cs214.269.168-5 |
| babel | = < 7.23.2 | No fix listed |
| babel | = >= 8.0.0-alpha.0, < 8.0.0-alpha.4 | No fix listed |
| debian linux | = 10.0 | No fix listed |
| debian linux | = 11.0 | No fix listed |
| debian linux | = 12.0 | No fix listed |
| babeljs babel | < 7.23.2 | 7.23.2 |
| babeljs babel | = 8.0.0-alpha.0 | No fix listed |
| babeljs babel | = 8.0.0-alpha.1 | No fix listed |
| babeljs babel | = 8.0.0-alpha.2 | No fix listed |
| babeljs babel | = 8.0.0-alpha.3 | No fix listed |
| babeljs babel-helper-define-polyfill-provider | < 0.4.3 | 0.4.3 |
| babeljs babel-plugin-polyfill-corejs2 | < 0.4.6 | 0.4.6 |
| babeljs babel-plugin-polyfill-corejs3 | < 0.8.5 | 0.8.5 |
| babeljs babel-plugin-polyfill-es-shims | < 0.10.0 | 0.10.0 |
| babeljs babel-plugin-polyfill-regenerator | < 0.5.3 | 0.5.3 |
| babeljs babel-plugin-transform-runtime | < 7.23.2 | 7.23.2 |
| babeljs babel-preset-env | < 7.23.2 | 7.23.2 |
| ubuntu/node-babel7(Ubuntu:22.04) | All versions | No fix listed |
Show 45 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/node-babel7(Ubuntu:24.04) | All versions | No fix listed |
| npm babel-traverse(npm) | All versions | No fix listed |
| ubuntu/node-babel(Ubuntu:Pro:18.04) | < 6.26.0+dfsg-3ubuntu0.1~esm1 | 6.26.0+dfsg-3ubuntu0.1~esm1 |
| ubuntu/node-babel(Ubuntu:Pro:18.04) | = 6.26.0+dfsg-3build5 | No fix listed |
| ubuntu/node-babel(Ubuntu:Pro:18.04) | = 6.26.0+dfsg-3build6 | No fix listed |
| ubuntu/node-babel(Ubuntu:Pro:20.04) | < 6.26.0+repack-3ubuntu0.1~esm1 | 6.26.0+repack-3ubuntu0.1~esm1 |
| ubuntu/node-babel(Ubuntu:Pro:20.04) | = 6.26.0+dfsg-3build6 | No fix listed |
| ubuntu/node-babel(Ubuntu:Pro:20.04) | = 6.26.0+repack-2 | No fix listed |
| ubuntu/node-babel(Ubuntu:Pro:20.04) | = 6.26.0+repack-3 | No fix listed |
| ubuntu/node-babel7(Ubuntu:22.04) | = 7.12.12+~cs150.141.84-6 | No fix listed |
| ubuntu/node-babel7(Ubuntu:22.04) | = 7.12.12+~cs150.141.84-7 | No fix listed |
| ubuntu/node-babel7(Ubuntu:22.04) | = 7.12.12+~cs150.141.84-8 | No fix listed |
| ubuntu/node-babel7(Ubuntu:24.04) | = 7.20.15+ds1+~cs214.269.168-4 | No fix listed |
| ubuntu/node-babel7(Ubuntu:24.04) | = 7.20.15+ds1+~cs214.269.168-5 | No fix listed |
| ubuntu/node-babel7(Ubuntu:24.04) | = 7.20.15+ds1+~cs214.269.168-6 | No fix listed |
| ubuntu/node-babel7(Ubuntu:24.04) | = 7.20.15+ds1+~cs214.269.168-6build1 | No fix listed |
| redhat/odf5/cephcsi-rhel9:1795073870(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/cephcsi-rhel9-operator:1795073546(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/devicefinder-rhel9:1795073967(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/mcg-core-rhel9:1795074158(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/mcg-rhel9-operator:1795074167(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/ocs-client-console-rhel9:1795074655(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/ocs-client-rhel9-operator:1795074170(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/ocs-metrics-exporter-rhel9:1795074383(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/ocs-rhel9-operator:1795074368(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-blackbox-exporter-rhel9:1795074330(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-cli-rhel9:1795074438(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-cloudnative-pg-rhel9-operator:1795074371(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-console-rhel9:1795074803(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-cosi-sidecar-rhel9:1795074454(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-csi-addons-rhel9-operator:1795074485(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-csi-addons-sidecar-rhel9:1795074572(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-drbd-rhel9:1795074668(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-external-snapshot-metadata-sidecar-rhel9:1795074674(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-external-snapshotter-rhel9-operator:1795074723(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-external-snapshotter-sidecar-rhel9:1795074744(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-multicluster-console-rhel9:1795075063(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-multicluster-rhel9-operator:1795074810(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-must-gather-rhel9:1795074944(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-rhel9-operator:1795074987(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odr-rhel9-operator:1795074981(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odr-volsync-plugin-mover-rhel9:1795075376(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odr-volsync-plugin-rhel9-operator:1795075367(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/rook-ceph-rhel9-operator:1795075598(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/babel(Red Hat:storage:3) | All versions | No fix listed |
References
- https://github.com/babel/babel/security/advisories/GHSA-67hx-6x53-jw92 issue-tracking third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/babel/babel/pull/16033 issue-tracking patch
- https://github.com/babel/babel/commit/b13376b346946e3f62fc0848c1d2a23223314c82 issue-tracking patch
- https://github.com/babel/babel/releases/tag/v7.23.2 issue-tracking patch
- https://github.com/babel/babel/releases/tag/v8.0.0-alpha.4 issue-tracking patch
- www.debian.org issue-tracking
- lists.debian.org issue-tracking mailing-list third-party-advisory
- babeljs.io
- github.com
- Debian Security Tracker CVE-2023-45133 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking
- USN-9054-1 vendor-advisory
- github.com product
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2245102 issue-tracking
- RHSA-2026:100741 patch vendor-advisory