cbcvebase.
CVE-2022-0848
published 2022-03-04

CVE-2022-0848: OS Command Injection in GitHub repository part-db/part-db prior to 0.5.11.

PriorityP276critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EXPLOIT
EPSS
35.44%
98.2th percentile
OS Command Injection in GitHub repository part-db/part-db prior to 0.5.11.

Affected

2 ranges
VendorProductVersion rangeFixed in
part-dbpart-db_part-db>= unspecified < 0.5.110.5.11
part-db_projectpart-db< 0.5.110.5.11

Detection & IOCsextracted from sources · hover to see the quote

path/show_part_label.php
path/data/media/labels/
  • Monitor for multipart POST file uploads to show_part_label.php where the uploaded file has a .phtml extension (or other executable PHP extensions) in the logo_file field — this is the delivery mechanism for the webshell.
  • Alert on any new .phtml (or .php) files appearing under the /data/media/labels/ directory of a Part-DB installation, as this is where the exploit drops the webshell after upload.
  • Detect HTTP GET/POST requests to /data/media/labels/*.phtml — successful exploitation results in direct web-accessible shell execution at this path.
  • ·The exploit targets Part-DB versions prior to 0.5.11; the vulnerable endpoint show_part_label.php accepts arbitrary file uploads without validating the file extension, allowing .phtml webshells to be stored in a web-accessible directory.
  • ·The exploit script hard-codes a default sub-path of /Part-DB-0.5.10 on the web host, suggesting default/unmodified installations are the primary target; detections should also cover non-default install paths.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv3.010.0CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
nvdv2.010.0CRITICALAV:N/AC:L/Au:N/C:C/I:C/A:C
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.