CVE-2021-47943: TextPattern CMS 4.8.7 Remote Code Execution via File Upload
TextPattern CMS 4.8.7 contains a remote code execution vulnerability that allows authenticated attackers to execute arbitrary commands by uploading malicious PHP files through the file upload functionality. Attackers can upload a PHP shell via the Files section in the content area and execute commands by accessing the uploaded file at /textpattern/files/ with GET parameters passed to the system function.
Security readout for executives and security teams
Plain-English summary
A flaw in TextPattern CMS version 4.8.7 lets a logged-in user upload a malicious PHP file through the built-in Files section and then run commands on the web server. In plain terms, anyone with publishing access can take over the site and the host it runs on.
Executive priority
Treat as a high-priority patch or compensating-control action for any production TextPattern 4.8.7 site, especially public-facing. Risk is full site and server compromise once any author-level credential is obtained, with public exploit code already circulating.
Technical view
CWE-434 unrestricted file upload in TextPattern CMS 4.8.7. An authenticated user uploads a PHP payload via the content area Files feature; the file is served from /textpattern/files/ and executes server-side, enabling arbitrary command execution. CVSS 3.1 base 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) reflects low-privilege network-reachable RCE.
Likely exposure
Internet-exposed TextPattern 4.8.7 installations where authors, editors, or compromised low-privilege accounts can reach the file upload feature. Sites with weak credentials, open registration, or shared author accounts face the broadest exposure; intranet deployments are reachable to any insider with a valid login.
Exploitation context
Two public proof-of-concept entries exist on ExploitDB (49996 and 50415) and a VulnCheck advisory documents the issue. CISA KEV does not list active exploitation. Working exploit code being public lowers the skill barrier and raises the chance of opportunistic abuse against any unpatched, authenticated-accessible installation.
Researcher notes
CWE-434 with a documented path: upload via Files, retrieve via /textpattern/files/, command passed as GET parameter to a system call. Sources do not name a fixed release in this bundle, so consult Textpattern's release notes and GitHub repository directly. KEV flag is false; treat exploitation as plausible given public PoCs but not confirmed in-the-wild.
Mitigation direction
Inventory all TextPattern CMS instances and confirm whether any are running 4.8.7.
Check Textpattern vendor advisories and release notes for a fixed version and upgrade.
Restrict the Files upload feature to trusted admin roles and remove unused author accounts.
Block or rename /textpattern/files/ at the web server or WAF, and disable PHP execution in upload directories.
Enforce strong authentication and MFA on all CMS accounts; rotate credentials on suspected sites.
Monitor web server logs for unexpected PHP files served from the files directory.
Validation and detection
Confirm CMS version by reviewing Admin > Diagnostics or the textpattern/lib version constants.
Review the files directory and database for PHP-extension uploads that should not be present.
Audit user accounts and recent login activity for unknown or dormant privileged users.
Search web and application logs for GET requests to /textpattern/files/ with query parameters.
After remediation, retest by attempting a benign non-PHP upload to verify allow-list controls.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-434: File access and web shell behavior lookup
File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
3Timeline events
1ADP providers
4Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.