Freeciv versions 3.1.0 through 3.2.5 contain an out-of-bounds read vulnerability in sg_load_player_unit() when processing savegame files with invalid unit activity indices. An attacker can craft a malicious savegame file with an out-of-range activity index that bypasses bounds checking and causes a crash or limited heap memory exposure when loaded.
https://www.vulncheck.com/advisories/freeciv-3.1.0-through-3.2.5-out-of-bounds-read-via-savegame
https://redmine.freeciv.org/issues/2162
https://github.com/freeciv/freeciv/releases/tag/R3_2_6
https://github.com/freeciv/freeciv/commit/ef0c76c2765fe383140eb1a70dbea1228844152e
https://github.com/freeciv/freeciv/blob/R3_2_5/server/savegame/savegame3.c#L6108
https://github.com/freeciv/freeciv/blob/R3_2_5/server/savegame/savegame2.c#L4282
Published: 2026-09-12
Updated: 2026-09-12
Base Score: 5.6
Vector: CVSS2#AV:L/AC:L/Au:N/C:P/I:N/A:C
Severity: Medium
Base Score: 6.1
Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
Severity: Medium
Base Score: 6.9
Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
Severity: Medium