🔍 CVE-2026-54630

9.6
CVSS Score
CRITICAL
2026-10-23
2026-10-23 19:36
✅ 완료

🇰🇷 한글 설명

Part-DB의 2.12.1 미만 버전에서 발생하는 취약점으로, 파일 업로드 핸들러가 .phar 확장자를 차단하지 않아 발생합니다. 인증된 사용자가 .phar 파일을 업로드하면 Apache 설정에 따라 PHP 코드가 실행되어 원격 코드 실행(RCE)이 가능해집니다.

💡 쉬운 설명

악성 파일을 올릴 때 특정 확장자(.phar)를 걸러내지 못하는 허점이 있습니다. 이를 통해 해커가 서버에 몰래 명령어를 실행할 수 있는 위험한 상태입니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

Part-DB version < 2.12.1

⚔️ 공격 벡터

인증된 사용자가 .phar 확장자를 가진 파일을 업로드한 후 해당 경로로 접근하여 PHP 코드를 실행

🛡️ 대응 방법

Part-DB를 최신 버전인 2.12.1 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전 번호가 2.12.1보다 낮으면 취약한 상태입니다.

Shell / Script
python3 -c 'import pkg_resources; print(pkg_resources.get_distribution("part-db").version)' 2>/dev/null || echo 'not installed'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N

💻 영향받는 소프트웨어

Docker