CVE-2026-5436

Source
https://cve.org/CVERecord?id=CVE-2026-5436
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-5436.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-5436
Published
2026-04-08T20:25:10.473Z
Modified
2026-07-08T08:13:48.355735073Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
MW WP Form <= 5.1.1 - Unauthenticated Arbitrary File Move via regenerate_upload_file_keys
Details

The MW WP Form plugin for WordPress is vulnerable to Arbitrary File Move/Read in all versions up to and including 5.1.1. This is due to insufficient validation of the $name parameter (upload field key) passed to the generateuserfiledirpath() function, which uses WordPress's pathjoin() — a function that returns absolute paths unchanged, discarding the intended base directory. The attacker-controlled key is injected via the mwfuploadfiles[] POST parameter, which is loaded into the plugin's Data model via setrequestvaliables(). During form processing, regenerateuploadfilekeys() iterates over these keys and calls generateuserfilepath() with the attacker-supplied key as the $name argument — the key survives validation because the targeted file (e.g., wp-config.php) genuinely exists at the absolute path. The getattachments() method then re-reads the same surviving keys and passes the resolved file path to movetempfiletoupload_dir(), which calls rename() to move the file into the uploads folder. This makes it possible for unauthenticated attackers to move arbitrary files on the server, which can easily lead to remote code execution when the right file is moved (such as wp-config.php). The vulnerability is only exploitable if a file upload field is added to the form and the “Saving inquiry data in database” option is enabled.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5436.json",
    "cna_assigner": "Wordfence",
    "cwe_ids": [
        "CWE-22"
    ]
}
References

Affected packages

Git / github.com/web-soudan/mw-wp-form

Affected ranges

Type
GIT
Repo
https://github.com/web-soudan/mw-wp-form
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.1.1"
        }
    ]
}

Affected versions

5.*
5.0.2
5.0.3
5.0.4
5.0.5
5.0.6
5.1.0
5.1.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-5436.json"