# CVE-2015-8351: Code injection in n/a

> Authenticated attackers can execute arbitrary PHP code via remote file inclusion in the Gwolle Guestbook plugin, requiring allow_url_include to be enabled.

- **Severity:** Critical 9.0 (`CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 11 Sep 2017
- **Updated:** 6 Aug 2024
- **Also known as:** GHSA-59v2-j7v3-6gmx

## What is CVE-2015-8351?

CVE-2015-8351 is a critical code injection vulnerability in n/a, published on 11 Sep 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

PHP remote file inclusion vulnerability in the Gwolle Guestbook plugin before 1.5.4 for WordPress, when allow_url_include is enabled, allows remote authenticated users to execute arbitrary PHP code via a URL in the abspath parameter to frontend/captcha/ajaxresponse.php.  NOTE: this can also be leveraged to include and execute arbitrary local files via directory traversal sequences regardless of whether allow_url_include is enabled.

Weakness: CWE-94 (Improper Control of Generation of Code)

## Which versions are affected by CVE-2015-8351?

It affects 1 product.


Products: Gwolle Guestbook Project Gwolle Guestbook.

## How do I fix CVE-2015-8351?

No fix has been published for CVE-2015-8351 yet. Limit exposure of the affected software until one is available.

## Is CVE-2015-8351 being exploited?

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

Public exploit code:

- WordPress Plugin Gwolle Guestbook 1.5.3 - Remote File Inclusion (github_poc): https://github.com/G4sp4rCS/exploit-CVE-2015-8351
- this script is exploit for wordpress old plugin gwolle (github_poc): https://github.com/G01d3nW01f/CVE-2015-8351
- WordPress Plugin Gwolle Guestbook 1.5.3 - Remote File Inclusion (exploitdb)
- Exploit code for CVE-2015-8351 (github_poc): https://github.com/Philip-Otter/CVE-2015-8351_Otter_Remix

## Other vulnerabilities in n/a

- [CVE-2021-24980](https://insights.sbomify.com/CVE-2021-24980/): Gwolle Guestbook < 4.2.0 - Reflected Cross-Site Scripting (medium 6.1)
- [CVE-2018-17884](https://insights.sbomify.com/CVE-2018-17884/): Cross-site scripting in n/a (medium 6.1)
- [CVE-2017-20089](https://insights.sbomify.com/CVE-2017-20089/): Gwolle Guestbook Plugin cross site scriting (low 3.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2015-8351 and fix it if it is affected.

What it is: CVE-2015-8351 is a critical code injection vulnerability in n/a, published on 11 Sep 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2015-8351 in the wild and no public exploit code.

Affected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2015-8351/ (Markdown: https://insights.sbomify.com/CVE-2015-8351/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2015-8351
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2015-8351
- OSV: https://osv.dev/vulnerability/CVE-2015-8351

---
From sbomify Insights: https://insights.sbomify.com/CVE-2015-8351/
Summaries are generated and may contain mistakes; the official description above is the record.
