CVE-2022-48216: Uniswap Universal Router Incorrect Authorization vulnerability
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.25056%
CWE
Published
1/4/2023
Updated
8/17/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
@uniswap/universal-router | npm | < 1.1.0 | 1.1.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from the execute()
function in UniversalRouter.sol
not having reentrancy protection. The commit d82c668 shows the function was modified to include an isNotLocked
modifier from a new ReentrancyLock
contract. This indicates the original execute()
function was vulnerable to reentrancy attacks where malicious contracts (e.g., via NFT callbacks or token transfers) could re-enter the execute
function during transaction processing to steal funds left in the contract between commands. The added test ReenteringProtocol.sol
demonstrates this attack vector, and gas test changes show the security mechanism's overhead.