CVE-2021-47904
Published: 23 January 2026
Description
PhreeBooks 5.2.3 contains an authenticated file upload vulnerability in the Image Manager that allows remote code execution. Attackers can upload a malicious PHP web shell by exploiting unrestricted file type uploads to gain command execution on the server.
Mitigating Controls (NIST 800-53 r5)AI
Directly validates uploaded files in the Image Manager to block unrestricted uploads of dangerous types like PHP web shells by checking extensions, MIME types, and content.
Deploys malicious code protection at upload entry points to scan and eradicate PHP web shells before they can be executed on the server.
Restricts file uploads in the Image Manager to only permitted safe image types, preventing acceptance of executable PHP files.
Security SummaryAI
PhreeBooks 5.2.3 contains an authenticated file upload vulnerability in the Image Manager, classified as CVE-2021-47904 and associated with CWE-434 (Unrestricted Upload of File with Dangerous Type). This flaw enables attackers to upload files without restrictions on type, specifically allowing the placement of a malicious PHP web shell on the server, which leads to remote code execution. The vulnerability carries a CVSS v3.1 base score of 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), highlighting its high severity due to network accessibility and significant impacts on confidentiality, integrity, and availability.
An attacker with low-privilege authenticated access (PR:L), such as a standard user account, can exploit this vulnerability remotely over the network with low complexity and no user interaction required. Successful exploitation grants command execution on the server via the uploaded PHP web shell, potentially allowing full control over the affected PhreeBooks instance.
Advisories and related resources, including those from VulnCheck (https://www.vulncheck.com/advisories/phreebooks-remote-code-execution) and the vendor site (https://www.phreesoft.com/), provide further details on the issue. Public proof-of-concept exploits are available on Exploit-DB (https://www.exploit-db.com/exploits/46645 and https://www.exploit-db.com/exploits/49524), along with additional analysis at https://gist.github.com/joswr1ght/22f40787de19d80d110b37fb79ac3985; security practitioners should review these for mitigation guidance and patch information.
Details
- CWE(s)
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
The vulnerability is an unrestricted file upload in a web application component (Image Manager), directly enabling exploitation of a public-facing application (T1190) to deploy and execute a PHP web shell (T1100) for remote code execution.