CVE-2006-4979: PHP Code Injection in PhpQuiz install.php
- Vendor
- Walter Beschmout
A direct static code injection vulnerability exists in cfgphpquiz/install.php in Walter Beschmout PhpQuiz 1.2 and earlier. Remote attackers can inject arbitrary PHP code into config.inc.php by submitting crafted configuration settings during installation, leading to persistent code execution.
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 PHP code on the server with the privileges of the web server process. This can lead to full compromise of the application and potentially the underlying system.
Mitigation
If you can’t patch tonight, do this now.
Restrict access to the install.php script after initial installation, and ensure that the web server user has minimal write permissions. Employ web application firewalls to detect and block malicious input targeting configuration scripts.
Remediation
Patch, then assume compromise.
Upgrade to a fixed version of PhpQuiz, if available, or apply a patch that properly sanitizes and validates configuration input before writing to config.inc.php. Ensure that user-supplied data is never directly written to PHP files without strict validation and escaping.
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-2006-4979 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2006-4979 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2006-4979?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2006-4979.
- Is there a patch for CVE-2006-4979?
- Upgrade to a fixed version of PhpQuiz, if available, or apply a patch that properly sanitizes and validates configuration input before writing to config.inc.php. Ensure that user-supplied data is never directly written to PHP files without strict validation and escaping.
- What products are affected by CVE-2006-4979?
- Walter Beschmout Phpquiz.
- How severe is CVE-2006-4979?
- CVE-2006-4979 has a CVSS v2 score of 5.0 (Medium) and an EPSS score of 2.8% (87th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.