CVE-2009-0367

Wesnoth 1.4.x and 1.5 < 1.5.11 - Remote Code Execution via Python AI Module Sandbox Escape

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2009-0367. PoCs published by Wesnoth.

AI-analyzed exploit summary This exploit leverages a design error in Wesnoth to execute arbitrary Python code via the `threading._sys.modules['os']` bypass. It spawns a command (e.g., opening Firefox) to demonstrate remote code execution.

Description

The Python AI module in Wesnoth 1.4.x and 1.5 before 1.5.11 allows remote attackers to escape the sandbox and execute arbitrary code by using a whitelisted module that imports an unsafe module, then using a hierarchical module name to access the unsafe module through the whitelisted module.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Wesnoth · pythonremotelinux
https://www.exploit-db.com/exploits/32837

This exploit leverages a design error in Wesnoth to execute arbitrary Python code via the `threading._sys.modules['os']` bypass. It spawns a command (e.g., opening Firefox) to demonstrate remote code execution.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: Wesnoth versions prior to 1.5.11
No auth needed
Prerequisites: Victim must run the malicious Wesnoth add-on or scenario containing this code
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (13)

Core 13
Core References
Various Sources x_refsource_confirm
http://launchpad.net/bugs/336396
Various Sources x_refsource_confirm
http://launchpad.net/bugs/cve/2009-0367
Various Sources x_refsource_confirm
http://launchpad.net/bugs/335089
Various Sources x_refsource_confirm
https://gna.org/bugs/index.php?13048
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/49058
Patch, Vendor Advisory x_refsource_confirm
http://www.wesnoth.org/forum/viewtopic.php?t=24340
Patch, Vendor Advisory x_refsource_confirm
http://www.wesnoth.org/forum/viewtopic.php?t=24247
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/34058
Patch, Vendor Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2009/0595
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/34236
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2009/dsa-1737

Scores

EPSS 0.1094
EPSS Percentile 95.3%

Details

CWE
CWE-264
Status published
Products (19)
wesnoth/wesnoth 1.4
wesnoth/wesnoth 1.4.1
wesnoth/wesnoth 1.4.2
wesnoth/wesnoth 1.4.3
wesnoth/wesnoth 1.4.4
wesnoth/wesnoth 1.4.5
wesnoth/wesnoth 1.4.6
wesnoth/wesnoth 1.4.7
wesnoth/wesnoth 1.5.0
wesnoth/wesnoth 1.5.1
... and 9 more
Published Mar 05, 2009
Tracked Since Feb 18, 2026