CVE-2004-2158: SQL Injection in Serendipity 0.7-beta1 entry_id parameter
- Vendor
- S9y
CVE-2004-2158 is an SQL injection vulnerability in Serendipity 0.7-beta1. The vulnerability exists in the handling of the 'entry_id' parameter in exit.php and comment.php, where user-supplied input is not properly sanitized before being used in SQL queries. This allows remote attackers to inject arbitrary SQL commands into the application's database queries.
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 data leakage, data modification, or potentially full compromise of the application depending on the database privileges of the web application.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, implement input validation and sanitization for the 'entry_id' parameter at the application level. Additionally, restrict database user privileges to minimize the impact of a successful SQL injection attack.
Remediation
Patch, then assume compromise.
Upgrade to a version of Serendipity where input validation and proper parameterization of SQL queries are implemented for the 'entry_id' parameter in exit.php and comment.php. Ensure all user input is sanitized and use prepared statements for database access.
Exploits
No validated public exploits yet. Hidden: 1 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-2004-2158 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2004-2158 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2004-2158?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2004-2158.
- Is there a patch for CVE-2004-2158?
- Upgrade to a version of Serendipity where input validation and proper parameterization of SQL queries are implemented for the 'entry_id' parameter in exit.php and comment.php. Ensure all user input is sanitized and use prepared statements for database access.
- What products are affected by CVE-2004-2158?
- S9y Serendipity.
- How severe is CVE-2004-2158?
- CVE-2004-2158 has a CVSS v2 score of 7.5 (High) and an EPSS score of 4.1% (91st percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.