cbcvebase.
CVE-2008-3641
published 2008-10-10

CVE-2008-3641: The Hewlett-Packard Graphics Language (HPGL) filter in CUPS before 1.3.9 allows remote attackers to execute arbitrary code via crafted pen width and pen color…

PriorityP262critical10CVSS 2.0
AVNACLAuNCCICAC
EXPLOIT
EPSS
24.13%
97.6th percentile
The Hewlett-Packard Graphics Language (HPGL) filter in CUPS before 1.3.9 allows remote attackers to execute arbitrary code via crafted pen width and pen color opcodes that overwrite arbitrary memory.

Affected

60 ranges· showing 25
VendorProductVersion rangeFixed in
applecups<= 1.3.8
applecups
applecups
applecups
applecups
applecups
applecups
applecups
applecups
applecups
applecups
applecups
applecups
applecups
applecups
applecups
applecups
applecups
applecups
applecups
applecups
applecups
applecups
applecups
applecups

Detection & IOCsextracted from sources · hover to see the quote

port631
urlhttp://127.0.0.1:631/printers/Virtual_Printer
uaInternet Print Provider
otherdocument-format: application/vnd.hp-HPGL
processhpgltops
commandBP;CR0,1,0,1,0,1;WU1;RO0;PS0,199.123455;
  • Detect exploit attempts by monitoring IPP (port 631) POST requests to /printers/ paths with Content-Type: application/ipp carrying document-format 'application/vnd.hp-HPGL', especially from User-Agent 'Internet Print Provider'.
  • The exploit payload begins with the HP-GL/2 opcode 'BP;' (Begin Plot) which CUPS uses to recognize the file type; monitor HP-GL/2 jobs submitted over IPP for anomalous PW (pen width) and PC (pen color) opcode sequences that encode shellcode.
  • The vulnerability resides in PW_pen_width() and PC_pen_color() functions in the hpgltops CUPS image filter; monitor for crashes or unexpected code execution originating from the hpgltops process.
  • Successful remote exploitation requires printer sharing to be enabled; audit CUPS configurations for publicly shared printers as an attack surface reduction measure.
  • The exploit targets CUPS versions prior to 1.3.9; identify vulnerable hosts by fingerprinting CUPS version strings on port 631.
  • ·The exploit hardcodes the Pens[] static buffer address and fprintf GOT address specific to a particular hpgltops binary build; these offsets will differ across distributions and compiler versions.
  • ·The exploit was developed and tested against linux 2.6.25 with randomize_va_space=1 and glibc 2.7; ASLR configurations or different kernel/libc versions may affect reliability.
  • ·On Ubuntu 7.10 and 8.04 LTS, exploitation impact is mitigated by the AppArmor CUPS profile which isolates the attacker.

CVSS provenance

nvdv2.010.0CRITICALAV:N/AC:L/Au:N/C:C/I:C/A:C
osv10.0CRITICAL
vendor_debian10.0MEDIUM
vendor_redhat10.0CRITICAL
vendor_ubuntu4.3MEDIUM
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.