Skip to main content

BZFlag bzfs EUVDEUVD-2026-127253

| CVE-2026-130849 CRITICAL
Heap-based Buffer Overflow (CWE-122)
2026-11-17 VulnCheck GHSA-9q5f-g948-c95m
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Connect to exposed bzfs TCP port
  2. Delivery
    Send TCP message with 1024-byte body
  3. Exploit
    Trigger heap out-of-bounds write corrupting tcplen offset
  4. Execution
    Write controlled bytes before buffer
  5. Impact
    Crash server or execute commands as bzfs user

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires only network reachability to a running bzfs server (the game server daemon) on versions before 2.4.32; the attacker sends a TCP message whose body length is exactly 1024 bytes, which the pre-patch NetHandler::tcpReceive()/receive() code fails to bound-check against MaxPacketLen-4. No authentication, no user interaction, and no non-default configuration are needed - any internet- or network-exposed vulnerable bzfs instance is reachable. The main limiting factors are that a bzfs server must actually be deployed and reachable, and that reliable command execution (as opposed to a crash) depends on exploit development that is not demonstrated in the available sources; patching to 2.4.32 is the vendor's stated fix.

Impact

Multiple signals align on genuine severity but not confirmed active exploitation. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) describes a remote, low-complexity, unauthenticated flaw requiring no user interaction, scoring 9.3, and the vuln.today decision label is act_now - all consistent with a serious, easily-reachable network bug. The source-code diff confirms the mechanism: a missing bound check let a declared length exceeding MaxPacketLen-4 drive receive() to write past tcpmsg into the tcplen offset, which could then become negative and redirect a subsequent recv() to write controlled bytes before the buffer (CWE-122). However, several escalation signals are absent from the input: no EPSS probability is provided, there is no CISA KEV listing, and no public exploit code is referenced - so the 'execute commands as the bzfs user' outcome is a described potential, not a demonstrated capability. The practical tempering factor is deployment footprint: bzfs is the server for an open-source hobby game, so the population of internet-exposed, unpatched targets is small relative to the CVSS score. Net: treat as high-priority patching for anyone actually running bzfs (per the act_now label), but recognize this is a high-severity flaw in a low-prevalence product rather than evidence of widespread opportunistic attack. Verify against vendor advisory and any later EPSS/KEV updates.

Exploit ScenarioDerived

An attacker who can reach a bzfs server's TCP listening port connects and sends a single crafted TCP message with a body length of exactly 1024 bytes, triggering a heap out-of-bounds write in NetHandler::tcpReceive(). This corrupts the tcplen receive offset to a negative value so controlled bytes are written before the buffer, crashing the server or, per the advisory, potentially executing commands as the bzfs user. No public exploit code is referenced in the sources, so weaponization beyond the described crash/RCE potential is unconfirmed.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 18, 2026

Heap out-of-bounds write in the BZFlag game server daemon bzfs before 2.4.32 allows remote unauthenticated attackers to corrupt server heap memory by sending a TCP message whose body length is exactly 1024 bytes. The oversized body overwrites the tcplen receive offset with a negative value, and the subsequent receive path uses that corrupted offset as the destination for recv(), writing attacker-controlled bytes in front of the buffer - resulting in a server crash and, per the advisory, potential execution of commands as the bzfs user. Exploitation is assessed as unauthenticated and requires only network reachability to an exposed bzfs instance; no public exploit code was identified at the time of analysis, and reliable command execution beyond denial of service depends on exploit development not demonstrated in the available sources. The vulnerability is rated 9.3 (CVSS 4.0 and assessed CVSS 3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) and carries an act_now priority label.

RemediationAI

Vendor-released patch: 2.4.32. Upgrade any bzfs game server running a build older than 2.4.32 to the v2.4.32 release (https://github.com/BZFlag-Dev/bzflag/releases/tag/v2.4.32), which contains commit 8e501d685aef549090b363260979a4eb93484ea1 - adding the corrected len > MaxPacketLen - 4 payload bound and rejecting negative or oversized tcplen offsets in NetHandler::receive(). This is the vendor's stated complete fix, and given the act_now priority label, exposed servers should be updated ahead of routine maintenance; the supplied references do not document an alternative workaround or configuration-only mitigation. Until an instance is patched, the exposure is limited only by whether the bzfs listener is network-reachable, so restricting which networks can reach the server's TCP port reduces the attack surface at the cost of narrowing who can connect to the game. No public exploit code was identified at the time of analysis, and the VulnCheck advisory (https://www.vulncheck.com/advisories/bzflag-bzfs-before-2.4.32-heap-out-of-bounds-write-via-nethandler-tcpreceive) should be consulted for any later updates.

Affected VersionsENISA

bzflag 0 <2.4.32

Affected Packages

euvd bzflag fix: 2.4.32

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

BZFlag's networking layer is implemented in src/game/NetHandler.cxx, where NetHandler::tcpReceive() reads a length-prefixed TCP message into a fixed buffer (tcpmsg) that holds both the 4-byte header and the message body. The pre-patch code validated the incoming length with if (len > MaxPacketLen), comparing against the full buffer size rather than the usable payload size, so a body of exactly 1024 bytes passed the check and wrote past the payload region into adjacent members - specifically the tcplen receive offset. NetHandler::receive() then treated tcplen as a read offset into tcpmsg and used it as the destination offset for a subsequent recv(), meaning a negative offset caused writes to land before the start of the buffer. This is a classic CWE-122 heap-based buffer overflow arising from an off-by-header-length bounds check combined with missing validation of a mutable offset variable. The fix (commit 8e501d685aef549090b363260979a4eb93484ea1) tightens the length check to len > MaxPacketLen - 4 and adds a guard rejecting any call where tcplen is negative, exceeds sizeof(tcpmsg), or where the requested length exceeds the buffer, explicitly noting that tcplen > length is legitimate and handled by the ReadAll path. The CPE cpe:2.3:a:bzflag-dev:bzflag:*:*:*:*:*:*:*:* applies to the bzflag-dev codebase generally, with bzfs as the exposed network-facing component.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 9.3 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 9.8 CRITICAL

Remote unauthenticated TCP message with no user interaction and low complexity (fixed 1024-byte trigger) yields AV:N/AC:L/PR:N/UI:N; heap-write RCE-as-service-user potential gives full C/I/A impact, scope unchanged.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

BZFlag bzfs before 2.4.32 contains a heap out-of-bounds write vulnerability in NetHandler::tcpReceive() that allows remote unauthenticated attackers to corrupt heap memory by sending a TCP message with a body length of exactly 1024. Attackers can overwrite the tcplen receive offset with a negative value to write controlled bytes before the buffer, crashing the server or executing commands as the bzfs user.

Executive ViewAI

Why It Matters

CVE-2026-130849 is a critical heap out-of-bounds write in the BZFlag game server daemon (bzfs) before version 2.4.32. A remote, unauthenticated attacker can corrupt server memory, crash the service, and potentially execute commands as the bzfs user. Any organization hosting a publicly reachable bzfs instance faces immediate risk of service disruption and possible unauthorized command execution, which could lead to further network compromise.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.8%
Top 41% exploitable
Prevalence
Low
open-source hobby multiplayer game server, limited production/enterprise footprint
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy