CVE-2026-52879

HIGHPre-NVD 7.57.5
EchelonGraph scoreLOW confidence

This high-severity CVE scores 7.5 under the CNA's CVSS (NVD's own analysis pending). EPSS exploit probability: 0.1%, top 84% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).

Triggered by: NVD CVSS baseline
Sources: cna:github_m, epss
7.5
EchelonGraph verdictPlan a fixSerious severity, but no confirmed exploitation yet.
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS: 0%CVSS: 7.5Exploit: NoneExposed: 0

No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.

klever-go: Unbounded goroutine spawn on direct-message ingress enables peer-driven DoS

Summary

networkMessenger.directMessageHandler in network/p2p/libp2p/netMessenger.go spawns a fresh goroutine for every incoming direct message before the antiflood layer makes an admission decision. There is no semaphore, throttler, or bound on concurrent in-flight spawns.

A single connected libp2p peer can open a DirectSendID stream and send well-formed TopicMessage envelopes with varying sequence numbers. Each accepted direct message reaches directMessageHandler and triggers a fresh goroutine before processor.ProcessReceivedMessage runs. This allows unbounded goroutine growth and node availability degradation from one peer.

This remains present in the latest release v1.7.17: network/p2p/libp2p/netMessenger.go:1060 still spawns go func(msg p2p.MessageP2P) before processor.ProcessReceivedMessage. I also verified current develop commit 10bcfd50, where the same spawn remains at network/p2p/libp2p/netMessenger.go:1115.

This is distinct from GHSA-74m6-4hjp-7226 and GHSA-87m7-qffr-542v. Those advisories concern MultiDataInterceptor decompression/throttler behavior. This report concerns the libp2p direct-message ingress wrapper spawning an unbounded goroutine before processor-level antiflood/admission logic runs. A patch to Batch.Decompress or MultiDataInterceptor does not bound this direct-message goroutine spawn.

Details

The affected path is network/p2p/libp2p/netMessenger.go in directMessageHandler.

The direct-message path transforms and validates the message, looks up the topic processor, then immediately spawns a goroutine:

