Description
The multiplayer engine in Wesnoth 1.2.x before 1.2.7 and 1.3.x before 1.3.9 allows remote servers to cause a denial of service (crash) via a long message with multibyte characters that can produce an invalid UTF-8 string after it is truncated, which triggers an uncaught exception, involving the truncate_message function in server/server.cpp. NOTE: this issue affects both clients and servers.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 4.0 | wesnoth | 1.2-2 | DSA-1386-1 |
| Debian 3.1 | wesnoth | 0.9.0-6 | DSA-1386-1 |
Advisories 1
- DSA-1386-1 wesnoth Debian Security (DSA / DLA) · Mar 9, 2026
References
- http://www.wesnoth.org/forum/viewtopic.php?p=256618
- https://bugzilla.redhat.com/show_bug.cgi?id=324841
- http://www.wesnoth.org/forum/viewtopic.php?t=18188
- 41711 vdb-entry
- 25995 vdb-entry
- http://svn.gna.org/viewcvs/wesnoth/tags/1.2.7/changelog?rev=20982&view=download
- 27218 third-party-advisory
- FEDORA-2007-2496 vendor-advisory
- wesnoth-utf8-dos(37047) vdb-entry
- 27241 third-party-advisory
- DSA-1386 vendor-advisory
- ADV-2007-3449 vdb-entry
- 27137 third-party-advisory