Bug 2245102 (CVE-2023-45133) - CVE-2023-45133 babel: arbitrary code execution
Summary: CVE-2023-45133 babel: arbitrary code execution
Keywords:
Status: NEW
Alias: CVE-2023-45133
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2253442 2253443 2253444 2245106 2245108 2245109 2245111 2245112 2245113 2245114 2245115 2245116 2245117 2245118 2245119 2245120 2245121 2245122 2245123 2245124 2245125 2245126 2245127 2245128 2245129 2245130 2245131 2245132 2245133 2245134 2245135 2245136 2245137 2245138 2245139 2253445 2253446 2253447 2253448 2253449 2253450 2253451 2253452 2253453 2253510 2254202 2254203
Blocks: 2245103
TreeView+ depends on / blocked
 
Reported: 2023-10-19 18:47 UTC by Nick Tait
Modified: 2025-03-17 23:44 UTC (History)
14 users (show)

Fixed In Version: babel 8.0.0-alpha.4, babel 7.23.2
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Nick Tait 2023-10-19 18:47:09 UTC
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.2` and `@babel/traverse.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.

https://github.com/babel/babel/security/advisories/GHSA-67hx-6x53-jw92
https://github.com/babel/babel/pull/16033
https://github.com/babel/babel/releases/tag/v8.0.0-alpha.4
https://github.com/babel/babel/commit/b13376b346946e3f62fc0848c1d2a23223314c82
https://github.com/babel/babel/releases/tag/v7.23.2
https://www.debian.org/security/2023/dsa-5528
https://lists.debian.org/debian-lts-announce/2023/10/msg00026.html

via http://localhost:5600/static/?#/asm_ticket/101801

Comment 5 Avinash Hanwate 2023-12-07 13:56:24 UTC
Created cachelib tracking bugs for this issue:

Affects: fedora-all [bug 2253445]


Created fbthrift tracking bugs for this issue:

Affects: fedora-all [bug 2253446]


Created golang-github-prometheus tracking bugs for this issue:

Affects: epel-all [bug 2253442]


Created mozjs78 tracking bugs for this issue:

Affects: fedora-all [bug 2253447]


Created nodejs tracking bugs for this issue:

Affects: epel-all [bug 2253443]


Created nodejs16 tracking bugs for this issue:

Affects: fedora-all [bug 2253448]


Created nodejs18 tracking bugs for this issue:

Affects: fedora-all [bug 2253449]


Created nodejs20 tracking bugs for this issue:

Affects: fedora-all [bug 2253450]


Created nodejs:16-epel/nodejs tracking bugs for this issue:

Affects: epel-all [bug 2253444]


Created nodejs:16/nodejs tracking bugs for this issue:

Affects: fedora-all [bug 2253451]


Created onnxruntime tracking bugs for this issue:

Affects: fedora-all [bug 2253452]


Created pgadmin4 tracking bugs for this issue:

Affects: fedora-all [bug 2253453]


Note You need to log in before you can comment on or make changes to this bug.