CVE-2007-6538: SQL Injection in MRBS plugin for Moodle (view_entry.php)
- Vendor
- Mrbs
A SQL injection vulnerability exists in the MRBS plugin for Moodle, specifically in the ing/blocks/mrbs/code/web/view_entry.php file. The vulnerability is due to insufficient sanitization of the 'id' parameter, allowing remote attackers to inject arbitrary SQL commands into 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 backend database. This can lead to unauthorized data access, data modification, or potentially full compromise of the Moodle application depending on database privileges.
Mitigation
If you can’t patch tonight, do this now.
As an interim measure, implement web application firewall (WAF) rules to block malicious SQL injection attempts targeting the 'id' parameter. Additionally, ensure that the database user used by Moodle has the least privileges necessary.
Remediation
Patch, then assume compromise.
Upgrade to a fixed version of the MRBS plugin for Moodle where input validation and parameterized queries are properly implemented for the 'id' parameter in view_entry.php. If no patch is available, restrict access to the vulnerable script and monitor for suspicious activity.
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-2007-6538 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2007-6538 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2007-6538?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2007-6538.
- Is there a patch for CVE-2007-6538?
- Upgrade to a fixed version of the MRBS plugin for Moodle where input validation and parameterized queries are properly implemented for the 'id' parameter in view_entry.php. If no patch is available, restrict access to the vulnerable script and monitor for suspicious activity.
- What products are affected by CVE-2007-6538?
- Mrbs.
- How severe is CVE-2007-6538?
- CVE-2007-6538 has a CVSS v2 score of 7.5 (High) and an EPSS score of 3.8% (90th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.