☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]

CVE-2025-54429

CVE-2025-54429 Security Advisory in Polkadot
📅 PUBLISHED: 2025-07-28 20:34 UTC 🔄 UPDATED: 2026-09-23 20:24 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.46%
👁️
0.46% probability
11.4× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
6.9
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-54429 is a security advisory affecting Polkadot Frontier, the Ethereum and EVM compatibility layer for Polkadot and Substrate. The vulnerability lies in the incorrect classification of account address types within the Frontier runtime. Specifically, the CallableByContract configuration check, which determines whether a precompiled contract can be invoked by a smart contract, was returning AddressType::EOA (Externally Owned Account) for contract addresses created via the CREATE or CREATE2 opcodes. This misclassification could allow smart contracts to bypass access controls intended to restrict certain precompiled contracts from being called by other contracts. The issue is not directly exploitable in any of the predefined precompiles in Frontier, but it poses a risk for custom precompile implementations that rely on the distinction between AddressType::EOA and AddressType::Contract. The vulnerability is fixed in commit 0822030.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability is specific to the Polkadot Frontier runtime, which is a core component of the Polkadot ecosystem. It does not directly affect NPM, PyPI, Go, or Ruby packages. However, any project that uses a custom precompile implementation within Frontier and relies on the CallableByContract configuration should be considered at risk. The fix is available in the Frontier repository, and users are advised to update to the latest patched version.

CVSS Breakdown & Threat Level

The CVSS score is listed as 0.0, which is likely due to incomplete or missing CVSS vector data. Based on the nature of the vulnerability, a more realistic assessment would be:

  • Attack Vector (AV): Network (AV:N) - The vulnerability can be triggered by sending a transaction to a smart contract.
  • Attack Complexity (AC): Low (AC:L) - No special conditions are required.
  • Privileges Required (PR): None (PR:N) - No authentication is needed.
  • User Interaction (UI): None (UI:N) - No user action is required.
  • Scope (S): Unchanged (S:U) - The vulnerable component is the only one affected.
  • Confidentiality (C): Low (C:L) - Limited information disclosure may be possible.
  • Integrity (I): Low (I:L) - Some data modification may be possible.
  • Availability (A): Low (A:L) - Some service disruption may be possible.

Estimated CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L Estimated Score: 7.3 (High)

Threat Level: High. While not directly exploitable in predefined precompiles, the vulnerability undermines a fundamental access control mechanism, potentially allowing unauthorized contract-to-contract calls in custom implementations.

Deep Dive & Mechanics

The vulnerability stems from the AddressType classification logic in Frontier. In the EVM, there are three main types of accounts:

  • Externally Owned Accounts (EOA): Controlled by private keys.
  • Smart Contract Accounts: Controlled by contract code.
  • Precompiled Contracts: Built-in contracts at specific addresses.

Frontier uses a configuration flag CallableByContract to determine if a precompiled contract can be called by a smart contract. This flag is checked by the address_type() function, which returns the AddressType of the caller.

The bug was in the implementation of address_type() for contract addresses created via CREATE or CREATE2. Instead of returning AddressType::Contract, it incorrectly returned AddressType::EOA. This meant that the CallableByContract check would pass for these contract addresses, even if the precompile was not configured to be callable by contracts.

The fix in commit 0822030 corrects this by ensuring that contract addresses created via CREATE or CREATE2 are correctly identified as AddressType::Contract.

Vulnerable vs. Patched Code

The vulnerable code is in the address_type() function within Frontier's runtime. The exact location is in the frame/evm/src/address.rs file (or similar).

Vulnerable Code (Conceptual):

fn address_type(address: &H160) -> AddressType {
    if is_precompile(address) {
        return AddressType::Precompile;
    }
    if is_contract(address) {
        // BUG: Incorrectly returns EOA for CREATE/CREATE2 addresses
        return AddressType::EOA;
    }
    AddressType::EOA
}

Patched Code (Conceptual):

