CVE-2025-5007 Details
Description
A vulnerability was found in Part-DB up to 1.17.0. It has been declared as problematic. Affected by this vulnerability is the function handleUpload of the file src/Services/Attachments/AttachmentSubmitHandler.php of the component Profile Picture Feature. The manipulation of the argument attachment leads to cross site scripting. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 1.17.1 is able to address this issue. The identifier of the patch is 2c4f44e808500db19c391159b30cb6142896d415. It is recommended to upgrade the affected component.
A cross-site scripting (XSS) vulnerability has been identified in Part-DB versions through 1.17.0. The issue resides in the Profile Picture Feature, specifically within the handleUpload function of the AttachmentSubmitHandler.php file. This vulnerability allows for the manipulation of the attachment argument, leading to the execution of malicious scripts. The flaw can be exploited remotely, provided the victim interacts with the affected content.
Users are advised to upgrade to Part-DB version 1.17.1, which sanitizes SVG files during upload to remove any embedded JavaScript. For those using Part-DB with nginx, it's recommended to add a specific Content-Security-Policy header for SVG files. Apache users will find this configuration automatically applied in the Part-DB .htaccess file.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 20, 2025CISA-ADP
Assessed May 21, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/b1d0ws/CVEs/blob/main/CVE-2025-XXXX.md | [email protected] | Broken Link |
| https://github.com/Part-DB/Part-DB-server/commit/2c4f44e808500db19c391159b30cb6142896d415 | [email protected] | Source CodeVendor |
| https://github.com/Part-DB/Part-DB-server/releases/tag/v1.17.1 | [email protected] | Release NotesVendor |
| https://vuldb.com/?ctiid.309661 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/?id.309661 | [email protected] | AdvisoryExploitRemedy |
| https://vuldb.com/?submit.580323 | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Part-DB | <= 1.17.0 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 20, 2025 | New CVE Received | [email protected] |
Volerion