Business Insights
  • Home
  • Crypto
  • Finance Expert
  • Business
  • Invest News
  • Investing
  • Trading
  • Forex
  • Videos
  • Economy
  • Tech
  • Contact

Archives

  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • August 2023
  • January 2023
  • December 2021
  • July 2021
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019

Categories

  • Business
  • Crypto
  • Economy
  • Finance Expert
  • Forex
  • Invest News
  • Investing
  • Tech
  • Trading
  • Uncategorized
  • Videos
Subscribe
Money Visa
Money Visa
  • Home
  • Crypto
  • Finance Expert
  • Business
  • Invest News
  • Investing
  • Trading
  • Forex
  • Videos
  • Economy
  • Tech
  • Contact
Announcing the Trillion Dollar Security Initiative
  • Forex

CVE-2025-30147 – The curious case of subgroup check on Besu

  • July 5, 2025
  • Roubens Andy King
Total
0
Shares
0
0
0
Total
0
Shares
Share 0
Tweet 0
Pin it 0

Thanks to Marius Van Der Wijden for creating the test case and statetest, and for helping the Besu team confirm the issue. Also, kudos to the Besu team, the EF security team, and Kevaundray Wedderburn. Additionally, thanks to Yuxiang Qiu, Justin Traglia, Marius Van Der Wijden, Benedikt Wagner, and Kevaundray Wedderburn for proofreading. If you have any other questions/comments, find me on twitter at @asanso

tl;dr: Besu Ethereum execution client version 25.2.2 suffered from a consensus issue related to the EIP-196/EIP-197 precompiled contract handling for the elliptic curve alt_bn128 (a.k.a. bn254). The issue was fixed in release 25.3.0.
Here is the full CVE report.

N.B.: Part of this post requires some knowledge about elliptic curves (cryptography).

Introduction

The bn254 curve (also known as alt_bn128) is an elliptic curve used in Ethereum for cryptographic operations. It supports operations such as elliptic curve cryptography, making it crucial for various Ethereum features. Prior to EIP-2537 and the recent Pectra release, bn254 was the only pairing curve supported by the Ethereum Virtual Machine (EVM). EIP-196 and EIP-197 define precompiled contracts for efficient computation on this curve. For more details about bn254, you can read here.

A significant security vulnerability in elliptic curve cryptography is the invalid curve attack, first introduced in the paper “Differential fault attacks on elliptic curve cryptosystems”. This attack targets the use of points that do not lie on the correct elliptic curve, leading to potential security issues in cryptographic protocols. For non-prime order curves (like those appearing in pairing-based cryptography and in G2G_2G2​ for bn254), it is especially important that the point is in the correct subgroup. If the point does not belong to the correct subgroup, the cryptographic operation can be manipulated, potentially compromising the security of systems relying on elliptic curve cryptography.

To check if a point P is valid in elliptic curve cryptography, it must be verified that the point lies on the curve and belongs to the correct subgroup. This is especially critical when the point P comes from an untrusted or potentially malicious source, as invalid or specially crafted points can lead to security vulnerabilities. Below is pseudocode demonstrating this process:

# Pseudocode for checking if point P is valid
def is_valid_point(P):
    if not is_on_curve(P):    
        return False
    if not is_in_subgroup(P):
        return False
    return True

Subgroup membership checks

As mentioned above, when working with any point of unknown origin, it is crucial to verify that it belongs to the correct subgroup, in addition to confirming that the point lies on the correct curve. For bn254, this is only necessary for G2G_2G2​, because G1G_1G1​ is of prime order. A straightforward method to test membership in GGG is to multiply a point by the subgroup’s prime order nnn; if the result is the identity element, then the point is in the subgroup.
However, this method can be costly in practice due to the large size of the prime rrr, especially for G2G_2G2​. In 2021, Scott proposed a faster method for subgroup membership testing on BLS12 curves using an easily computable endomorphism, making the process 2×, 4×, and 4× quicker for different groups (this technique is the one specified in EIP-2537 for fast subgroup checks, as detailed in this document).
Later, Dai et al. generalized Scott's technique to work for a broader range of curves, including BN curves, reducing the number of operations required for subgroup membership checks. In some cases, the process can be nearly free. Koshelev also introduced a method for non-pairing-friendly curves using the Tate pairing, which was eventually further generalized to pairing-friendly curves.

The Real Slim Shady

As you can see from the timeline at the end of this post, we received a report about a bug affecting Pectra EIP-2537 on Besu, submitted via the Pectra Audit Competition. We're only lightly touching on that issue here, in case the original reporter wants to cover it in more detail. This post focuses specifically on the BN254 EIP-196/EIP-197 vulnerability.

The original reporter observed that in Besu, the is_in_subgroup check was performed before the is_on_curve check. Here's an example of what that might look like:

