CVE-2005-4228: SQL Injection in PhpWebGallery <=1.7.2
- Vendor
- Phpwebgallery
Multiple SQL injection vulnerabilities exist in PhpWebGallery versions 1.5.1 and earlier, and in some cases up to 1.7.2. The vulnerabilities are present in the handling of user-supplied input in several parameters: 'since', 'sort_by', and 'items_number' in comments.php; 'search' in category.php; and 'image_id' in picture.php. These parameters are not properly sanitized before being used in SQL queries, allowing attackers to inject arbitrary SQL commands.
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 application's backend database. This can lead to unauthorized data access, data modification, or potentially full compromise of the application and its data.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, apply input validation and sanitization on the affected parameters to prevent SQL injection. Use prepared statements or parameterized queries to handle user input safely.
Remediation
Patch, then assume compromise.
Upgrade PhpWebGallery to a version where these vulnerabilities are patched. Ensure all user-supplied input is properly sanitized and parameterized before being used in SQL queries.
Exploits
No validated public exploits yet. Hidden: 3 not yet analyzed, such as Exploit-DB entries.
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-2005-4228 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2005-4228 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2005-4228?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2005-4228.
- Is there a patch for CVE-2005-4228?
- Upgrade PhpWebGallery to a version where these vulnerabilities are patched. Ensure all user-supplied input is properly sanitized and parameterized before being used in SQL queries.
- What products are affected by CVE-2005-4228?
- Phpwebgallery.
- How severe is CVE-2005-4228?
- CVE-2005-4228 has a CVSS v2 score of 7.5 (High) and an EPSS score of 2.6% (85th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.