# CVE-2026-82901: Ultra Addons for Contact Form 7 <= 3.5.50 - Unauthenticated Arbitrary File Upload via Signature Form Field

The Markdown version of <https://upatch.dev/cve/CVE-2026-82901>. Last updated 25 Nov 2026.

## At a glance

CVE-2026-82901 is rated Critical 9.8 (CVSS 3.1, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). It affects Ultra Addons for Contact Form 7 (themefic) and was published on 26 Sept 2026. It is not in CISA's Known Exploited Vulnerabilities catalog. Its EPSS score is 4.3%: the estimated chance it is exploited in the next 30 days, as of 24 Nov 2026. The upatch `cve-2026-82901-upload-block` mitigates it, and is vetted (merged into the registry).

A upatch is a signed BPF program that shirudo loads into a running Linux kernel to block the code path this CVE's exploit takes. It holds the line until the fix ships; it does not replace patching.

## The vulnerability

CVE-2026-82901 is an unauthenticated arbitrary file upload vulnerability in the Ultra Addons for Contact Form 7 (`ultimate-addons-for-contact-form-7`) WordPress plugin in all versions up to and including 3.5.50, published on 26 September 2026. When the plugin's PDF Generator module is enabled (`uacf7_enable_pdf_generator`), the `uacf7_wpcf7_mail_components` function in `addons/pdf-generator/pdf-generator.php` copies uploaded form files into `wp-content/uploads/uacf7-uploads/` under `$time_now . '-' . $file_key . '-' . sanitize_file_name(basename($file))` without validating the file extension or MIME type. An unauthenticated attacker can submit a form containing a `.php` script or other dangerous file, which is written into the publicly accessible `uacf7-uploads` directory and allows remote code execution.

### Official description

The Ultra Addons for Contact Form 7 plugin for WordPress is vulnerable to Arbitrary File Upload due to insufficient file type validation in the 'uacf7_wpcf7_mail_components' function in all versions up to, and including, 3.5.50. This makes it possible for unauthenticated attackers to upload arbitrary files on the affected site's server which may make remote code execution possible. Note: This is only exploitable when the plugin's PDF Generator module is enabled, which is disabled by default.

## What the upatch does

One BPF LSM program attached to `lsm/inode_create` returns `-EPERM` when a process whose executable starts with `php` (such as `php`, `php8.3`, `php8.4`, `php8.5`, `php-fpm8.3`, `php-fpm8.4` or `php-fpm8.5`) or is named `apache2` attempts to create a file inside a directory named `uacf7-uploads` unless the file name ends with one of the safe extensions allowed by the 3.5.51 fix (`.pdf`, `.png`, `.jpg`, `.jpeg`, `.jpe`, `.gif`, `.webp`, `.txt`, `.doc`, `.docx`, matched case-insensitively).

The `refused` per-CPU array counts refused file creations at key 0.

The policy: [`cve-2026-82901-upload-block.bpf.c`](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-82901), 141 lines of BPF C attached at `lsm/inode_create`, licensed GPL-2.0 OR BSD-2-Clause.

## Side effects

- PHP and Apache processes cannot create files in `uacf7-uploads` whose extensions are outside `.pdf`, `.png`, `.jpg`, `.jpeg`, `.jpe`, `.gif`, `.webp`, `.txt`, `.doc` and `.docx`. This matches the extension whitelist introduced by upstream version 3.5.51 in `addons/pdf-generator/pdf-generator.php`.
- Generated PDFs (`.pdf`), signature images (`.png`, `.jpg`, `.jpeg`) and allowed document/image attachments in `uacf7-uploads` continue to work normally.
- Non-PHP/Apache processes (such as administrative shell commands) are unaffected.

## Preemption model and cost

The program keeps no state beyond the per-CPU refusal counter, which it updates with `__sync_fetch_and_add`, making it safe under every preemption model including preemptible RCU and `PREEMPT_LAZY`. On every file creation outside `uacf7-uploads`, the program returns after a single check of the parent directory's 13-byte name length (`d_parent->d_name.len != 13`).

## Affected versions

Ultra Addons for Contact Form 7 (`ultimate-addons-for-contact-form-7`):

| Branch | Affected                   | Fixed in |
| ------ | -------------------------- | -------- |
| 3.5    | up to and including 3.5.50 | 3.5.51   |

Kernels: Linux kernels with BPF LSM and the four-argument `inode_create` LSM hook taking `const struct mnt_idmap *idmap` first.