func (netMes *networkMessenger) directMessageHandler(message *pubsub.Message, fromConnectedPeer core.PeerID) error {
    var processor p2p.MessageProcessor

topic := *message.Topic msg, err := netMes.transformAndCheckMessage(message, fromConnectedPeer, topic) if err != nil { return err }

netMes.mutTopics.RLock() processor = netMes.processors[topic] netMes.mutTopics.RUnlock()

if processor == nil { return fmt.Errorf("%w on directMessageHandler for topic %s", p2p.ErrNilValidator, topic) }

go func(msg p2p.MessageP2P) { if check.IfNil(msg) { return }

errProcess := processor.ProcessReceivedMessage(msg, fromConnectedPeer) // ... }(msg)

return nil }

The processor-level antiflood decision happens inside ProcessReceivedMessage, after the goroutine, its stack, and the cloned message reference already exist. That means antiflood can bound processing rate, but not goroutine creation rate.

The existing goRoutinesThrottler with capacity broadcastGoRoutines = 1000 is wired into outgoing broadcast paths such as BroadcastOnChannelBlocking, not this incoming direct-message path.

The parallel pubsub ingress path in the same file handles a comparable inbound message surface synchronously:

err = handler.ProcessReceivedMessage(msg, fromConnectedPeer)

So the direct-message path is asymmetric: same transform/check function, same ProcessReceivedMessage callee, but direct-message ingress adds an unbounded goroutine spawn.

Reachability:

  • directSender.go registers DirectSendID as a libp2p stream protocol.
  • directStreamHandler reads framed pubsub.Message envelopes from the stream.
  • directStreamHandler forwards each message to networkMessenger.directMessageHandler.
  • Any connected peer can send well-formed envelopes to registered topics.
  • The seenMessages cache keys on From + Seqno; Seqno is attacker-controlled in the envelope, so incrementing it bypasses dedupe.

PoC

GitHub Private Vulnerability Reporting does not appear to allow file attachments in this form, so I am including the reproduction command and captured output inline. I can provide the full Go test file immediately if useful.

The PoC is a Go test file intended to be placed under network/p2p/libp2p/ in a klever-go checkout. It exercises the real network/p2p/libp2p package with NewMockMessenger.

Reproduction:

git clone https://github.com/klever-io/klever-go
cd klever-go
git checkout v1.7.16

Place dos_directmsg_test.go into:

network/p2p/libp2p/

go test ./network/p2p/libp2p/ -run TestPoC_ -count=1 -v -timeout 60s

Captured output:

=== RUN   TestPoC_DirectMessageHandler_SpawnsGoroutinePerMessage
    baseline goroutines: 43
    peak goroutines after 500 direct messages: 543 (delta = 500)
    final goroutines after drain + GC: 43
POC_RESULT direct=spawn N=500 baseline=43 peak=543 delta=500 threshold=400 final=43
--- PASS

=== RUN TestPoC_SynchronousHandler_NoGoroutineGrowth baseline goroutines: 47 peak goroutines after 500 synchronous calls: 47 (delta = 0) POC_RESULT sync=block N=500 baseline=47 peak=47 delta=0 --- PASS

=== RUN TestPoC_DirectMessageHandler_NoThrottlerInPath all 2000 SendToConnectedPeer calls returned in 2.490708ms -- no throttler blocking POC_RESULT throttler=absent N=2000 elapsed=2.490708ms --- PASS

Reading:

  • 500 direct messages with slow processors produced exactly 500 new goroutines.
  • The synchronous control path produced zero goroutine growth.
  • 2000 messages, twice the outgoing broadcastGoRoutines = 1000 capacity, returned immediately, showing no ingress throttler blocks this path.

Impact

A single connected peer can sustain unbounded goroutine spawn growth on a klever-go node. Each spawned goroutine allocates its own stack, holds message references until the processor returns, and adds scheduler and GC pressure before antiflood admission can reject the message.

Under realistic attacker line rate and non-trivial processor latency, goroutine count can grow faster than the runtime drains it, degrading the node's ability to process legitimate traffic. This maps to the SECURITY.md High category: "Denial of Service affecting network availability."

All testing was local only. I did not contact Klever mainnet, public testnet, hosted RPCs, explorers, or third-party production infrastructure.

Suggested fixes:

  • Wire goRoutinesThrottler.CanProcess() or a dedicated ingress throttler before the go func() spawn in directMessageHandler.
  • Or remove the goroutine and call ProcessReceivedMessage synchronously, matching the existing pubsubCallback path.

Disclosure note: I originally sent this report to [email protected] on 2026-05-13. Since SECURITY.md lists GitHub Private Vulnerability Reporting as the recommended channel, I am resubmitting it here.

CVSS v3
7.5
EG Score
7.5(low)
EPSS
16.0%
KEV
Not listed

Published

June 5, 2026

Last Modified

June 5, 2026

Vendor Advisories for CVE-2026-52879(1)

These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.

Affected Packages

(1 across 1 ecosystem)
Go(1)
PackageVulnerable rangeFixed inDependents
github.com/klever-io/klever-go1.7.18

Data Freshness Timeline

(refreshed 9× in last 7d / 49× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

  1. 2026-07-05 18:33 UTCEG score recompute
  2. 2026-07-04 20:35 UTCEG score recompute
  3. 2026-07-03 22:11 UTCEG score recompute
  4. 2026-07-03 09:45 UTCEG score recompute
  5. 2026-07-02 20:04 UTCEG score recompute
  6. 2026-07-02 07:45 UTCEG score recompute
  7. 2026-07-01 19:28 UTCEG score recompute
  8. 2026-07-01 07:10 UTCEG score recompute
  9. 2026-06-30 18:10 UTCEG score recompute
  10. 2026-06-30 03:13 UTCEG score recompute
  11. 2026-06-29 14:54 UTCEG score recompute
  12. 2026-06-29 02:36 UTCEG score recompute
  13. 2026-06-28 14:15 UTCEG score recompute
  14. 2026-06-28 01:56 UTCEG score recompute
  15. 2026-06-27 13:38 UTCEG score recompute
  16. 2026-06-27 01:20 UTCEG score recompute
  17. 2026-06-26 13:02 UTCEG score recompute
  18. 2026-06-25 22:19 UTCEG score recompute
  19. 2026-06-25 09:52 UTCEG score recompute
  20. 2026-06-24 21:33 UTCEG score recompute
  21. 2026-06-24 08:25 UTCEG score recompute
  22. 2026-06-23 17:31 UTCEG score recompute
  23. 2026-06-23 04:28 UTCEG score recompute
  24. 2026-06-22 14:35 UTCEG score recompute
  25. 2026-06-21 03:45 UTCEG score recompute
Show 24 more
  1. 2026-06-20 08:33 UTCEG score recompute
  2. 2026-06-19 15:07 UTCEG score recompute
  3. 2026-06-19 02:24 UTCEG score recompute
  4. 2026-06-18 14:06 UTCEG score recompute
  5. 2026-06-18 01:07 UTCEG score recompute
  6. 2026-06-17 12:26 UTCEG score recompute
  7. 2026-06-16 23:54 UTCEG score recompute
  8. 2026-06-16 11:35 UTCEG score recompute
  9. 2026-06-15 23:17 UTCEG score recompute
  10. 2026-06-15 11:00 UTCEG score recompute
  11. 2026-06-14 23:18 UTCEPSS rescore
  12. 2026-06-14 22:16 UTCEG score recompute
  13. 2026-06-14 09:59 UTCEG score recompute
  14. 2026-06-13 23:00 UTCEPSS rescore
  15. 2026-06-13 21:41 UTCEG score recompute
  16. 2026-06-13 09:23 UTCEG score recompute
  17. 2026-06-12 23:12 UTCEPSS rescore
  18. 2026-06-12 21:05 UTCEG score recompute
  19. 2026-06-12 08:47 UTCEG score recompute
  20. 2026-06-11 20:29 UTCEG score recompute
  21. 2026-06-11 08:12 UTCEG score recompute
  22. 2026-06-10 19:55 UTCEG score recompute
  23. 2026-06-10 07:37 UTCEG score recompute
  24. 2026-06-09 19:19 UTCEG score recompute

Frequently asked(5)

What is CVE-2026-52879?
CVE-2026-52879 is a high vulnerability published on June 5, 2026. klever-go: Unbounded goroutine spawn on direct-message ingress enables peer-driven DoS Summary networkMessenger.directMessageHandler in network/p2p/libp2p/netMessenger.go spawns a fresh goroutine for every incoming direct message before the antiflood layer makes an admission decision. There is no…
When was CVE-2026-52879 disclosed?
CVE-2026-52879 was first published in the National Vulnerability Database on June 5, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2026-52879 actively exploited?
CVE-2026-52879 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 16.0% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
What is the CVSS score of CVE-2026-52879?
CVE-2026-52879 has a CVSS v4.0 base score of 7.5 (CNA self-assessment; NVD's own analysis pending). The EG score is currently aggregating — additional source signals are being incorporated as they become available..
How do I remediate CVE-2026-52879?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-52879, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-52879

Explore →

Is Your Infrastructure Affected by CVE-2026-52879?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.