{"id":"CVE-2026-54630","aliases":[],"cve":{"records":[{"id":"CVE-2026-54630","source":"GitHub_M","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-06-15T20:07:02.185Z","published":"2026-10-23T03:48:59.951Z","modified":"2026-10-29T12:43:48.850Z"}],"publishers":[{"name":"GitHub_M","role":"CNA","organizationId":"a0819718-46f1-4df5-94e2-005712e83aaa","modified":"2026-10-23T03:48:59.951Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-10-29T12:43:48.850Z"}],"references":[{"url":"https://github.com/Part-DB/Part-DB-server/security/advisories/GHSA-w5m7-3xf7-6g7g","tags":["x_refsource_CONFIRM"],"source":"GitHub_M"},{"url":"https://github.com/Part-DB/Part-DB-server/releases/tag/v2.12.1","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/Part-DB/Part-DB-server/security/advisories/GHSA-w5m7-3xf7-6g7g","tags":["exploit"],"source":"CISA-ADP"}],"weaknesses":[{"id":"CWE-434","description":"CWE-434: Unrestricted Upload of File with Dangerous Type","source":"GitHub_M"}],"applicability":[],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-10-29T12:43:07.900819Z","decisions":[{"name":"Exploitation","value":"poc"},{"name":"Automatable","value":"no"},{"name":"Technical Impact","value":"total"}]}]},"title":"Part-DB: Authenticated RCE via .phar attachment upload served from public/media","titleSource":"GitHub_M","descriptionSource":"GitHub_M","description":"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.","score":9.6,"severity":"critical","published":"2026-10-23T03:48:59.951Z","modified":"2026-10-29T12:43:48.850Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Part-DB","name":"Part-DB-server","platforms":[],"versions":[{"version":"< 2.12.1","status":"affected"}],"cpes":[],"source":"GitHub_M","url":"https://www.cve.org/CVERecord?id=CVE-2026-54630"}],"remediation":[],"references":["https://github.com/Part-DB/Part-DB-server/security/advisories/GHSA-w5m7-3xf7-6g7g","https://github.com/Part-DB/Part-DB-server/releases/tag/v2.12.1"],"sources":[{"name":"CVE","id":"CVE-2026-54630","modified":"2026-10-29T12:43:48.850Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-54630"}],"assessments":[{"source":"GitHub_M","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","score":9.6}],"sourceAffected":[],"observedAt":"2026-10-29T14:39:37.882Z","kev":{"status":"not-listed","checkedAt":"2026-10-31T13:15:30.844Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-10-29T12:55:31.561Z","attemptedAt":"2026-10-29T12:55:31.561Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-10-29T12:55:31.561Z","attemptedAt":"2026-10-29T12:55:31.561Z"},{"source":"EUVD","status":"available","checkedAt":"2026-10-29T12:55:31.561Z","attemptedAt":"2026-10-29T12:55:31.561Z"},{"source":"EPSS","status":"available","checkedAt":"2026-10-29T12:55:31.561Z","attemptedAt":"2026-10-29T12:55:31.561Z"}],"evidence":[{"source":"FIRST EPSS","id":"CVE-2026-54630","url":"https://www.first.org/epss/","probability":0.00234,"percentile":0.14269,"date":"2026-10-28","checkedAt":"2026-10-29T12:55:31.561Z"},{"source":"NVD","id":"CVE-2026-54630","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54630","modified":"2026-10-23T19:36:32.410","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","checkedAt":"2026-10-29T12:55:31.561Z"},{"source":"ENISA EUVD","id":"EUVD-2026-108573","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-108573","modified":"Oct 23, 2026, 3:48:59 AM","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","checkedAt":"2026-10-29T12:55:31.561Z"}],"aiSummary":{"text":"Part-DB, an inventory management system, has a vulnerability in versions prior to 2.12.1, where an authenticated user can upload a .phar file, which can be executed as PHP. The weakness is due to an unrestricted file upload. The impact depends on the web server configuration.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-10-30T09:15:54.075Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-54630"}]}}