CVE-2015-5243: Jsmitty12/phpwhois PhpWhois Arbitrary Code Execution Vulnerability
CRITICALCVE-2015-5243 is a CRITICAL (CVSS 9.8) phpwhois arbitrary code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Jsmitty12/phpwhois libraries in the Packagist ecosystem. The issue involves phpwhois arbitrary code execution via a crafted whois record. Remediation is available by upgrading affected packages to version 5.1.0.
CVE-2015-5243 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2015-5243
To remediate this vulnerability, upgrade all affected Jsmitty12/phpwhois dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade jsmitty12/phpwhois to 5.1.0
Upgrade phpwhois/phpwhois to Latest secure release
Upgrade brightlocal/phpwhois to Latest secure release
Upgrade david-garcia/phpwhois to Latest secure release
Upgrade ivankristianto/phpwhois to Latest secure release
Upgrade kazist/phpwhois to Latest secure release
Upgrade serluck/phpwhois to Latest secure release
Upgrade simple-updates/phpwhois to Latest secure release
Upgrade truckersmp/phpwhois to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for jsmitty12/phpwhois
How to Check if You Are Affected
To determine whether your application is affected by CVE-2015-5243, inspect your project dependencies for Jsmitty12/phpwhois:
inspect dependencies for jsmitty12/phpwhois
Analyze the terminal output to locate any version of Jsmitty12/phpwhois in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.1.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Jsmitty12/phpwhois, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2015-5243 Affected Jsmitty12/phpwhois Versions
9 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
jsmitty12/phpwhois
|
Packagist |
< 5.1.0
|
5.1.0
|
|
phpwhois/phpwhois
|
Packagist |
≤ 4.2.5
|
|
|
brightlocal/phpwhois
|
Packagist |
≤ 4.2.5
|
|
|
david-garcia/phpwhois
|
Packagist |
≤ 4.3.1
|
|
|
ivankristianto/phpwhois
|
Packagist |
≤ 4.3.0
|
|
|
kazist/phpwhois
|
Packagist |
≤ 4.2.6
|
|
|
serluck/phpwhois
|
Packagist |
≤ 4.2.6
|
|
|
simple-updates/phpwhois
|
Packagist |
≤ 1.0.0
|
|
|
truckersmp/phpwhois
|
Packagist |
≤ 4.3.1
|
|
References
Frequently Asked Questions
What is CVE-2015-5243?
Which Jsmitty12/phpwhois versions are affected?
What version fixes CVE-2015-5243?
Is jsmitty12/phpwhois affected?
Is phpwhois/phpwhois affected?
What is the CVSS score of CVE-2015-5243?
What CWE is associated with CVE-2015-5243?
How can I check Packagist dependencies for CVE-2015-5243?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c95f-27gx-6vq9",
"modified" : "2024-04-23T22:40:23Z",
"published" : "2022-05-14T00:57:40Z",
"aliases" : [ "CVE-2015-5243" ],
"summary" : "phpWhois arbitrary code execution via a crafted whois record",
"details" : "phpWhois allows remote attackers to execute arbitrary code via a crafted whois record.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "jsmitty12/phpwhois"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.1.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "phpwhois/phpwhois"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "4.2.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "brightlocal/phpwhois"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "4.2.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "david-garcia/phpwhois"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "4.3.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "ivankristianto/phpwhois"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "4.3.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "kazist/phpwhois"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "4.2.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "serluck/phpwhois"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "4.2.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "simple-updates/phpwhois"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.0.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "truckersmp/phpwhois"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "4.3.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-5243"
}, {
"type" : "WEB",
"url" : "https://github.com/jsmitty12/phpWhois/issues/19"
}, {
"type" : "WEB",
"url" : "https://github.com/Gemorroj/phpwhois/commit/91c937e03c876ba1290b6de2a3ad953d2105fdd0"
}, {
"type" : "WEB",
"url" : "https://github.com/sparc/phpWhois.org/commit/5cc572490c9053d46598ec9348a11e36a5a33a46#diff-f150ae17da7341bf6c2eff928684b3a3"
}, {
"type" : "WEB",
"url" : "https://blog.nettitude.com/uk/cve-2015-5243-phpwhois-remote-code-execution"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/brightlocal/phpwhois/CVE-2015-5243.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/david-garcia/phpwhois/CVE-2015-5243.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/ivankristianto/phpwhois/CVE-2015-5243.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/kazist/phpwhois/CVE-2015-5243.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/phpwhois/phpwhois/CVE-2015-5243.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/serluck/phpwhois/CVE-2015-5243.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/simple-updates/phpwhois/CVE-2015-5243.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/truckersmp/phpwhois/CVE-2015-5243.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/jsmitty12/phpWhois/blob/master/CHANGELOG.md"
}, {
"type" : "WEB",
"url" : "https://github.com/sbaresearch/advisories/tree/public/2018/SBA-ADV-20180425-01_phpWhois_Code_Execution"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-23T22:40:23Z",
"nvd_published_at" : "2018-08-20T21:29:00Z"
}
}