# phpWhois arbitrary code execution via a crafted whois record

Advisory record · `GHSA-c95f-27gx-6vq9`

- **Identifiers:** `GHSA-c95f-27gx-6vq9` · `CVE-2015-5243` · `PKSA-3z5q-1hmv-j5x4` · `PKSA-466v-tdsn-6x18` · `PKSA-4vrc-7kz1-j252` · `PKSA-6zgf-37b5-tvb6` · `PKSA-g67r-x23r-cp89` · `PKSA-k196-4srh-58d8` · `PKSA-mqb1-ydmn-7dh8` · `PKSA-p6bj-3zxp-53pq` · `PKSA-vdsn-g3s9-wmwc` · `PKSA-wpwn-b9wt-r2vm`
- **State:** Confirmed
- **Severity:** CVSS 9.8 Critical
- **Critical:** Yes: CVSS 9+
- **Weakness (CWE):** [CWE-94](https://cwe.mitre.org/data/definitions/94.html)
- **Tags:** [Code injection](https://agentprime.io/advisories/tag/code-injection.md)
- **Published:** 14 May 2022
- **Updated:** 23 Apr 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 14 May 2022, 00:57 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 9.8: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `jsmitty12/phpwhois` (Packagist): affected `<5.1.0`; fixed in `5.1.0`
- `phpwhois/phpwhois` (Packagist): affected `<=4.2.5`; no fixed version yet
- `brightlocal/phpwhois` (Packagist): affected `<=4.2.5`; no fixed version yet
- `david-garcia/phpwhois` (Packagist): affected `<=4.3.1`; no fixed version yet
- `ivankristianto/phpwhois` (Packagist): affected `<=4.3.0`; no fixed version yet
- `kazist/phpwhois` (Packagist): affected `<=4.2.6`; no fixed version yet
- `serluck/phpwhois` (Packagist): affected `<=4.2.6`; no fixed version yet
- `simple-updates/phpwhois` (Packagist): affected `<=1.0.0`; no fixed version yet
- `truckersmp/phpwhois` (Packagist): affected `<=4.3.1`; no fixed version yet

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 9.8 Critical, CVSS 3.0: `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.062, the 93rd percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:30 UTC: First seen by agentprime
- 31 Oct 2026, 14:30 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-c95f-27gx-6vq9)

## Sources

- [GitHub Advisory Database: GHSA-c95f-27gx-6vq9](https://github.com/advisories/GHSA-c95f-27gx-6vq9)
- [OSV: GHSA-c95f-27gx-6vq9](https://osv.dev/vulnerability/GHSA-c95f-27gx-6vq9)
- <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>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-c95f-27gx-6vq9>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-c95f-27gx-6vq9/>. Everything for agents: <https://agentprime.io/llms.txt>.
