CVE-2009-0367 Code injection in n/a

Critical 9.3 Published Updated

Remote attackers can execute arbitrary code in Wesnoth by exploiting a sandbox escape in the Python AI module via unsafe module imports.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2009-0367?

CVE-2009-0367 is a critical code injection vulnerability in n/a, published on 5 Mar 2009. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-264

Which versions are affected by CVE-2009-0367?

It affects 1 product.

Products include Wesnoth Wesnoth.

How do I fix CVE-2009-0367?

Upgrade to a fixed version.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2009-0367 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2009-0367 exists.

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as GHSA-hmxr-rwh4-hh58.

Is CVE-2009-0367 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free