Recommendation: Make sure the Core-Geth client you run is
etclabscore/core-geth v1.12.23or a laterv1.12.xrelease. Do not useethereumclassic/core-geth v1.13.0.
On 2026-09-16 we published the Rogue Core-Geth Release Incident Report. An unreviewed build from ethereumclassic/core-geth was pushed to mining pools as a security update, and we went through its claims one by one. In summary, every CVE the release named had already been fixed in etclabscore/core-geth or does not apply to Ethereum Classic, and the release also changed how a node selects its chain and finds its peers.
That post analyzed the security claims made by that repository, but we did not review the code that was pushed, which we do here. We diffed the rogue ethereumclassic/core-geth v1.13.0 tag against etclabscore/core-geth v1.12.23, read the changes, and ran the client on our own machines to confirm the findings we could. Every finding links to a file and line at the tag, so you can check it without trusting us.
As we covered in the incident report, over thirteen thousand lines of changes went into the rogue release in one weekend, and nobody reviewed them.
We did this review in September and held it back. Since then the account that wrote nearly all of the fork appears to have been suspended by GitHub, no fix has been released, and more nodes are running the rogue release than when we started.
Disclosure
-
2026-09-21. We reported the STUN transaction ID flaw, the default external probing, the peer replacement bug and the handshake cap range to [email protected], the rogue fork’s published contact. We asked for an acknowledgement by 2026-09-28 and said we would publish on 2026-10-05.
-
2026-09-26. The fork’s team confirmed receipt. They said they had confirmed the first two findings, that fixes were in review, and that all three would ship in
v1.13.1. They asked us to hold this post.In line with common coordinated-disclosure practice, we ask that the write-up wait until 30 days after v1.13.1 is released, so operators have time to upgrade before the details are public.
-
2026-09-27. We replied, and sent the rest of the findings in this post.
-
2026-09-29. The team replied.
None of them are critical, and we plan to address all of them in v1.13.1.
They repeated the request to wait until 30 days after
v1.13.1, and asked that if we published sooner, we say that none of the findings are critical. -
2026-10-05. The date we had given for publication. We held the post, to avoid drawing attention to the rogue release.
-
2026-10-12. The last commit to the fork’s main branch.
-
2026-11-13. The last activity we can find from the maintainer’s account.
-
2026-11-24. This post, 64 days after the report. The number of nodes on the rogue release has gone up, so we are publishing it. There is no
v1.13.1, and no advisory has been published.
Maintainer Suspension
One account wrote nearly all of the commits to the rogue fork. Of the 87 commits on ethereumclassic/core-geth main since the v1.13.0 tag, 84 are by chris-mercer. The other three, by realcodywburns, edit SECURITY.md.
The chris-mercer account appears to have been suspended by GitHub. Its profile returns a 404 (archived), and so does the GitHub API. We don’t know why, but the activity leading up to the ban suggests spam or inauthentic activity. Its last commit to main is dated 2026-10-12 (archived commit list), and its last push to this repository was on 2026-11-09. The last activity we can find from the account anywhere is a branch it created in ethereumclassic/archive-reference-material on 2026-11-13 at 00:01 UTC, so the suspension came after that.
Nobody is maintaining this code now, and as far as we understand, no other active maintainers in the Ethereum Classic GitHub organization have commit access to the main branch. v1.13.0 from 2026-09-14 is still the only release (archived), and the one account that was writing the fixes for v1.13.1 is gone.
Findings
We found nineteen defects in the rogue release. Every defect below is in code that ethereumclassic/core-geth v1.13.0 added, changed or removed. None of them exists in etclabscore/core-geth v1.12.23, the release the fork started from, so a node on v1.12.23 is not affected by any of them. The changes were pushed without review, over thirteen thousand lines of them in the three days before the release, as the incident report describes.
- The STUN Client Accepts Any Reply
- One Identity Can Exceed the Peer Limit
- The NAT Race Disables Port Mapping
- Undocumented Probes to Google, Cloudflare and Amazon
- The Handshake Cap Is Gone
- Snap Requests Refused During Snapshot Generation
- STUN Parser Accepts Unroutable Addresses
- The Announcement Cap Disconnects Peers
- Advertised IP Never Refreshes
- PGP Signing Is Gone
- Empty RPC Module Guard Misses Config Files
- Version Check Never Finds a Vulnerability
- The CVE Regression Tests Are Gone
- Config-Only Private Networks Dial Into ETC
- Medium KDF Silently Downgrades to Light
- Startup Banner Disagrees With the Node
- NAT Doc Comment Describes the Wrong Order
- The Tmpdir Flag Does Nothing on Windows
- Snapshot Status RPC Has No Console Binding
The sections run from most severe to least. We ranked each defect on what an attacker or the network path can do with it, how much of the network it reaches, how far it sits from what the release claimed about itself, and how well we could verify it by running the code. Each section says what we ran and what we only read.
The STUN Client Accepts Any Reply
Every etclabscore/core-geth release in the v1.12.x line starts with --nat any, and on every one of them that meant two things. The node asks the local router for a port mapping over UPnP, and it asks over NAT-PMP. Both are local-network protocols. Neither packet leaves the local network. The nat package at etclabscore/core-geth v1.12.23 is nat.go, natpmp.go, natupnp.go and their tests, and nothing else.
The rogue ethereumclassic/core-geth v1.13.0 adds two files to that package, natstun.go and nathttp.go, and wires both into the default cascade at nat.go line 147.
func Any() Interface {
return startautodisc("UPnP, NAT-PMP, STUN or HTTP", func() Interface {
found := make(chan Interface, 4)
go func() { found <- discoverUPnP() }()
go func() { found <- discoverPMP() }()
go func() { found <- discoverSTUN() }()
go func() { found <- discoverHTTP() }()
for i := 0; i < cap(found); i++ {
if c := <-found; c != nil {
return c
}
}
return nil
})
}
The four mechanisms race and the first to answer wins. The two new ones talk to the internet. natstun.go lines 29 to 33 name the STUN servers.
// stunServers are the same canonical STUN servers used by Besu and Nethermind.
var stunServers = []string{
"stun.l.google.com:19302",
"stun1.l.google.com:19302",
"stun.cloudflare.com:3478",
}
STUN works by sending a small request and reading back your public address from the reply. The protocol puts a random transaction ID in every request so the client can tell a real answer from a stray or forged packet. RFC 5389 section 7.3.3 says the client must check it. The ethereumclassic/core-geth v1.13.0 client does not. natstun.go line 70 says so in its own comment.
// RFC 5389 §6: Binding Request — 20-byte fixed header, no body attributes
var req [20]byte
req[0], req[1] = 0x00, 0x01 // Message Type: Binding Request
req[2], req[3] = 0x00, 0x00 // Message Length: 0 (no body)
req[4], req[5], req[6], req[7] = 0x21, 0x12, 0xA4, 0x42 // Magic Cookie (RFC 5389)
// bytes 8–19: Transaction ID — all zeros (we accept any response)
The request goes out with a zero transaction ID, and the reader takes the first datagram that arrives and parses an address out of it without comparing anything. Whatever address it finds becomes the node’s advertised public IP. server_nat.go lines 124 to 134 read the external IP from the NAT interface and write it into the node record with SetStaticIP.
The socket is a connected UDP socket, so the reply has to appear to come from the STUN server’s address and port. That rules out an attacker who cannot spoof the source address. It does not rule out anyone on the network path between the node and Google, or an off-path attacker who spoofs the source and guesses the ephemeral port. Either can decide what address the node tells the rest of the network to reach it at. And because the four mechanisms race, a forged answer that arrives before the UPnP reply is the one the node uses.
We verified all of it by running the client’s own code. We pointed the unmodified STUN client at a fake server on loopback and captured the packets. The request went out with the zero transaction ID. The client took the first datagram that arrived and never read a second one. Replies with a wrong transaction ID were accepted, and so were replies with a wrong magic cookie. Forged answers carrying 127.0.0.1, 10.0.0.1, 224.0.0.1 and 0.0.0.0 were all accepted as the node’s public address.
The HTTP probes have the same problem. nathttp.go lines 71 to 80 parses whatever address the response body contains. Our fake served it loopback and multicast addresses and the client accepted both. Because those URLs are HTTPS, forging them takes endpoint compromise or TLS interception rather than a spare UDP socket.
The worst case requires no new attack. Anyone on the network path between a default node and Google can choose the address the node advertises to the whole network. That includes an ISP, a hosting provider or a compromised router. It happens on every startup, and because the mechanisms race, the forged answer is used even when the honest one arrives. An off-path attacker has to spoof the source address and hit the right ephemeral port, and with the transaction ID fixed at zero, that port is the only thing left to guess.
Set one node’s address to one you control and it receives no inbound peers, and you get a list of every peer that tried. Set a thousand nodes’ addresses to one victim and every peer that tries to reach them connects to the victim instead.
Upstream go-ethereum added STUN support in January 2025. Its implementation uses the pion STUN library, picks servers at random from an embedded list of dozens, matches replies on the transaction ID, and is opt-in behind --nat stun. It is never part of any. ethereumclassic/core-geth v1.13.0 ships a 128-line client of its own instead, which does not check the transaction ID. The upstream implementation was available to backport. The incident report describes the same pattern in the dependency bumps.
One Identity Can Exceed the Peer Limit
ethereumclassic/core-geth v1.13.0 adds a new behaviour to the peer set. When a node with an ID that is already connected shows up again, and the existing connection has been silent for two ping intervals, thirty seconds at peer.go line 49, the old connection is dropped and the new one takes its place. In etclabscore/core-geth v1.12.23 the same case is one line, return DiscAlreadyConnected.
The replacement at server.go lines 839 to 854 disconnects the old peer and deletes it from the peer map at line 849. It does not handle the old peer’s exit event. When a peer’s run loop ends it always sends a delpeer event to the main loop, and the handler deletes by node ID and adjusts the inbound counter from the departing peer’s flags. By the time that event fires, the entry under that node ID is the replacement. So the live replacement is removed from the map, the counters drift, and the replacement keeps running untracked. It no longer counts against MaxPeers, it is invisible to admin_peers, and a further connection with the same ID passes the duplicate check.
Repeat that and a remote peer can hold more connections than the node is configured to allow. All it takes is letting a connection go quiet for thirty seconds and reconnecting with the same key.
We ran it. On a server with five peer slots we dialled nine times with a single node key, letting each connection fall silent before redialling. The server ended the sequence reporting one peer while that identity held five live connections, none of them counted. An honest peer dialling with a fresh key was then turned away as too many peers, while the five untracked connections stayed up. The limit check claim holds as well. With all five slots filled by distinct identities, redialling a stale one was rejected at the limit and the replacement branch never ran.
The fix is one comparison. Delete only if the map entry is the same peer instance that is leaving.
Two more things are wrong with the same branch. The staleness test does not measure what its comment says. The timestamp it reads is updated in the peer’s read loop only after a message has been handed to the protocol handler, and that hand-off blocks on an unbuffered channel at peer.go line 384. While the node is busy importing blocks the timestamp stops moving even though the connection is healthy and the remote is still pinging. A syncing node that gets redialled by an existing peer will therefore tear down a live connection and call it stale.
The branch also cannot run in the situation it was written for. The switch at server.go lines 835 to 839 checks the peer limits first, the silent peer still counts against them, so a node at its default 50 peers rejects the redial as too many peers before the replacement logic is ever reached. It only fires when the node is below its limits, which is when a duplicate connection was harmless anyway.
The worst case is a node whose connection slots are all held by one attacker while it rejects everyone else. Each untracked connection still costs a goroutine, read buffers and a protocol handler, none of it visible in admin_peers. The drifted counters keep rejecting honest inbound peers as if the table were full. The operator sees a normal peer count. Whoever ran the loop holds the node’s inbound capacity.
The NAT Race Disables Port Mapping
This defect follows from timing.
Any() takes whichever mechanism answers first. UPnP discovery is a multicast search that waits for routers to respond. The UPnP library both clients use waits three seconds when no deadline is set, and neither client sets one. NAT-PMP gives up after one second. From our test machine, Google’s STUN server answered in 34 milliseconds and icanhazip.com in 115. On any machine with internet access, the external probes win by two orders of magnitude.
The winner is an ExtIP, a fixed address with no router behind it. Its AddMapping at nat.go line 141 does nothing.
func (ExtIP) AddMapping(string, int, int, string, time.Duration) (uint16, error) { return 0, nil }
The port mapping loop in server_nat.go line 160 calls that no-op and moves on. So an ethereumclassic/core-geth v1.13.0 node behind a home or office router advertises its correct public address with no port forwarded to it. Peers learn where it is and cannot reach it. Every etclabscore/core-geth v1.12.x release in the same position asked the router for a mapping and got one.
The fork’s own code handles this outcome. Five lines added to the same loop, at server_nat.go lines 169 to 173, handle a successful mapping call that returns port zero.
// It was mapped!
m.extPort = int(p)
if m.extPort == 0 {
log.Debug("NAT mapping returned extport=0, skipping ENR update")
m.nextTime = srv.clock.Now().Add(portMapRetryInterval)
continue
}
etclabscore/core-geth v1.12.23 has no such guard, because there a mapping call that succeeds always returns a real port. The only way to get a success with port zero is the ExtIP no-op. The guard keeps port zero out of the node record. It does not change the port mapper returning nothing.
A node in this position still syncs, because its own outbound connections work. It loses every inbound connection, so it contributes nothing to the network as a peer. Operators behind a router that relied on UPnP became unreachable after upgrading.
We ran the race. With fakes on loopback standing in for the STUN and HTTP probes, Any() returned an ExtIP carrying our forged address in every round, in 0.15 to 2.2 milliseconds. The same runs timed the losers, UPnP discovery at 2.0 seconds and NAT-PMP at 1.0. The winning ExtIP’s mapping call returned success with port zero, every time. We have not tested against a live router.
The worst case reaches the whole network. Every default node behind a home or office router that takes this release stops accepting inbound connections and never finds out, because syncing still works and nothing looks broken. If the release were adopted at the scale it was pushed, many reachable nodes would become outbound-only. Every inbound connection would then land on the remaining public nodes. A network with fewer reachable nodes is easier to partition.
Undocumented Probes to Google, Cloudflare and Amazon
The STUN servers in the section above are one half of the new probing. The other half is HTTP. nathttp.go lines 32 to 37 name the websites.
// httpProbeURLs are the canonical HTTPS probes, aligned with Besu and Nethermind.
var httpProbeURLs = []string{
"https://icanhazip.com",
"https://checkip.amazonaws.com",
"https://api4.ipify.org",
"https://4.ident.me",
}
So an ethereumclassic/core-geth v1.13.0 node with default flags contacts two Google servers, one Cloudflare server and four IP-echo websites, two of them hosted on Cloudflare, one on Amazon and one on Hetzner, before it has spoken to a single peer. No etclabscore/core-geth release ever did that.
The comments in both files say this aligns the client with Besu and Nethermind, and the commit that added them says “Aligns core-geth with Besu, Nethermind, and Fukuii NAT detection strategy.” Nethermind’s IP resolver does query HTTP echo services by default. Besu does not do any of this. Its NAT methods are UPnP, Docker, Kubernetes, auto and none, and there is no STUN anywhere in its codebase. The only client named that does STUN is Fukuii, which is the same author’s own project.
None of it is documented in the release.
- The v1.13.0 release notes do not mention STUN, NAT, probes or external addresses.
- The README at the tag does not either.
- The bootnodes and discovery guide shipped in the same tag still documents the old behaviour. Its flag table reads “Port mapping: any, none, upnp, pmp, pmp:IP or extip:IP”.
- The
--natflag’s own help text, atflags.goline 947, says the same. “NAT port mapping mechanism (any|none|upnp|pmp|pmp:IP|extip:IP)”.
The binary’s behaviour differs from its own --help output. An operator can avoid it by passing --nat extip:<ip>, --nat upnp or --nat none, which the release does not mention.
The worst case needs no attacker. Google, Cloudflare and Amazon each receive a timestamped list of every IP address running this client, updated on every restart. The release does not tell operators that this happens.
The Handshake Cap Is Gone
etclabscore/core-geth v1.12.21, Aegis, added a 2 KiB bound on RLPx handshake messages, on the path a peer reaches before it has authenticated. The ethereumclassic/core-geth v1.13.0 binaries accept up to the 64 KiB the two-byte prefix allows. ethereumclassic/core-geth restored the cap on its main branch on 2026-09-18 in pull request 43, four days after the release, and the pull request’s description says so. “The commit this line was cut from lacked both.”
We measured the path. Declaring a handshake of 2,049, 40,000 or 65,535 bytes has the server read every declared byte, 2,051, 40,002 and 65,537 on the wire, before the handshake fails on its contents. Nothing rejects the message at 2 KiB. Holding the connection open costs the node about 78 KB of live heap, so 50 unauthenticated connections, the default pending limit, held 3.7 MB in our runs, and 1,000 held 72.6 MB.
In the worst case, every unauthenticated connection can make the node buffer 32 times what the cap allowed, on a code path that any unauthenticated peer can reach.
Snap Requests Refused During Snapshot Generation
The fork adds a readiness gate, isSnapServingReady, in front of all four snap protocol request handlers, so that a node whose state snapshot is still generating answers with an empty reply. For account and storage ranges that changes nothing, since those handlers already returned empty while generating. For bytecode and trie node requests it is a regression. Serving bytecode reads contract code from the database and never touches the snapshot. Serving trie nodes has its own fallback through the account trie for this case. Neither etclabscore/core-geth v1.12.23 nor go-ethereum gates them.
Snapshot generation after a snap sync takes hours on Ethereum Classic mainnet. For all of that time an ethereumclassic/core-geth v1.13.0 node refuses the two request types that a peer’s own snap sync needs to heal, which is the traffic that makes a new node useful to the next new node. The gate also costs something on every message. It calls Generating(), which takes the snapshot tree’s exclusive write lock at snapshot.go line 850, the same lock block import holds while it flattens layers to disk. Any peer can now make a node take that lock at whatever rate it sends 40-byte requests.
Both halves run as written. We put a node into the generating state and sent it bytecode and trie node requests. The replies came back empty, while the same queries issued directly against the serving code returned the data from disk, so the refusal is the gate and nothing else. Serving resumed the moment generation finished. We also measured the lock. An uncontended Generating() call costs 78 nanoseconds. Behind one 200-millisecond hold of the tree lock, the kind block import makes while it flattens a layer, a single call waited out the whole hold. A realistic flatten of 100,000 accounts held the lock for 122 milliseconds, and eight gated requests arriving during it queued behind it, each waiting about 90 milliseconds.
The worst case falls in the hours after a node finishes syncing, when the next new nodes need it most. A fresh node finishes its snap sync and spends hours generating its snapshot. For all of that time any peer can make its block import wait behind a stream of 40-byte requests, and every healing request from the next new nodes comes back empty. A few attacking peers keep the newest nodes from serving or healing and slow their catch-up, at almost no cost.
STUN Parser Accepts Unroutable Addresses
The STUN parser checks only the message type at natstun.go line 95, never the protocol’s magic cookie, and never checks that the address it extracts is a routable one before it becomes the node’s advertised IP. Loopback, private and multicast addresses all pass.
The Announcement Cap Disconnects Peers
Commit 44e236b3 caps the number of block announcements a peer may send in one message at 2048, and a peer that sends more is disconnected with a decode error. Neither client ever sends more than one, so a network made only of core-geth nodes, from either repository, is unaffected. Another client that batches announcements during a deep reorganisation would be cut off by every ethereumclassic/core-geth v1.13.0 node it touched. When the cap is exceeded, the node disconnects the peer.
We ran the cap. A peer that sends 2,048 announcements in one message stays connected. At 2,049 the node refuses the message and drops the peer, and we watched both sides of it, the node logging “invalid message: block announcements: 2049 > 2048” and the sender receiving a bare disconnect request with no reason attached.
The worst case arrives with a deep reorganisation. A client that batches announcements to catch up sends them to every v1.13.0 node it is connected to and is disconnected by each of them with no explanation. The network splits along client lines while it is still reorganising.
Advertised IP Never Refreshes
Once a probe answer is written into the node record as a static IP, endpoint prediction is switched off for the life of the process, and the cached answer is never refreshed. A node whose public IP changes advertises the old one until it restarts. etclabscore/core-geth v1.12.23 re-learns its address from peers.
PGP Signing Is Gone
etclabscore/core-geth v1.12.23 signs every archive with a maintainer PGP key in build/ci.go. ethereumclassic/core-geth v1.13.0 deletes internal/build/pgp.go and the signer flag with it, leaving signify signatures and GitHub build attestations. Attestations prove which workflow built a file. They do not prove a person stood behind it.
The worst case is a future release that no person can be tied to.
Empty RPC Module Guard Misses Config Files
The new guard against an empty RPC module list, which would otherwise expose the admin and debug namespaces on a public endpoint, is placed inside the check for the command line flag at flags.go line 1373. An empty list in a TOML config file is not checked.
Version Check Never Finds a Vulnerability
version-check now only accepts an advisory pattern that matches at the start of the version string. Every pattern in the vulnerability feed starts with “Geth”, and this client’s version string starts with “Core-Geth”, so the command prints “No vulnerabilities found” for every release.
The CVE Regression Tests Are Gone
etclabscore/core-geth v1.12.23 carries curve_cve_test.go, handler_cve_test.go and rlpx_oracle_poc_test.go, the tests that pin the fixes for the CVEs ethereumclassic/core-geth v1.13.0 claims as its own. All three are gone from its tree.
The worst case is the next regression of those fixes shipping with no test to catch it.
Config-Only Private Networks Dial Into ETC
A new helper, isClassic, decides the node is on Ethereum Classic mainnet whenever no network flag is on the command line. A private network defined entirely in a config file therefore gets the ETC bootnodes and DNS discovery trees, and dials into the ETC network.
Medium KDF Silently Downgrades to Light
The new --mediumkdf keystore tier is silently downgraded to the light tier by --dev or by a config file, because the mutual-exclusion check at flags.go line 1657 tests the raw flags rather than the resolved setting, and the switch at accountcmd.go line 293 tests light first. The operator asks for the stronger tier and gets the weaker one with no warning.
Startup Banner Disagrees With the Node
The startup banner and the behaviour disagree for --classic=false. The banner at main.go line 359 says the node is starting on Ethereum Classic, while the node gets no bootnodes, no discovery, and writes the ETC genesis into the base data directory.
NAT Doc Comment Describes the Wrong Order
The doc comment on the NAT cascade at nat.go line 145 describes an ordered fallback from UPnP to NAT-PMP to STUN to HTTP. The code races all four.
The Tmpdir Flag Does Nothing on Windows
--tmpdir is documented for every platform and is a no-op on Windows, because it is implemented by setting the TMPDIR environment variable.
Snapshot Status RPC Has No Console Binding
The new debug_snapshotGeneratorStatus RPC method is advertised in the generated console documentation and has no console binding, so calling it from geth attach fails with a type error.
More Nodes Are Running It
The incident report counted eleven nodes on the rogue release on 2026-09-15 and nine by 2026-09-21. At 23:31 UTC on 2026-11-23, etcnodes.org listed fifteen, out of 565 nodes on the network.
Eight of the fifteen have been there since release day. The crawler first saw two in October, and five more since 2026-11-13, in Poland, Canada, France and the United Kingdom.
What to Do
Do not run ethereumclassic/core-geth. It has nineteen known defects, no fix release and no maintainer. Run etclabscore/core-geth v1.12.23, Argos, from the repository core-geth has lived in since 2020. The reasons in the incident report still apply.
As of 2026-11-23 the handshake cap fix is on the ethereumclassic/core-geth main branch and in no release. No commit there touches the NAT package, the peer replacement code or the announcement cap.