CVE-2015-5243:
phpWhois arbitrary code execution via a crafted whois record
9.8
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.92708%
CWE
Published
5/14/2022
Updated
4/23/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
jsmitty12/phpwhois | composer | < 5.1.0 | 5.1.0 |
phpwhois/phpwhois | composer | <= 4.2.5 | |
brightlocal/phpwhois | composer | <= 4.2.5 | |
david-garcia/phpwhois | composer | <= 4.3.1 | |
ivankristianto/phpwhois | composer | <= 4.3.0 | |
kazist/phpwhois | composer | <= 4.2.6 | |
serluck/phpwhois | composer | <= 4.2.6 | |
simple-updates/phpwhois | composer | <= 1.0.0 | |
truckersmp/phpwhois | composer | <= 4.3.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the use of eval() in parsing WHOIS data, as shown in the provided commit diffs (e.g., Gemorroj/phpwhois@91c937e and sparc/phpWhois.org@5cc5724). Both functions (generic_parser_b and generic_parser_a_blocks) dynamically constructed PHP code via eval() using untrusted WHOIS record input. The Nettitude blog and SBA Research advisory confirm this attack vector, where crafted WHOIS data could escape string literals and execute arbitrary code. The fixes replaced eval() with variable variables (e.g., ${'block...'}), directly addressing the code injection issue.