CVE-2016-9492
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe code generated by PHP FormMail Generator prior to 17 December 2016 is vulnerable to unrestricted upload of dangerous file types. In the generated form.lib.php file, upload file types are checked against a hard-coded list of dangerous extensions. This list does not include all variations of PHP files, which may lead to execution of the contained PHP code if the attacker can guess the uploaded filename. The form by default appends a short random string to the end of the filename.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe PHP FormMail Generator prior to December 2016 generates form.lib.php with an incomplete file extension allowlist for uploaded files. The hard-coded list of dangerous extensions does not block all PHP file variations (e.g., .php3, .php5, .phtml), allowing attackers to upload executable PHP code. Although the form appends a short random string to filenames, this is easily brute-forced given the limited character set.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 2016-12-17CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Locate form.lib.php in your deploymentSearch your web root for the file form.lib.php which is generated by the PHP FormMail Generator. This file handles file upload validation.Affected if The file exists and was generated prior to December 2016 using the affected generator tool.
-
Identify the generator version or dateCheck the file header, comments, or any version metadata in form.lib.php for a generation timestamp. Alternatively, determine when the form was originally created using your version control history or file creation metadata.Affected if The file was generated before 2016-12-17 (the patch date).
-
Inspect the blocked extensions listOpen form.lib.php and locate the array or list that defines blocked/allowed file extensions for uploads. Look for extensions like php, php3, php4, php5, phtml, phar.Affected if The extension list exists but is incomplete - it does NOT include all PHP variants such as .php3, .php5, .phtml, .php4, .phar.
-
Verify the upload feature is enabledCheck your form configuration or the generated form HTML to confirm that file upload functionality is enabled (look for <input type="file"> or related upload handling code in form.lib.php).Affected if File uploads are enabled and form.lib.php is actively processing uploaded files.
You are affected if form.lib.php exists, was generated before December 2016, has an incomplete PHP extension blocklist, and file upload functionality is active.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped2016-12-17
Regenerate the form code using the updated generator (post-December 2016) or manually add all PHP extensions (.php, .php3, .php4, .php5, .phtml, .phar, etc.) to the blocked extensions list in form.lib.php.
Version released on or after December 17, 2016
- 1. Identify the current version of PHP FormMail Generator in use by checking the form.lib.php file or the generator's metadata
- 2. If the installation date or version is prior to December 17, 2016, download the latest version from the official source (phpformmail.com or equivalent)
- 3. Backup the existing form.lib.php file and any custom templates before upgrading
- 4. Replace the vulnerable form.lib.php with the new version released on or after 2016-12-17
- 5. Verify that the new version includes proper file type validation that blocks all PHP extensions (including pht, phtml, php3, php4, php5, php6, php7, phar)
- 6. Test the file upload functionality to ensure legitimate uploads still work
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation2.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,832.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2016-9492 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2016-9492 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data