Ultra Addons for Contact Form 7 — Unauthenticated Arbitrary File Upload to RCE (CVE-2026-82901)
Published: 2026-11-25 • Researcher: yoyo / murrez (PoC author, PoCbit); Themefic (plugin vendor); advisory/changeset references via WordPress.org Trac and Wordfence
- Severity
- Critical
- CVE
- CVE-2026-82901
- Category
- web
- Affected product
- Ultra Addons for Contact Form 7 (Themefic) WordPress plugin — PDF Generator addon and signature upload handling in the mail-components routine
- Affected versions
- All versions up to and including 3.5.50 (fixed in 3.5.51; the aggregate NVD record carries no structured product ranges — see references)
- Disclosed
- 2026-11-25
- Patch status
- Patched
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-82901
- https://github.com/murrez/CVE-2026-82901
- https://plugins.trac.wordpress.org/changeset/3698232/ultimate-addons-for-contact-form-7
- https://plugins.trac.wordpress.org/browser/ultimate-addons-for-contact-form-7/tags/3.5.48/addons/pdf-generator/pdf-generator.php#L608
- https://plugins.trac.wordpress.org/browser/ultimate-addons-for-contact-form-7/tags/3.5.48/addons/pdf-generator/pdf-generator.php#L807
- https://plugins.trac.wordpress.org/browser/ultimate-addons-for-contact-form-7/tags/3.5.48/addons/signature/ultimate-signature.php#L133
- https://pocbit.org/pocs/cve-2026-82901
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-25 |
| Last Updated | 2026-09-27 |
| Author / Researcher | yoyo / murrez (PoC author, PoCbit); Themefic (plugin vendor); advisory/changeset references via WordPress.org Trac and Wordfence |
| CVE / Advisory | CVE-2026-82901 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.8 (CVSS 3.1; network, no privileges required. Standard 9.8 profile: AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. The aggregate NVD record supplied only the score, so treat the vector as reconstructed) |
| Status | PoC |
| Tags | RCE, unauthenticated, WordPress, file-upload, CWE-434, Contact Form 7, Ultra Addons, webshell, PDF Generator, plugin |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | Ultra Addons for Contact Form 7 (Themefic) WordPress plugin — PDF Generator addon and signature upload handling in the mail-components routine |
| Versions Affected | All versions up to and including 3.5.50 (fixed in 3.5.51; the aggregate NVD record carries no structured product ranges — see references) |
| Language / Platform | PHP (WordPress plugin); Python 3 client PoC |
| Authentication Required | No |
| Network Access Required | Yes |
Summary
Ultra Addons for Contact Form 7 fails to validate the type of files uploaded through the signature field when the plugin’s PDF Generator module is enabled. The plugin’s mail-components handler processes the submitted file and stores it in the uploads directory with only weak validation of its type and name, so an unauthenticated visitor can attempt to place a PHP script there through the Contact Form 7 feedback endpoint. When the server executes PHP from the uploads directory, that upload becomes remote code execution as the web server user. The PDF Generator module is disabled by default and the vulnerable path also requires a form containing a signature field, which limits exposure in practice.
Vulnerability Details
Root Cause
The PDF Generator addon added by the plugin processes signature uploads attached to Contact Form 7 submissions. Its uacf7_wpcf7_mail_components routine moves the uploaded file into /wp-content/uploads/uacf7-uploads/ while trusting the client-supplied filename and MIME type, with insufficient extension and content validation (CWE-434: Unrestricted Upload of File with Dangerous Type). The upload is handled in the CF7 feedback flow, so no WordPress account or capability check stands between an anonymous request and the file write. Release 3.5.51 (changeset 3698232) adds the missing type checks.
Attack Vector
An unauthenticated attacker first requests a page containing the vulnerable form and reads the hidden _wpcf7 form id, _wpcf7_unit_tag, and the signature input name (class img_id_special). The attacker then sends a multipart POST to /wp-json/contact-form-7/v1/contact-forms/<id>/feedback with the signature field set to a .php file whose content is a small PHP webshell and whose part Content-Type claims image/jpeg. The plugin writes the file under the uploads directory; the attacker requests it back over HTTP. The only preconditions are that the PDF Generator module is enabled and the form has a uacf7_signature field — both disabled/absent by default.
Impact
Arbitrary file write on the WordPress host and, where PHP execution under /wp-content/uploads/ is allowed, remote code execution as the web server user (www-data in typical deployments). That yields access to wp-config.php database credentials, stored user data, and any file readable by the web user, plus the ability to host malware or deface the site. On configurations that block PHP in uploads, the issue remains a stored-file and content-injection primitive.
Environment / Lab Setup
OS: Linux (any WordPress-capable host)
Target: WordPress + Contact Form 7 + Ultra Addons for Contact Form 7 <= 3.5.50,
PDF Generator module enabled, a CF7 form containing a signature field
Attacker: Python 3.8+ (requests, urllib3)
Tools: curl, Burp Suite (optional), the archived poc.pySetup Steps
| |
Proof of Concept
Step-by-Step Reproduction
- Fingerprint the plugin (optional but useful) — the
checkmode fetches/wp-content/plugins/ultimate-addons-for-contact-form-7/readme.txt, reads theStable tagvalue, and compares it with 3.5.50.Shell script1 2python3 poc.py -u https://lab.example --mode check \ --form-url https://lab.example/contact/ - Locate the vulnerable form — with
--form-urlthe check mode parses the page for the_wpcf7form id,_wpcf7_unit_tag, and anyimg_id_specialsignature input, reportingform_with_signaturewhen all are present. - Upload the webshell —
exploitmode POSTs a multipart body to the CF7 feedback endpoint, using the discovered form metadata and the signature field name, with the file part namedpocbit_82901.phpand a PHP body guarded by thePOCBIT-82901-OKmarker.Shell script1 2python3 poc.py -u https://lab.example --mode exploit \ --form-url https://lab.example/contact/ - Verify execution — the tool extracts any
https://.../wp-content/uploads/uacf7-uploads/...URL echoed in the CF7 response and GETs it, looking for the marker. If the response does not reveal the stored path (the server may prefix the filename with a timestamp), supply it explicitly.Shell script1 2 3 4python3 poc.py -u https://lab.example --mode exploit \ --form-url https://lab.example/contact/ \ --shell-name pocbit_82901.php \ --verify-url https://lab.example/wp-content/uploads/uacf7-uploads/pocbit_82901.php - Run a command against the shell — the uploaded payload executes
?c=throughshell_exec.Shell script1curl -s 'https://lab.example/wp-content/uploads/uacf7-uploads/pocbit_82901.php?c=id'
Exploit Code
See
poc.pyin this folder (upstreampoc.py, archived unmodified apart from the research-only header). Full usage and options are inupstream-README.md.
The core request is a single multipart POST to the Contact Form 7 REST feedback route:
| |
Expected Output
| |
| |
Detection & Indicators of Compromise
- POST requests to
/wp-json/contact-form-7/v1/contact-forms/<id>/feedback(oradmin-ajax.phpCF7 routes) whose multipart body carries a part named after a signature field with a filename ending in.php,.phtml,.php5,.phar, or similar, especially with a spoofedimage/jpegcontent type. - New files under
/wp-content/uploads/uacf7-uploads/containing PHP opening tags,shell_exec,system,eval, or thePOCBIT-82901-OKmarker string from this PoC. - HTTP GETs directly to files in
/wp-content/uploads/uacf7-uploads/followed by?c=command parameters. - Plugin detection:
/wp-content/plugins/ultimate-addons-for-contact-form-7/readme.txtpublicly reportsStable tag: 3.5.50or lower. - Web server errors such as “Unable to move uploaded file” or PHP execution denials shortly after a CF7 feedback POST.
Example web access log lines:
| |
SIEM / IDS rule (example):
| |
Remediation
| Action | Detail |
|---|---|
| Patch | Update Ultra Addons for Contact Form 7 to 3.5.51 or later (changeset 3698232 adds file type validation); verify the plugin directory no longer reports 3.5.50 in readme.txt. |
| Workaround | Disable the PDF Generator module — the vulnerable upload path is unreachable without it — and, as defense in depth, remove signature fields from public forms until the plugin is patched. |
| Config Hardening | Block PHP execution under /wp-content/uploads/ (and uacf7-uploads/ specifically) at the web server or PHP-FPM level, keep plugin/theme file editors disabled, restrict upload MIME types, and add a WAF rule for PHP filenames in CF7 feedback POSTs. |
References
- CVE-2026-82901 — NVD
- murrez/CVE-2026-82901 — source PoC (GitHub)
- WordPress.org Trac — changeset 3698232 (fix)
- WordPress.org Trac — pdf-generator.php, 3.5.48 tag line 608
- WordPress.org Trac — pdf-generator.php, 3.5.48 tag line 807
- WordPress.org Trac — ultimate-signature.php, 3.5.48 tag line 133
- PoCbit write-up — CVE-2026-82901
Notes
Auto-ingested from https://github.com/murrez/CVE-2026-82901 on 2026-11-25.
Review verdict: a real PoC, not a mere detector. The repository ships poc.py with two modes: a fingerprint/check mode (plugin version plus form-field discovery, detection-only) and an exploit mode that uploads an actual PHP webshell through the CF7 feedback endpoint and verifies it by requesting the file and matching the POCBIT-82901-OK marker. The mass-target mode (--list) only runs the fingerprint/check path and never uploads; the actual file-upload exploit is reached with -u <base> --mode exploit --form-url <page>.
License status: MIT (LICENSE, Copyright (c) 2026 yoyo). The archived poc.py keeps its upstream header plus the research-only disclaimer; upstream-README.md, requirements.txt, and targets.example.txt are unmodified. The LICENSE file itself was not copied (the note here records the terms).
Limitations: exploitation requires the PDF Generator module to be enabled (off by default) and a published CF7 form containing the signature field; a valid form id/unit tag must be recoverable from the page. The upload path may gain a timestamp or randomized prefix, in which case the operator must discover or supply the stored URL via --verify-url — poc.py does not brute-force filenames. RCE additionally requires the server to execute PHP from the uploads directory; otherwise the issue is limited to arbitrary file write. The PoC was not executed during ingestion, and no live target was tested; the tool is intended for authorized assessments only.
| |