WordPress Post_ID Parameter SQL Injection Vulnerability

BID:23294

Info

WordPress Post_ID Parameter SQL Injection Vulnerability

Bugtraq ID: 23294
Class: Input Validation Error
CVE: CVE-2007-1897
Remote: Yes
Local: No
Published: Apr 03 2007 12:00AM
Updated: May 02 2007 08:29PM
Credit: [email protected] is credited with the discovery of this vulnerability.
Vulnerable: WordPress WordPress 2.1.2
WordPress WordPress 2.1.1
WordPress WordPress 2.0.7
WordPress WordPress 2.0.6
WordPress WordPress 2.0.5
WordPress WordPress 2.0.4
WordPress WordPress 2.0.3
WordPress WordPress 2.0.2
WordPress WordPress 2.0.1
WordPress WordPress 2.0
Debian Linux 3.1 sparc
Debian Linux 3.1 s/390
Debian Linux 3.1 ppc
Debian Linux 3.1 mipsel
Debian Linux 3.1 mips
Debian Linux 3.1 m68k
Debian Linux 3.1 ia-64
Debian Linux 3.1 ia-32
Debian Linux 3.1 hppa
Debian Linux 3.1 arm
Debian Linux 3.1 amd64
Debian Linux 3.1 alpha
Debian Linux 3.1
Debian Linux 4.0 sparc
Debian Linux 4.0 s/390
Debian Linux 4.0 powerpc
Debian Linux 4.0 mipsel
Debian Linux 4.0 mips
Debian Linux 4.0 m68k
Debian Linux 4.0 ia-64
Debian Linux 4.0 ia-32
Debian Linux 4.0 hppa
Debian Linux 4.0 arm
Debian Linux 4.0 amd64
Debian Linux 4.0 alpha
Debian Linux 4.0
Not Vulnerable: WordPress WordPress 2.1.3
WordPress WordPress 2.0.10

Discussion

WordPress Post_ID Parameter SQL Injection Vulnerability

WordPress is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.

Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database implementation.

WordPress 2.1.2 is vulnerable to this issue; other versions may also be affected.

Exploit / POC

WordPress Post_ID Parameter SQL Injection Vulnerability

Attackers can use a browser to exploit this issue.

The following proof-of-concept exploit is available:

Solution / Fix

WordPress Post_ID Parameter SQL Injection Vulnerability

Solution:
The vendor released updates to address this issue. Please see the references for more information.

References

WordPress Post_ID Parameter SQL Injection Vulnerability

References:
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report