Description
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.
Severity (CVSS)
| Base score | 8.5 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | 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 |
| Provided by | CNA |
Weaknesses
- CWE-122 — Heap-based Buffer Overflow
Affected products
| Vendor | Product | Versions |
|---|---|---|
| freeciv | freeciv | 0 to <3.2.6 |
References
- https://github.com/freeciv/freeciv/commit/75ecde3e86ddf2fe775768450e9a290a4f4d4387 (patch)
- https://github.com/freeciv/freeciv (product)
- https://redmine.freeciv.org/issues/2161 (issue-tracking)
- https://github.com/freeciv/freeciv/blob/R3_2_5/server/savegame/savegame3.c#L964 (technical-description)
- https://github.com/freeciv/freeciv/releases/tag/R3_2_6 (release-notes)
- https://github.com/freeciv/freeciv/blob/R3_2_5/server/savegame/savegame2.c#L788 (technical-description)
- https://www.vulncheck.com/advisories/freeciv-before-3.2.6-heap-buffer-overflow-via-worklist-load (third-party-advisory)
Generated from the official CVE List on 13 Sep 2026 07:02 UTC.