CVE-2008-1841: SQL Injection in Coppermine Photo Gallery session handling (session_id)
- Vendor
- Coppermine
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.
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.
Exploits
No public exploits tracked yet. Mallory keeps watching.
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.
References
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.
Recent activity
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.