CWE-325Weakness · CWE-325

CVE-2025-30147

HIGH · 8.7 CVSS v4.0 Published 2025-05-07
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
96/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
Besu Native contains scripts and tooling that is used to build and package the native libraries used by the Ethereum client Hyperledger Besu. Besu 24.7.1 through 25.2.2, corresponding to besu-native versions 0.9.0 through 1.2.1, have a potential consensus bug for the precompiles ALTBN128_ADD (0x06), ALTBN128_MUL (0x07), and ALTBN128_PAIRING (0x08). These precompiles were reimplemented in besu-native using gnark-crypto's bn254 implementation, as the former implementation used a library which was no longer maintained and not sufficiently performant. The new gnark implementation was initially added in version 0.9.0 of besu-native but was not utilized by Besu until version 0.9.2 in Besu 24.7.1. The issue is that there are EC points which may be crafted which are in the correct subgroup but are not on the curve and the besu-native gnark implementation was relying on subgroup checks to perform point-on-curve checks as well. The version of gnark-crypto used at the time did not do this check when performing subgroup checks. The result is that it was possible for Besu to give an incorrect result and fall out of consensus when executing one of these precompiles against a specially crafted input point. Additionally, homogenous Besu-only networks can potentially enshrine invalid state which would be incorrect and difficult to process with patched versions of besu which handle these calls correctly. The underlying defect has been patched in besu-native release 1.3.0. The fixed version of Besu is version 25.3.0. As a workaround for versions of Besu with the problem, the native precompile for altbn128 may be disabled in favor of the pure-java implementation. The pure java implementation is significantly slower, but does not have this consensus issue.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

The altbn128 elliptic curve precompiles (ALTBN128_ADD, ALTBN128_MUL, ALTBN128_PAIRING) in Besu have a consensus bug where specially crafted EC points that are in the correct subgroup but not on the curve can cause incorrect computation results. The gnark-crypto implementation relied on subgroup checks to perform point-on-curve validation, which was insufficient. This can cause Besu nodes to fall out of consensus and potentially enshrines invalid state that is difficult to recover from.

MitigationUpgrade to Besu 25.3.0 (with besu-native 1.3.0) or disable the native altbn128 precompile and use the pure-Java implementation as a workaround.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
Authentication
X
User interaction
None
Scope
X

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify Besu version
    Run 'besu --version' or check the process/container metadata to determine the installed Besu version.
    Affected if Version is below 25.3.0
  2. Confirm native altbn128 precompile is in use
    Check Besu configuration for '--Xnode-nativ-altbn128-enabled=true' or the default setting. If not explicitly set to false, native precompiles are enabled by default.
    Affected if Native altbn128 precompiles are enabled (not explicitly disabled to use pure-Java implementation)
  3. Verify Besu native library version
    Check for 'besu-native' version 1.3.0 or later in the Besu release notes or by inspecting the included native libraries if accessible. This accompanies Besu 25.3.0.
    Affected if besu-native version is below 1.3.0 or cannot be determined alongside a pre-25.3.0 Besu version

You are affected if running Besu version below 25.3.0 with native altbn128 precompiles enabled (the default), as this configuration uses the vulnerable gnark-crypto implementation.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade to Besu 25.3.0 (with besu-native 1.3.0) or disable the native altbn128 precompile and use the pure-Java implementation as a workaround.

Recommended fix High confidence

Besu 25.3.0 (includes besu-native 1.3.0)

  1. Upgrade Besu to version 25.3.0 or later, which includes the patched besu-native 1.3.0 library that correctly validates EC points are on the curve before performing subgroup checks
  2. The fixed besu-native 1.3.0 addresses the consensus bug where specially crafted input points in the correct subgroup but not on the curve could cause incorrect results for ALTBN128_ADD, ALTBN128_MUL, and ALTBN128_PAIRING precompiles
  3. As an alternative mitigation for versions that cannot upgrade immediately, disable the native altbn128 precompile by setting the configuration flag (such as --Xsmr-native-altbn128-enabled=false) to use the pure-java implementation instead, which is slower but does not have this consensus issue
Caveat The pure-java implementation is significantly slower than native, impacting performance for applications using altbn128 precompiles

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation8.0 h
  • Implementation4.0 h
  • Testing12.0 h
  • Review / QA4.0 h
28.0 hours of engineering $4,840
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $7,744.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-30147 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-30147 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data