Skip to main content

Freeciv CVE-2026-90556

| EUVDEUVD-2026-76901 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-09-12 VulnCheck GHSA-2p7g-gcvc-7p6m
8.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Attacker crafts .sav file with worklist length > 64
  2. Delivery
    Distributes file via forum or direct share
  3. Exploit
    Victim loads file in Freeciv client or server
  4. Execution
    worklist_load() iterates past entries array bound
  5. Persist
    Adjacent heap memory overwritten with attacker data
  6. Impact
    Potential 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

freeciv 0 <3.2.6

Affected Packages

euvd freeciv fix: 3.2.6

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

Vendor (VulnCheck) PRIMARY 8.5 HIGH
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
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 7.8 HIGH

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
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

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

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

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Low
open-source strategy game with dedicated but niche community
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High

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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
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.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Package Hub 15 SP7 Fixed
SUSE Package Hub 15 SP7 Affected

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