CVE-2016-9492

PHP forms generated using the PHP FormMail Generator are vulnerable to unrestricted upload of dangerous file types

No CVSS score yet EPSS 3.29%

Published 13 Jul 2018 Updated 6 Aug 2024 CNA: certcc

Description

The 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.

Exploitation

EPSS 3.29%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 89.2% of all scored CVEs. Scores of 26 Nov 2026.

Weakness

  • CWE-434 Unrestricted Upload of File with Dangerous Type

Affected products

As the CNA lists them.

ProductVersions
Generator
affected from 17/12/2016, before 17/12/2016

Is my server affected?

Find the installed version of generator and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i generator
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2016-9492 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2016-9492

RHEL, Rocky, Alma, Fedora

rpm -q generator
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2016-9492

Alpine

apk list --installed | grep -i generator

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2016-9492
trivy image --scanners vuln IMAGE | grep CVE-2016-9492

Patchbrief makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Install the agent.

References

Advisories

  • VU#608591 kb.cert.org · third party advisory

Other references

  • 96718 securityfocus.com · vdb entry

Source: the record CVE-2016-9492 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.