Skip to main content
Mallory
MediumVulnerability

CVE-2008-1841: SQL Injection in Coppermine Photo Gallery session handling (session_id)

Published Apr 16, 2008 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS6.8Medium · v2
EPSS1.9%80th percentile
CISA KEVNoNot listed
In the wildReported2 exploitation records in Mallory
Vendor
Coppermine
IdentifiersCVE-2008-1841CWE-89 · Improper Neutralization of Special…

CVE-2008-1841 is an SQL injection vulnerability in the session handling functionality of bridge/coppermine.inc.php in Coppermine Photo Gallery (CPG) 1.4.17 and earlier. The vulnerability allows remote attackers to execute arbitrary SQL commands via an input field associated with the session_id variable. The vulnerability was actively exploited in the wild in April 2008. Notably, the fix for CVE-2008-1840 was intended to address this issue but was ineffective.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows remote attackers to execute arbitrary SQL commands against the Coppermine Photo Gallery database. This can lead to unauthorized access, data leakage, modification or deletion of data, and potentially full compromise of the application and underlying server if further chained with other vulnerabilities.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, restrict access to the application to trusted users, employ web application firewalls to block SQL injection attempts, and monitor logs for suspicious activity involving the session_id parameter. Additionally, implement input validation and parameterized queries as a defense-in-depth measure.

Remediation

Patch, then assume compromise.

Upgrade Coppermine Photo Gallery to a version where this vulnerability is patched. Ensure that all user-supplied input, especially session_id, is properly sanitized and parameterized before being used in SQL queries. Review vendor advisories for the correct patch, as the fix for CVE-2008-1840 does not address this issue.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
CoppermineCoppermine Photo Galleryapplication
FAQ

Frequently asked questions

Is CVE-2008-1841 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2008-1841?
As of Oct 16, 2026, Mallory has found no public exploit for CVE-2008-1841.
Is there a patch for CVE-2008-1841?
Upgrade Coppermine Photo Gallery to a version where this vulnerability is patched. Ensure that all user-supplied input, especially session_id, is properly sanitized and parameterized before being used in SQL queries.
What products are affected by CVE-2008-1841?
Coppermine Photo Gallery.
How severe is CVE-2008-1841?
CVE-2008-1841 has a CVSS v2 score of 6.8 (Medium) and an EPSS score of 1.9% (80th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.