phpWhois arbitrary code execution via a crafted whois record
The advisory, in context
phpWhois allows remote attackers to execute arbitrary code via a crafted whois record.
Affected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
Earlier releases before 5.1.0
Fixed in 5.1.0
6 explicitly affected versions
4.2.3, 4.2.4, v4.2.5, v5.0, v5.0.1, v5.0.2
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "5.1.0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.2.3",
"4.2.4",
"v4.2.5",
"v5.0",
"v5.0.1",
"v5.0.2"
]
}Earlier releases through 4.2.5 (inclusive)
No fix recorded for this interval.
3 explicitly affected versions
4.2.3, 4.2.4, v4.2.5
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "4.2.5"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.2.3",
"4.2.4",
"v4.2.5"
]
}Earlier releases through 4.2.5 (inclusive)
No fix recorded for this interval.
3 explicitly affected versions
4.2.3, 4.2.4, v4.2.5
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "4.2.5"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.2.3",
"4.2.4",
"v4.2.5"
]
}Earlier releases through 4.3.1 (inclusive)
No fix recorded for this interval.
5 explicitly affected versions
4.2.3, 4.2.4, 4.3.0, 4.3.1, v4.2.5
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "4.3.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.2.3",
"4.2.4",
"4.3.0",
"4.3.1",
"v4.2.5"
]
}Earlier releases through 4.3.0 (inclusive)
No fix recorded for this interval.
5 explicitly affected versions
4.2.3, 4.2.4, v4.2.5, v4.2.6, v4.3.0
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "4.3.0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.2.3",
"4.2.4",
"v4.2.5",
"v4.2.6",
"v4.3.0"
]
}Earlier releases through 4.2.6 (inclusive)
No fix recorded for this interval.
4 explicitly affected versions
4.2.3, 4.2.4, v4.2.5, v4.2.6
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "4.2.6"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.2.3",
"4.2.4",
"v4.2.5",
"v4.2.6"
]
}Earlier releases through 4.2.6 (inclusive)
No fix recorded for this interval.
4 explicitly affected versions
4.2.3, 4.2.4, v4.2.5, v4.2.6
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "4.2.6"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.2.3",
"4.2.4",
"v4.2.5",
"v4.2.6"
]
}Earlier releases through 1.0.0 (inclusive)
No fix recorded for this interval.
1 explicitly affected versions
1.0.0
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "1.0.0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.0.0"
]
}Earlier releases through 4.3.1 (inclusive)
No fix recorded for this interval.
5 explicitly affected versions
4.2.3, 4.2.4, v4.2.5, v4.3.0, v4.3.1
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "4.3.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.2.3",
"4.2.4",
"v4.2.5",
"v4.3.0",
"v4.3.1"
]
}References
- https://nvd.nist.gov/vuln/detail/CVE-2015-5243
- https://github.com/jsmitty12/phpWhois/issues/19
- https://github.com/Gemorroj/phpwhois/commit/91c937e03c876ba1290b6de2a3ad953d2105fdd0
- https://github.com/sparc/phpWhois.org/commit/5cc572490c9053d46598ec9348a11e36a5a33a46#diff-f150ae17da7341bf6c2eff928684b3a3
- https://blog.nettitude.com/uk/cve-2015-5243-phpwhois-remote-code-execution
- https://github.com/FriendsOfPHP/security-advisories/blob/master/brightlocal/phpwhois/CVE-2015-5243.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/david-garcia/phpwhois/CVE-2015-5243.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/ivankristianto/phpwhois/CVE-2015-5243.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/kazist/phpwhois/CVE-2015-5243.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/phpwhois/phpwhois/CVE-2015-5243.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/serluck/phpwhois/CVE-2015-5243.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/simple-updates/phpwhois/CVE-2015-5243.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/truckersmp/phpwhois/CVE-2015-5243.yaml
- https://github.com/jsmitty12/phpWhois/blob/master/CHANGELOG.md
- https://github.com/sbaresearch/advisories/tree/public/2018/SBA-ADV-20180425-01_phpWhois_Code_Execution