Skip to content
Business logic Audit finding Intermediate

Aave v3 lending pool is immutable in aave strategies

The Aave v3 strategy contracts store the Aave lending pool address as an immutable value instead of querying the pool address provider. If Aave migrates to a new pool, the strategy would keep calling the deprecated pool, so supply and withdraw operations could fail and funds could become stuck.

kodyvim Follow

Originally disclosed on Immunefi

Informational View original
  • Disclosed after under an hour

56572 sc insight aave v3 lending pool is immutable in aave strategies

Submitted on Oct 17th 2025 at 19:51:02 UTC by @kodyvim for Audit Comp | Alchemix V3

Description

Brief/Intro

Both AaveV3ARBUSDCStrategy and AaveV3ARBWETHStrategy contract hardcodes the AAVE V3 lendingPool address as an immutable variable.

Vulnerability Details

This violates AAVE’s integration guidelines, which recommend dynamically querying the PoolAddressProvider for the current lendingPool address. If AAVE updates or migrates the pool, the contract will point to a deprecated address, disrupting some core logic of the protocol (for example: rendering it unable to deposit, withdraw, or access funds in the new pool).

Solidity
IERC20 public immutable usdc; // ARB USDC
   @> IAavePool public immutable pool; // Aave v3 Pool on ARB
    IAaveAToken public immutable aUSDC; // aToken for USDC on ARB

    constructor(address _myt, StrategyParams memory _params, address _usdc, address _aUSDC, address _pool, address _permit2Address)
        MYTStrategy(_myt, _params, _permit2Address, _usdc)
    {
        usdc = IERC20(_usdc);
      @>  pool = IAavePool(_pool);
        aUSDC = IAaveAToken(_aUSDC);
    }

Impact Details

If AAVE migrates to a new lendingPool address:

Loss of functionality: the AaveV3Farm contract will continue to point to the old, deprecated pool address, which will no longer hold funds or support operations. As a result supply will fail or send funds to an empty pool and withdraw will fail, locking users out of their funds.

Recommendation

Update AaveV3ARBUSDCStrategy and AaveV3ARBWETHStrategy contract to dynamically fetch the pool address from the PoolAddressProvider before each AAVE interaction:

Replace address public immutable pool with a reference to the PoolAddressProvider.

Store the PoolAddressProvider address (which is stable and does not change) in the constructor. Before each AAVE operation (supply, withdraw, etc.), call IAddressProvider(poolAddressProvider).getPool to get the current pool address.

References

https://github.com/alchemix-finance/v3-poc/blob/immunefi\\_audit/src/strategies/arbitrum/AaveV3ARBUSDCStrategy.sol?utm\\_source=immunefi#L27 https://github.com/alchemix-finance/v3-poc/blob/immunefi\\_audit/src/strategies/arbitrum/AaveV3ARBWETHStrategy.sol#L27

Proof of Concept

Proof of Concept

Deployment: The AaveV3ARBUSDCStrategy contract is deployed with lendingPool set to the current AAVE V3 lendingPool address. allocate now successfully depositing assets into AAVE.

AAVE Migration: AAVE’s governance migrates to a new lendingPool address (e.g., 0xNewLendingPool) and moves all funds (liquidity, reserves) to the new contract. The PoolAddressProvider::getPool function now returns a NewLendingPool, and OldLendingPool is deprecated (no funds, no operations).

Contract Failure: The contract attempts IAaveV3Pool(OldLendingPool).supply(...), which fails or sends funds to the deprecated pool, where they become stuck. calls withdraw via deallocate to retrieve funds. The contract calls IAaveV3Pool(0xOldLendingPool).withdraw(...), which fails because the old pool has no funds.

The original report as published on Immunefi, by kodyvim. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the strategy hardcodes the Aave pool address as an immutable instead of resolving it dynamically from the pool address provider, contrary to Aave's integration guidance.

Impact

If Aave migrates its pool, supply and withdraw could fail, potentially locking users out of their funds; this depends on a future migration actually happening.

What the attacker needed

Aave migrates to a new lending pool

The fix

The strategies should store the stable pool address provider and fetch the current pool address from it before each Aave interaction.

How it was found

  1. Deploy the strategy with the current Aave v3 pool address and deposit assets successfully.
  2. Aave governance migrates to a new pool and moves liquidity there.
  3. The strategy still calls the old pool for supply, which fails or strands funds.
  4. A withdrawal through the strategy also fails because the old pool holds no funds.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A smart contract can store another contract's address so it knows where to send calls. Here that address is fixed forever at deployment, but Aave can change which pool contract is the real one. If that happens, the strategy keeps talking to the old, empty pool, so deposits and withdrawals stop working.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by kodyvim

View all

3 more disclosed reports, best first.

More from Alchemix V3

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.