# Pseudocode for checking if point P is valid
def is_valid_point(P):
    if not is_in_subgroup(P):    
        if not is_on_curve(P):
            return False  
        return False
    return True

Intrigued by the issue above on the BLS curve, we decided to take a look at the Besu code for the BN curve. To my great surprise, we found something like this:

# Pseudocode for checking if point P is valid
def is_valid_point(P):
    if not is_in_subgroup(P):    
        return False
    return True

Wait, what? Where is the is_on_curve check? Exactly—there isn't one!!!

Now, to potentially bypass the is_valid_point function, all you'd need to do is provide a point that lies within the correct subgroup but isn't actually on the curve.

But wait—is that even possible?

Well, yes—but only for particular, well-chosen curves. Specifically, if two curves are isomorphic, they share the same group structure, which means you could craft a point from the isomorphic curve that passes subgroup checks but doesn't lie on the intended curve.

Sneaky, right?

Did you say isomorpshism?

Feel free to skip this section if you're not interested in the details—we're about to go a bit deeper into the math.

Let Fq\mathbb{F}_qFq​ be a finite field with characteristic different from 2 and 3, meaning q=pfq = p^fq=pf for some prime p≥5p \geq 5p≥5 and integer f≥1f \geq 1f≥1. We consider elliptic curves EEE over Fq\mathbb{F}_qFq​ given by the short Weierstraß equation:

y2=x3+Ax+By^2 = x^3 + A x + B y2=x3+Ax+B

where AAA and BBB are constants satisfying 4A3+27B2≠04A^3 + 27B^2 \neq 04A3+27B2=0.^[This condition ensures the curve is non-singular; if it were violated, the equation would define a singular point lacking a well-defined tangent, making it impossible to perform meaningful self-addition. In such cases, the object is not technically an elliptic curve.]

Curve Isomorphisms

Two elliptic curves are considered isomorphic^[To exploit the vulnerabilities described here, we really want isomorphic curves, not just isogenous curves.] if they can be related by an affine change of variables. Such transformations preserve the group structure and ensure that point addition remains consistent. It can be shown that the only possible transformations between two curves in short Weierstraß form take the shape:

(x,y)↦(e2x,e3y)(x, y) \mapsto (e^2 x, e^3 y)(x,y)↦(e2x,e3y)

for some nonzero e∈Fqe \in \mathbb{F}_qe∈Fq​. Applying this transformation to the curve equation results in:

y2=x3+Ae4x+Be6y^2 = x^3 + A e^{4} x + B e^{6}y2=x3+Ae4x+Be6

The jjj-invariant of a curve is defined as:

j=17284A34A3+27B2j = 1728 \frac{4A^3}{4A^3 + 27B^2}j=17284A3+27B24A3​

Every element of Fq\mathbb{F}_qFq​ can be a possible jjj-invariant.^[Both BLS and BN curves have a j-invariant equal to 0, which is really special.] When two elliptic curves share the same jjj-invariant, they are either isomorphic (in the sense described above) or they are twists of each other.^[We omit the discussion about twists here, as they are not relevant to this case.]

Exploitability

At this point, all that's left is to craft a suitable point on a carefully chosen curve, and voilà—le jeu est fait.

You can try the test vector using this link and enjoy the ride.

Conclusion

In this post, we explored the vulnerability in Besu's implementation of elliptic curve checks. This flaw, if exploited, could allow an attacker to craft a point that passes subgroup membership checks but does not lie on the actual curve. The Besu team has since addressed this issue in release 25.3.0. While the issue was isolated to Besu and did not affect other clients, discrepancies like this raise important concerns for multi-client ecosystems like Ethereum. A mismatch in cryptographic checks between clients can result in divergent behavior—where one client accepts a transaction or block that another rejects. This kind of inconsistency can jeopardize consensus and undermine trust in the network’s uniformity, especially when subtle bugs remain unnoticed across implementations. This incident highlights why rigorous testing and robust security practices are absolutely essential—especially in blockchain systems, where even minor cryptographic missteps can ripple out into major systemic vulnerabilities. Initiatives like the Pectra audit competition play a crucial role in proactively surfacing these issues before they reach production. By encouraging diverse eyes to scrutinize the code, such efforts strengthen the overall resilience of the ecosystem.

Timeline

  • 15-03-2025 – Bug affecting Pectra EIP-2537 on Besu reported via the Pectra Audit Competition.
  • 17-03-2025 – Discovered and reported the EIP-196/EIP-197 issue to the Besu team.
  • 17-03-2025 – Marius Van Der Wijden created a test case and statetest to reproduce the issue.
  • 17-03-2025 – The Besu team promptly acknowledged and fixed the issue.

Total
0
Shares
Share 0
Tweet 0
Pin it 0
Roubens Andy King

