CVE-2016-10131 CodeIgniter arbitrary code execution

Critical 9.8 Published Updated

Remote attackers can execute arbitrary code by injecting sendmail arguments via the email from field in CodeIgniter.

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

What is CVE-2016-10131?

CVE-2016-10131 is a critical command injection vulnerability in n/a, published on 12 Jan 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

system/libraries/Email.php in CodeIgniter before 3.1.3 allows remote attackers to execute arbitrary code by leveraging control over the email->from field to insert sendmail command-line arguments.

Weakness: CWE-74

Which versions are affected by CVE-2016-10131?

2 open source packages ship an affected version, including bcit-ci/codeigniter. It affects 1 product.

PackageAffectedFixed in
bcit-ci/codeigniter PackagistAll versions3.1.3
bcit-ci/codeigniter PackagistAll versions3.1.3

Products include Codeigniter Codeigniter.

How do I fix CVE-2016-10131?

Upgrade bcit-ci/codeigniter to 3.1.3 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2016-10131 being exploited?

There is no known exploitation of CVE-2016-10131 in the wild and no public exploit code.

Sources

Also known as GHSA-2pcj-76hj-xqhm.

Is CVE-2016-10131 in your software?

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

Check your SBOMs for free