← Vulnerability feed

Vulnerability record · CVE-2008-0506 · published 31 January 2008

CVE-2008-0506: Coppermine Photo Gallery command injection via ImageMagick parameters

CCoppermine · Coppermine Photo Gallery

Coppermine Photo Gallery before 1.4.15 fails to validate the quality, angle, and clipval parameters passed to picEditor.php when the ImageMagick picture processing method is configured. Shell metacharacters in those parameters are passed to the underlying command, allowing remote command execution. The flaw matters because it gives an unauthenticated network attacker a path to run arbitrary commands on the web server.

6.8 CVSS 2.0 Medium EPSS 59% · top 0.9% CWE-20 · Improper input validation
6.8CVSS 2.0 base score
59%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
16References, 2 tagged exploit
16 Jun 2026Last modified by NVD

Description

include/imageObjectIM.class.php in Coppermine Photo Gallery (CPG) before 1.4.15, when the ImageMagick picture processing method is configured, allows remote attackers to execute arbitrary commands via shell metacharacters in the (1) quality, (2) angle, or (3) clipval parameter to picEditor.php.

AV:N/AC:M/Au:N/C:P/I:P/A:P

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: high.

high priorityUnauthenticated remote command execution with public exploit code and very high EPSS, though the CVSS 2.0 score is only 6.8 and KEV does not list it.

What it is

Coppermine Photo Gallery before 1.4.15 fails to validate the quality, angle, and clipval parameters passed to picEditor.php when the ImageMagick picture processing method is configured. Shell metacharacters in those parameters are passed to the underlying command, allowing remote command execution. The flaw matters because it gives an unauthenticated network attacker a path to run arbitrary commands on the web server.

Impact

An attacker can execute arbitrary shell commands with the privileges of the web server process, leading to data theft, web shell placement, or full host compromise. The CVSS 2.0 vector rates partial confidentiality, integrity, and availability impact.

Attack surface

Reached remotely over the network through HTTP requests to picEditor.php, specifically the quality, angle, or clipval parameters. The CVSS vector shows no authentication required (Au:N) and medium access complexity, and the description does not require user interaction.

Exploitation

Public exploit code exists (Exploit-DB 5019 and a SecurityFocus BID tagged Exploit), and EPSS is 0.58902 (99th percentile), indicating high predicted exploitation activity. The CVE is not listed in CISA KEV, so no confirmed in-the-wild exploitation is recorded here.

What to do

  • Upgrade Coppermine Photo Gallery to 1.4.15 or later, which the vendor patch addresses.
  • If ImageMagick processing is not required, switch the gallery to the GD picture processing method to remove the vulnerable code path.
  • Restrict network access to picEditor.php and administrative gallery endpoints to trusted users only.
  • Run the web server and PHP process under a low-privilege account with no shell access to limit command execution impact.
  • Apply input validation or a WAF rule blocking shell metacharacters in the quality, angle, and clipval parameters.

Detection

  • Monitor web server logs for requests to picEditor.php containing shell metacharacters (;, |, &, $, `, backticks) in the quality, angle, or clipval parameters.
  • Alert on unexpected child processes spawned by the web server or PHP-FPM process, especially ImageMagick or shell binaries.
  • Review file integrity in the web root for newly written PHP files or web shells following gallery image operations.
  • Correlate outbound network connections from the web server host with picEditor.php request activity.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2008-0506 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2007-1414Coppermine photo gallery vulnerabilityMultiple PHP remote file inclusion vulnerabilities in Coppermine Photo Gallery (CPG) allow remote attackers to execute arbitrary PHP code via a URL i…EPSS 5.2%7.5CVE-2007-4283Coppermine photo gallery vulnerabilityPHP remote file inclusion vulnerability in bridge/yabbse.inc.php in Coppermine Photo Gallery (CPG) 1.3.1 allows remote attackers to execute arbitrary…EPSS 3.4%7.5CVE-2007-3558Coppermine photo gallery vulnerabilitySQL injection vulnerability in Coppermine Photo Gallery (CPG) before 1.4.11 allows remote attackers to execute arbitrary SQL commands via an album pa…EPSS 1.0%7.5CVE-2007-1107Coppermine photo gallery vulnerabilitySQL injection vulnerability in thumbnails.php in Coppermine Photo Gallery (CPG) 1.3.x allows remote authenticated users to execute arbitrary SQL comm…EPSS 2.2%7.5CVE-2006-5622Coppermine photo gallery vulnerabilitySQL injection vulnerability in picmgr.php in Coppermine Photo Gallery 1.4.9 allows remote attackers to execute arbitrary SQL commands via the aid par…EPSS 1.1%7.5CVE-2006-4321Coppermine photo gallery vulnerabilityPHP remote file inclusion vulnerability in cpg.php in the Coppermine Photo Gallery component (com_cpg) 1.0 and earlier for Mambo allows remote attack…EPSS 3.2%7.5CVE-2006-3064Coppermine photo gallery sql injection vulnerabilitySQL injection vulnerability in the add_hit function in include/function.inc.php in Coppermine Photo Gallery (CPG) 1.4.8, when "Keep detailed hit stat…EPSS 1.3%7.5CVE-2006-2976Coppermine photo gallery vulnerabilityUnspecified vulnerability in usermgr.php in Coppermine Photo Gallery before 1.4.7 has unknown impact and remote attack vectors, possibly related to a…EPSS 1.4%

Source: NIST National Vulnerability Database (record CVE-2008-0506), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.