Previous Article
LumApps, which makes intranet software, agrees to merge with frontline staff communication app Beekeeper in a deal valuing the combined entity at about .1B (Reuters)
  • Tech

LumApps, which makes intranet software, agrees to merge with frontline staff communication app Beekeeper in a deal valuing the combined entity at about $1.1B (Reuters)

  • July 5, 2025
  • Roubens Andy King
Read More
Next Article
Why Liquidity Matters More Than Ever For Bitcoin
  • Crypto

Why Liquidity Matters More Than Ever For Bitcoin

  • July 5, 2025
  • Roubens Andy King
Read More
You May Also Like
Small Chance .6B Bitcoin Transfer Was a Hack
Read More
  • Forex

Small Chance $8.6B Bitcoin Transfer Was a Hack

  • Roubens Andy King
  • July 5, 2025
Amber International Raises .5M to Boost 0M Crypto Reserve
Read More
  • Forex

Amber International Raises $25.5M to Boost $100M Crypto Reserve

  • Roubens Andy King
  • July 5, 2025
Chainlink Price Continues To Struggle Below  — Levels To Watch
Read More
  • Forex

Chainlink Price Continues To Struggle Below $15 — Levels To Watch

  • Roubens Andy King
  • July 5, 2025
Robinhood Tokenization May Undercut NYSE Liquidity, Galaxy Warns
Read More
  • Forex

Robinhood Tokenization May Undercut NYSE Liquidity, Galaxy Warns

  • Roubens Andy King
  • July 5, 2025
Binance’s CZ donated M in BNB to Vitalik Buterin’s biotech efforts
Read More
  • Forex

Binance’s CZ donated $10M in BNB to Vitalik Buterin’s biotech efforts

  • Roubens Andy King
  • July 5, 2025
XRP Ledger logs 34% in RWA monthly growth, eyes bigger boost from Mercado Bitcoin partnership
Read More
  • Forex

XRP Ledger logs 34% in RWA monthly growth, eyes bigger boost from Mercado Bitcoin partnership

  • Roubens Andy King
  • July 5, 2025
Bitcoin Near Historic Weekly Close – Analyst Warns Of Volatility
Read More
  • Forex

Bitcoin Near Historic Weekly Close – Analyst Warns Of Volatility

  • Roubens Andy King
  • July 5, 2025
Analyst Warns Bitcoin Treasury Strategy Faces ‘Far Shorter’ Lifespan
Read More
  • Forex

Analyst Warns Bitcoin Treasury Strategy Faces ‘Far Shorter’ Lifespan

  • Roubens Andy King
  • July 4, 2025

Recent Posts

  • The latest Galaxy Z Fold 7 and Z Flip 7 leaks may have revealed battery and durability info – as well as on-sale dates
  • Dealmakers hit pause on M&A as caution rules the boardroom
  • Best CD rates today, July 5, 2025 (best account provides 5.5% APY)
  • Real Estate Investors Are Surprisingly Confident
  • Beloved supermarket chain tries to fix checkout pain point
Featured Posts
  • The latest Galaxy Z Fold 7 and Z Flip 7 leaks may have revealed battery and durability info – as well as on-sale dates 1
    The latest Galaxy Z Fold 7 and Z Flip 7 leaks may have revealed battery and durability info – as well as on-sale dates
    • July 5, 2025
  • Dealmakers hit pause on M&A as caution rules the boardroom 2
    Dealmakers hit pause on M&A as caution rules the boardroom
    • July 5, 2025
  • Best CD rates today, July 5, 2025 (best account provides 5.5% APY) 3
    Best CD rates today, July 5, 2025 (best account provides 5.5% APY)
    • July 5, 2025
  • Real Estate Investors Are Surprisingly Confident 4
    Real Estate Investors Are Surprisingly Confident
    • July 5, 2025
  • Beloved supermarket chain tries to fix checkout pain point 5
    Beloved supermarket chain tries to fix checkout pain point
    • July 5, 2025
Recent Posts
  • Senator Lummis’s Crypto Bill May End Double Taxation
    Senator Lummis’s Crypto Bill May End Double Taxation
    • July 5, 2025
  • Small Chance .6B Bitcoin Transfer Was a Hack
    Small Chance $8.6B Bitcoin Transfer Was a Hack
    • July 5, 2025
  • The Best Air Mattresses of 2025 We Tested
    The Best Air Mattresses of 2025 We Tested
    • July 5, 2025
Categories
  • Business (661)
  • Crypto (56)
  • Economy (95)
  • Finance Expert (629)
  • Forex (58)
  • Invest News (962)
  • Investing (412)
  • Tech (648)
  • Trading (630)
  • Uncategorized (1)
  • Videos (748)

Subscribe

Subscribe now to our newsletter

Money Visa
  • Privacy Policy
  • DMCA
  • Terms of Use
Money & Invest Advices

Input your search keywords and press Enter.