fn address_type(address: &H160) -> AddressType {
    if is_precompile(address) {
        return AddressType::Precompile;
    }
    if is_contract(address) {
        // FIX: Correctly returns Contract for CREATE/CREATE2 addresses
        return AddressType::Contract;
    }
    AddressType::EOA
}

The key difference is the return value for contract addresses. The patched code correctly returns AddressType::Contract, ensuring that the CallableByContract check works as intended.

Exploitation & Lab Setup

Red Team

Exploitation Scenario:

  1. Setup: Deploy a custom precompile that is configured with CallableByContract = false (i.e., it should only be callable by EOAs).
  2. Trigger: Deploy a smart contract that uses CREATE or CREATE2 to create another contract.
  3. Exploit: The newly created contract (via CREATE/CREATE2) calls the custom precompile. Due to the bug, the precompile sees the caller as an EOA and allows the call, bypassing the intended restriction.

Lab Setup:

  • Use a local Substrate node with Frontier enabled.
  • Deploy a custom precompile with CallableByContract = false.
  • Deploy a factory contract that uses CREATE to spawn a child contract.
  • The child contract attempts to call the custom precompile.
  • Observe that the call succeeds in the vulnerable version and fails in the patched version.

No exploit code is available from Exploit-DB.

Blue Team

Detection:

  • Monitor for transactions where a contract created via CREATE or CREATE2 calls a precompile that is not configured to be callable by contracts.
  • Look for anomalies in the address_type() function's behavior.

Hunting:

  • Search for custom precompile implementations that rely on AddressType::EOA and AddressType::Contract distinctions.
  • Review logs for unexpected precompile calls from contract addresses.

Indicators of Compromise (IOCs)

  • Log Entries: Unexpected successful calls to precompiles that have CallableByContract = false from contract addresses.
  • On-Chain Data: Transactions where a contract created via CREATE or CREATE2 interacts with a precompile that should be restricted.
  • Runtime Errors: In patched versions, such calls will fail with an error indicating the precompile is not callable by contracts.

Detection Engineering

YARA Rule

rule Detect_CVE_2025_54429_Vulnerable_Code {
    meta:
        description = "Detects vulnerable Frontier code that misclassifies contract addresses as EOA"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-54429"
    strings:
        $vuln_pattern = "AddressType::EOA" ascii wide nocase
        $contract_check = "is_contract" ascii wide nocase
    condition:
        $vuln_pattern and $contract_check
}

Sigma Rule

title: CVE-2025-54429 - Frontier AddressType Misclassification
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects potential exploitation attempts of CVE-2025-54429 by monitoring for unexpected precompile calls from contract addresses.
author: Valters IT
date: 2025-04-10
logsource:
    category: application
    product: polkadot_frontier
detection:
    selection:
        event: "precompile_call"
        caller_type: "Contract"
        precompile_callable_by_contract: false
    condition: selection
falsepositives:
    - Legitimate calls if the precompile configuration is updated.
level: high

Suricata Rule

alert tcp any any -> any any (msg:"CVE-2025-54429 - Frontier AddressType Misclassification"; flow:to_server; content:"|70 72 65 63 6f 6d 70 69 6c 65|"; distance:0; within:10; content:"|63 61 6c 6c 61 62 6c 65 5f 62 79 5f 63 6f 6e 74 72 61 63 74|"; distance:0; within:20; content:"|66 61 6c 73 65|"; distance:0; within:5; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Update Frontier: Apply the fix by updating to commit 0822030 or later.
  2. Review Custom Precompiles: Audit any custom precompile implementations that use AddressType::EOA or AddressType::Contract to ensure they are not affected.

Long-Term Mitigations:

  1. Code Review: Implement a code review process for any custom precompile implementations.
  2. Testing: Add unit tests that verify the address_type() function returns the correct type for all account types.
  3. Monitoring: Set up monitoring for unexpected precompile calls.

Patch Details:

Valters IT Signature: This report was generated by Valters IT DevSecOps & CTI Expert System. All information is provided for authorized security assessment and defensive purposes only.

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-54429/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.