CVE-2015-5243 phpWhois arbitrary code execution via a crafted whois record

Critical 9.8 Published Updated

Remote attackers can execute arbitrary code in phpWhois by submitting a crafted whois record, requiring library upgrades.

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

What is CVE-2015-5243?

CVE-2015-5243 is a critical code injection vulnerability in n/a, published on 20 Aug 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

phpWhois allows remote attackers to execute arbitrary code via a crafted whois record.

Weakness: CWE-94

Which versions are affected by CVE-2015-5243?

18 open source packages ship an affected version, including brightlocal/phpwhois, david-garcia/phpwhois and ivankristianto/phpwhois. It affects 1 product.

PackageAffectedFixed in
brightlocal/phpwhois PackagistAll versions to 4.2.5None
brightlocal/phpwhois PackagistAll versions to 4.2.5None
david-garcia/phpwhois PackagistAll versions to 4.3.1None
david-garcia/phpwhois PackagistAll versions to 4.3.1None
ivankristianto/phpwhois PackagistAll versions to 4.3.0None
ivankristianto/phpwhois PackagistAll versions to 4.3.0None
12 more packages
jsmitty12/phpwhois PackagistAll versions5.1.0
jsmitty12/phpwhois PackagistAll versions5.1.0
kazist/phpwhois PackagistAll versions to 4.2.6None
kazist/phpwhois PackagistAll versions to 4.2.6None
phpwhois/phpwhois PackagistAll versions to 4.2.5None
phpwhois/phpwhois PackagistAll versions to 4.2.5None
serluck/phpwhois PackagistAll versions to 4.2.6None
serluck/phpwhois PackagistAll versions to 4.2.6None
simple-updates/phpwhois PackagistAll versions to 1.0.0None
simple-updates/phpwhois PackagistAll versions to 1.0.0None
truckersmp/phpwhois PackagistAll versions to 4.3.1None
truckersmp/phpwhois PackagistAll versions to 4.3.1None

Products include Phpwhois Project Phpwhois.

How do I fix CVE-2015-5243?

Upgrade to a fixed version.

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

Is CVE-2015-5243 being exploited?

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

Sources

Also known as GHSA-c95f-27gx-6vq9.

Is CVE-2015-5243 in your software?

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

Check your SBOMs for free