Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts .sav file with worklist length > 64
-
DeliveryDistributes file via forum or direct share
-
ExploitVictim loads file in Freeciv client or server
-
Executionworklist_load() iterates past entries array bound
-
PersistAdjacent heap memory overwritten with attacker data
-
ImpactPotential arbitrary code execution in game process
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 | The victim must explicitly load a crafted savegame file - either through the Freeciv client's single-player load dialog or via a multiplayer game server that processes an externally supplied savegame. This requires passive user interaction (UI:P in CVSS 4.0). Both savegame format v2 and v3 files can trigger the flaw; the format is auto-detected, so the attacker need only target whichever format the server accepts. No special build configuration, compile-time flag, or non-default feature needs to be enabled - the save/load subsystem is always present. Exploitation is strictly limited to Freeciv versions before 3.2.6. The primary limiting factor is the requirement for a user or operator to willingly open a file from an untrusted source; network-reachable attack without user action is not supported by the CVSS 4.0 AV:L vector. |
| Impact | The CVSS 4.0 score of 8.5 (AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H) is consistent with a file-parsing heap overflow: local access and passive user interaction are required, but if those conditions are met, full C/I/A compromise of the vulnerable system is plausible. The absence of KEV status and public exploit code lowers urgency somewhat, but even a casual multiplayer server community in sopot faces real risk given that the vulnerability requires only a single malicious savegame file to be loaded - a realistic social-engineering vector in gaming communities where savegame sharing is routine. No EPSS score was provided, and there is no indication of active exploitation; however, the patch commit is public and the bounds-check fix clearly documents the missing validation, which provides a blueprint for exploit development. The SC:N/SI:N/SA:N metrics indicate no lateral scope change, bounding the blast radius to the process loading the file. Overall, this is a genuine priority for any Freeciv deployment, particularly multiplayer servers that accept external savegames. |
| Exploit ScenarioDerived | An attacker crafts a Freeciv savegame file in which the worklist length field is set to a value well above 64 - for example, 256 - and populates the extra entries with controlled bytes. The file is shared via a gaming forum, a multiplayer lobby, or directly with a server operator. When loaded by a Freeciv client or game server, worklist_load() iterates 256 times over a 64-slot array, overwriting adjacent heap memory that may contain struct pointers or vtable-equivalent function references, potentially redirecting execution to attacker-controlled code. No public proof-of-concept exploit has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 12, 2026
Heap buffer overflow in Freeciv's worklist_load() function allows memory corruption when a crafted savegame file declares a worklist length exceeding the fixed MAX_LEN_WORKLIST bound of 64 entries. Both savegame format v2 (savegame2.c) and v3 (savegame3.c) code paths are vulnerable in all releases before 3.2.6, meaning any user or server operator who loads a malicious .sav file may have heap-adjacent struct fields overwritten, potentially enabling arbitrary code execution. No public exploit has been identified at time of analysis, but the patch diff is publicly available on GitHub, lowering the bar for future weaponization.
RemediationAI
Upgrade to Freeciv 3.2.6, available at https://github.com/freeciv/freeciv/releases/tag/R3_2_6. The fix (commit 75ecde3e86ddf2fe775768450e9a290a4f4d4387) adds explicit bounds validation in both worklist_load() implementations, clamping pwl->length to MAX_LEN_WORKLIST before the loop executes, and adds a secondary check on wlist_max_length in sg_load_player_cities(). For operators unable to patch immediately, the most effective compensating control is to restrict savegame loading to internally generated files only - disable or procedurally block loading of savegames received from untrusted external sources. This does not eliminate the vulnerability but removes the primary delivery vector. No other configuration knob is documented that disables worklist parsing selectively. The VulnCheck advisory at https://www.vulncheck.com/advisories/freeciv-before-3.2.6-heap-buffer-overflow-via-worklist-load provides additional context.
Affected VersionsENISA
Affected Packages
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
Freeciv is a long-running open-source turn-based strategy game written in C. City production queues are modelled as worklists - fixed-size arrays of up to MAX_LEN_WORKLIST (64) elements stored in a heap-allocated struct. The vulnerable function worklist_load() in both server/savegame/savegame2.c (line 788) and server/savegame/savegame3.c (line 964) reads the declared worklist length from the savegame file and then iterates to fill the pwl->entries array without first validating that the length is within bounds. CWE-122 (Heap-based Buffer Overflow) is the root cause: a declared length greater than 64 causes the loop to write past the end of the fixed entries array, overwriting adjacent heap memory, which may include function pointers or other security-sensitive struct fields. The CPE cpe:2.3:a:freeciv:freeciv:*:*:*:*:*:*:*:* confirms all versions are affected until patched.
Know when Freeciv gets its next vulnerability
- 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
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
File must be explicitly loaded (AV:L, UI:R); no attacker privileges required to craft the malicious savegame; full heap corruption enables C/I/A:H with no scope change.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Freeciv versions before 3.2.6 contain a heap buffer overflow in worklist_load() when processing savegame files with declared worklist lengths exceeding the fixed array bound of 64 elements. Attackers can craft malicious savegame files that write past the entries array into adjacent heap-allocated struct fields, potentially corrupting memory when a user or server operator loads the file.
Executive ViewAI
Freeciv versions before 3.2.6 contain a memory corruption vulnerability in the savegame loading function that enables attackers to craft malicious .sav files to corrupt heap memory and potentially execute code on affected systems. Any administrator or player who exchanges savegame files in multiplayer environments or accepts files from untrusted sources faces risk of system compromise.
Apply vendor patch (update to Freeciv 3.2.6 or later). Until patched, disable multiplayer features involving external .sav file uploads and restrict savegame loading to files generated from trusted internal sources only.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
Freeciv before 2.6.7 and before 3.0.3 is prone to a buffer overflow vulnerability in the Modpack Installer utility's han
Out-of-bounds read in Freeciv 3.1.0-3.2.5 allows a crash or limited heap memory exposure when a user loads a maliciously
Same weakness CWE-122 – Heap-based Buffer Overflow
View allSame technique Buffer Overflow
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Package Hub 15 SP7 | Fixed |
| SUSE Package Hub 15 SP7 | Affected |
EUVD-2026-76901
GHSA-2p7g-gcvc-7p6m
NVD
CVE.org
EPSS
VulDB
Exploit-DB