Summary
BZFlag bzfs before version 2.4.32 contains a heap out-of-bounds write that a remote, unauthenticated attacker can trigger with a TCP message. The CVSS 4.0 score is 9.3 and the severity is critical.
What happened
The vulnerability (CVE-2026-130849, CWE-122) is in the NetHandler::tcpReceive() function of the bzfs server. A remote unauthenticated attacker can corrupt heap memory by sending a TCP message with a body length of exactly 1024. According to the description, the attacker can overwrite the tcplen receive offset with a negative value and write controlled bytes before the buffer. This can crash the server or allow commands to be executed as the bzfs user.
Why it matters
Exploitation is remote and requires no authentication or user interaction, and it can affect the confidentiality, integrity and availability of the server. The CVSS 4.0 score is 9.3 (vector 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), assigned by VulnCheck as CNA. According to CISA's KEV catalog, no active exploitation is recorded, and the source does not indicate evidence that this was a zero-day.
Affected products and versions
bzflag (BZFlag-Dev): versions before 2.4.32 (< 2.4.32).
| Product | Versions | Fixed in |
|---|---|---|
| BZFlag-Dev bzflag | < 2.4.32 | — |
Action recommended by the source
The source links to BZFlag version 2.4.32, with its release notes, and to a patch commit. The source does not detail other mitigations. References: https://github.com/BZFlag-Dev/bzflag/releases/tag/v2.4.32 and https://github.com/BZFlag-Dev/bzflag/commit/8e501d685aef549090b363260979a4eb93484ea1. Third-party advisory: https://www.vulncheck.com/advisories/bzflag-bzfs-before-2.4.32-heap-out-of-bounds-write-via-nethandler-tcpreceive
Sources and references
- https://github.com/BZFlag-Dev/bzflag/commit/8e501d685aef549090b363260979a4eb93484ea1 — CVE Program
- https://github.com/BZFlag-Dev/bzflag/releases/tag/v2.4.32 — CVE Program
- https://github.com/BZFlag-Dev/bzflag/blob/v2.4.30/src/game/NetHandler.cxx#L575-L640 — CVE Program
- https://www.vulncheck.com/advisories/bzflag-bzfs-before-2.4.32-heap-out-of-bounds-write-via-nethandler-tcpreceive — CVE Program
Weaknesses (CWE): CWE-122
Relevant change history
Published
Advisory published.