{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-54630","published":"2026-10-23T04:18:17.007000Z","last_modified":"2026-10-29T13:17:13.330000Z","status":"Deferred","cvss":{"version":"3.1","score":9.6,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","source":"security-advisories@github.com","primary":false},"auth":true,"cwes":["CWE-434"],"cpes":[],"cpes_truncated":false,"vendors":["part-db"],"products":["part-db/part-db-server"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"critical","priority_score":58,"links":{"html_es":"/es/cve/CVE-2026-54630/","html_en":"/en/cve/CVE-2026-54630/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-54630","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-54630"},"untrusted":{"vendor_name":"Part-DB","product_name":"Part-DB-server","desc_en":"Part-DB is an open source inventory management system for electronic components. Prior to version 2.12.1, the part attachment upload handler stores uploaded files under the web-served media directory using the client-supplied file extension, and its extension blocklist does not include phar. AttachmentSubmitHandler::renameBlacklistedExtensions() rewrites dangerous extensions (php, phtml, sh, cgi, py, js, html, htaccess, ...) to .txt, but phar is absent from the list, so a .phar file keeps its extension. Public attachments (the default) are written into public/media/, which is the Apache document root. The shipped Apache configuration routes .phar to PHP-FPM, so the stored file is executed as PHP on request. The per-attachment-type extension filter is empty by default and is not consulted by the upload handler in a way that blocks this, and a non-admin user in the default users group can create an attachment type with no filter and attach files to parts. Any authenticated user in the default users group uploads a .phar attachment to a part and fetches it under /media/, executing arbitrary PHP as the www-data web user. Ability to exploit depends on the webserver config, docker image contained the vulnerability by default. This issue has been patched in version 2.12.1.","affected":[{"untrusted_vendor":"Part-DB","untrusted_product":"Part-DB-server","versions":[]}],"ai":{"model":"us.anthropic.claude-haiku-4-5-20251001-v1:0","prompt_version":"2","input_hash":"b5bb95a7906bdabb16d2ed72b8a0c78f","generated":"2026-11-26T22:11:19.891544Z","es":{"untrusted_title":"Ejecución remota de código en Part-DB-server por carga de archivos PHAR","untrusted_summary":"Part-DB-server anterior a la versión 2.12.1 permite a usuarios autenticados ejecutar código PHP arbitrario cargando archivos con extensión .phar como adjuntos de piezas. El validador de extensiones no incluye .phar en su lista de bloqueo, y la configuración de Apache predeterminada enruta estos archivos a PHP-FPM para su ejecución. Un usuario autenticado en el grupo de usuarios predeterminado puede crear un tipo de adjunto sin filtro y cargar un archivo malicioso."},"en":{"untrusted_title":"Remote Code Execution in Part-DB-server via PHAR File Upload","untrusted_summary":"Part-DB-server prior to version 2.12.1 allows authenticated users to execute arbitrary PHP code by uploading files with .phar extension as part attachments. The extension validator does not include .phar in its blocklist, and the default Apache configuration routes these files to PHP-FPM for execution. An authenticated user in the default users group can create an attachment type without filters and upload a malicious file."},"remediation":{"status":"fix","fixed_versions":["2.12.1"],"untrusted_action_es":"Actualiza Part-DB-server a la versión 2.12.1 o superior para aplicar el parche que incluye .phar en la lista de extensiones bloqueadas.","untrusted_action_en":"Update Part-DB-server to version 2.12.1 or later to apply the patch that includes .phar in the extension blocklist.","vendor_url":"https://github.com/Part-DB/Part-DB-server/releases/tag/v2.12.1"},"reviewed":false},"references":[{"url":"https://github.com/Part-DB/Part-DB-server/releases/tag/v2.12.1","tags":[]},{"url":"https://github.com/Part-DB/Part-DB-server/security/advisories/GHSA-w5m7-3xf7-6g7g","tags":[]}]}}