## How it was tested

On a vulnerable Ultra Addons for Contact Form 7 3.5.50 installation with the PDF Generator module enabled, the loaded upatch refused creation of the uploaded .php probe file in uacf7-uploads while before and after runs wrote the file.

- **Tested:** 25 Nov 2026
- **Target:** WordPress 6.7.2 with Ultra Addons for Contact Form 7 3.5.50 (PDF Generator enabled) on PHP 8.5.4, loopback only
- **Kernel:** 7.4-shirudo-ci-20261123
- **Architecture:** x86_64
- **Distribution:** Ubuntu 26.04

### Results

| State           | uacf7_wpcf7_mail_components writes .php file in uacf7-uploads |
| --------------- | ------------------------------------------------------------- |
| Before loading  | yes (HTTP 200)                                                |
| Upatch loaded   | no (HTTP 500, EPERM)                                          |
| After unloading | yes (HTTP 200)                                                |

## How to apply

Build the upatch from source, sign it with your own shirudo key, and publish it to your own OCI registry. Machines that follow your upatch tree load it within about a minute.

Build and sign:

```sh
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-82901
```

Publish and roll out:

```sh
shirudo bpm push build/packages/cve-2026-82901-1.0.0.bee oci://<registry>/<namespace>/cve-2026-82901 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-82901-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>
```

## Review

- Contributors: romanlab.
- Reviewers: none recorded yet.

## Sources and links

- [Wordfence vulnerability advisory for CVE-2026-82901](https://www.wordfence.com/threat-intel/vulnerabilities/id/872e1a05-aacc-44fa-93c1-8c3f7b2fb46d?source=cve)
- [WordPress Plugin Trac changeset 3698232](https://plugins.trac.wordpress.org/changeset/3698232/ultimate-addons-for-contact-form-7)
- [Vulnerable `pdf-generator.php` in tag 3.5.48 (line 608)](https://plugins.trac.wordpress.org/browser/ultimate-addons-for-contact-form-7/tags/3.5.48/addons/pdf-generator/pdf-generator.php#L608)
- [Vulnerable `pdf-generator.php` in tag 3.5.48 (line 807)](https://plugins.trac.wordpress.org/browser/ultimate-addons-for-contact-form-7/tags/3.5.48/addons/pdf-generator/pdf-generator.php#L807)
- [Vulnerable `ultimate-signature.php` in tag 3.5.48 (line 133)](https://plugins.trac.wordpress.org/browser/ultimate-addons-for-contact-form-7/tags/3.5.48/addons/signature/ultimate-signature.php#L133)

### Links

- [CVE-2026-82901 on upatch.dev](https://upatch.dev/cve/CVE-2026-82901) (this page, as HTML)
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-82901)
- [CVE.org](https://www.cve.org/CVERecord?id=CVE-2026-82901)
- [CWE-434](https://cwe.mitre.org/data/definitions/434.html)
- Upatch source: [upatches/cve-2026-82901](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-82901)

### More references from NVD (7)

- [plugins.trac.wordpress.org](https://plugins.trac.wordpress.org/browser/ultimate-addons-for-contact-form-7/tags/3.5.48/addons/pdf-generator/pdf-generator.php#L608)
- [plugins.trac.wordpress.org](https://plugins.trac.wordpress.org/browser/ultimate-addons-for-contact-form-7/tags/3.5.48/addons/pdf-generator/pdf-generator.php#L807)
- [plugins.trac.wordpress.org](https://plugins.trac.wordpress.org/browser/ultimate-addons-for-contact-form-7/tags/3.5.48/addons/signature/ultimate-signature.php#L133)
- [plugins.trac.wordpress.org](https://plugins.trac.wordpress.org/browser/ultimate-addons-for-contact-form-7/tags/3.5.48/addons/signature/ultimate-signature.php#L192)
- [plugins.trac.wordpress.org](https://plugins.trac.wordpress.org/browser/ultimate-addons-for-contact-form-7/tags/3.5.48/addons/signature/ultimate-signature.php#L300)
- [plugins.trac.wordpress.org](https://plugins.trac.wordpress.org/changeset/3698232/ultimate-addons-for-contact-form-7)
- [wordfence.com](https://www.wordfence.com/threat-intel/vulnerabilities/id/872e1a05-aacc-44fa-93c1-8c3f7b2fb46d?source=cve)
