# CVE-2022-4774: Bit Form < 1.9 - RCE via Unauthenticated Arbitrary File Upload

> Unauthenticated attackers can upload arbitrary files, including PHP, to achieve remote code execution on WordPress sites using the Bit Form plugin.

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/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:** 15 May 2023
- **Updated:** 24 Jan 2025
- **Also known as:** GHSA-5267-x3g9-g6x7

## What is CVE-2022-4774?

CVE-2022-4774 is a critical vulnerability in Unknown Bit Form, published on 15 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

The Bit Form WordPress plugin before 1.9 does not validate the file types uploaded via it's file upload form field, allowing unauthenticated users to upload arbitrary files types such as PHP or HTML files to the server, leading to Remote Code Execution.

## Which versions are affected by CVE-2022-4774?

It affects 1 product.


Products: Bitapps Bit Form.

## How do I fix CVE-2022-4774?

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

## Is CVE-2022-4774 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-4774 exists.

## Other vulnerabilities in Unknown Bit Form

- [CVE-2024-43249](https://insights.sbomify.com/CVE-2024-43249/): WordPress Bit Form Pro plugin <= 2.6.4 - Authenticated Arbitrary File Upload vulnerability (critical 9.9)
- [CVE-2024-43248](https://insights.sbomify.com/CVE-2024-43248/): WordPress Bit Form Pro plugin <= 2.6.4 - Unauthenticated Arbitrary File Deletion vulnerability (high 8.6)
- [CVE-2024-43250](https://insights.sbomify.com/CVE-2024-43250/): WordPress Bit Form Pro plugin <= 2.6.4 - Authenticated Plugin Settings Change vulnerability (high 7.1)
- [CVE-2024-43251](https://insights.sbomify.com/CVE-2024-43251/): WordPress Bit Form Pro plugin <= 2.6.4 - Authenticated Sensitive Data Exposure vulnerability (medium 6.5)
- [CVE-2024-13451](https://insights.sbomify.com/CVE-2024-13451/): Contact Form by Bit Form <= 2.17.5 - Unauthenticated Sensitive Information Exposure (medium 5.3)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2022-4774 and fix it if it is affected.

What it is: CVE-2022-4774 is a critical vulnerability in Unknown Bit Form, published on 15 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-4774 exists.

Affected product: Unknown Bit Form. 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-2022-4774/ (Markdown: https://insights.sbomify.com/CVE-2022-4774/index.md)
```

## Sources

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

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