Cyber Resilience

CVE-2021-47904

HighPublic PoC

Published: 23 January 2026

Published
23 January 2026
Modified
15 April 2026
KEV Added
Patch
CVSS Score v4 8.7 CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Score 0.0061 44.8th percentile
Risk Priority 55 floored blend · peak EPSS

Summary

CVE-2021-47904 is a high-severity Unrestricted Upload of File with Dangerous Type (CWE-434) vulnerability in Phreesoft (inferred from references). Its CVSS base score is 8.7 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 44.8th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified are NIST 800-53 SI-10 (Information Input Validation) and SI-3 (Malicious Code Protection).

Deeper analysis

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.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability details

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise TechniquesAI

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1505.003 Web Shell Persistence
Adversaries may backdoor web servers with web shells to establish persistent access to systems.
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.

Confidence: HIGH · MITRE ATT&CK Enterprise v19.0

CVEs Like This One

CVE-2025-22654Shared CWE-434
CVE-2025-11948Shared CWE-434
CVE-2025-67260Shared CWE-434
CVE-2025-28915Shared CWE-434
CVE-2023-53956Shared CWE-434
CVE-2025-6058Shared CWE-434
CVE-2021-47819Shared CWE-434
CVE-2025-7852Shared CWE-434
CVE-2026-4883Shared CWE-434
CVE-2019-25630Shared CWE-434

Affected Assets

Phreesoft
inferred from references and description; NVD did not file a CPE for this CVE

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

prevent

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.

preventdetect

Deploys malicious code protection at upload entry points to scan and eradicate PHP web shells before they can be executed on the server.

prevent

Restricts file uploads in the Image Manager to only permitted safe image types, preventing acceptance of executable PHP files.

References