CVE-2019-9082: ThinkPHP Remote Code Execution via invokefunction
- Vendors
- OpensourcebmsThinkphpZzzcms
CVE-2019-9082 is a remote code execution vulnerability in ThinkPHP and applications incorporating the framework, including Open Source BMS v1.1.1. Crafted HTTP requests manipulate framework routing to reach invokefunction and invoke attacker-selected functions through call_user_func_array. Selecting a command-execution function such as system allows execution of arbitrary operating-system commands. The CVE description identifies ThinkPHP versions before 3.2.4; associated exploit references also discuss ThinkPHP 5.x, so the complete affected-version range is not consistently established.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises the confidentiality, integrity, and availability of the affected application within the privileges of its PHP execution context. Attackers can execute commands, access or modify application data, and deploy additional payloads. Observed campaigns exploiting CVE-2019-9082 alongside CVE-2018-20062 installed the Dama web shell for persistent remote access, file manipulation, reconnaissance, and database access. Elevated operating-system privileges are not an inherent result of this vulnerability.
Mitigation
If you can’t patch tonight, do this now.
Until an upgrade is possible, restrict access to affected applications using network allowlists, reverse-proxy access controls, or an authentication gateway. Apply WAF rules that block attempts to invoke internal framework functions through attacker-controlled routing parameters. Reduce PHP service-account privileges and outbound connectivity to limit post-exploitation impact. These controls are defense in depth, not substitutes for patching.
Remediation
Patch, then assume compromise.
Upgrade ThinkPHP and any applications bundling it to a currently supported release that addresses this vulnerability. Update embedded framework copies rather than relying solely on application version labels. Although the CVE description uses 3.2.4 as a version boundary, the accompanying ThinkPHP 5.x references make a universal minimum fixed version uncertain; verify the applicable fixed release for the deployed branch. For potentially compromised deployments, patching alone does not remove existing web shells or other attacker-installed persistence.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2019-9082 exploited in the wild?
- Yes. As of Nov 28, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
- Is there a public exploit for CVE-2019-9082?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2019-9082, the earliest disclosed Dec 10, 2018.
- Is there a patch for CVE-2019-9082?
- Upgrade ThinkPHP and any applications bundling it to a currently supported release that addresses this vulnerability. Update embedded framework copies rather than relying solely on application version labels.
- What products are affected by CVE-2019-9082?
- Thinkphp, Opensourcebms Open Source Background Management System, and Zzzcms Zzzphp.
- How severe is CVE-2019-9082?
- CVE-2019-9082 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 97.4% (100th percentile) as of Nov 28, 2026.
Recent activity
20 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.