CVE-2016-2152 · redhat
CVE-2016-2152
Multiple cross-site scripting (XSS) vulnerabilities in auth/db/auth.php in Moodle through 2.6.11, 2.7.x before 2.7.13, 2.8.x before 2.8.11, 2.9.x before 2.9.5, and 3.0.x before 3.0.3 allow remote attackers to inject arbitrary web script or HTML via an external DB profile field.
Published 2016-05-22, last changed 2026-06-17. Weakness: CWE-79.
How to fix
Upgrade to a fixed version: moodle/moodle 2.7.13, 2.8.11, 2.9.5, 3.0.3 (Packagist) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in moodle/moodle by 3b214760fb, 4db8407d3e, 4ee7394c8b. Functions changed by the fix: is_real_user, fill_properties_cache, get_property_definition, reset_caches, reset_all_data, sync_users, update_user_record, test_settings, clean_data. Regression tests: lib/tests/user_test.php, auth/db/tests/db_test.php. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2016-05-22 | Published |
| 2022-05-13 | Package advisory GHSA-6mxm-wpqv-675h |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 1.47% |
| 2026-12-03 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-6mxm-wpqv-675h | moodle/moodle (Packagist) | 2.7.13 |
| GHSA-6mxm-wpqv-675h | moodle/moodle (Packagist) | 2.8.11 |
| GHSA-6mxm-wpqv-675h | moodle/moodle (Packagist) | 2.9.5 |
| GHSA-6mxm-wpqv-675h | moodle/moodle (Packagist) | 3.0.3 |
Also known as: GHSA-6mxm-wpqv-675h
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-26047 | 2026-02-21 | 6.5 | Moodle: moodle: uncontrolled resource consumption in tex formula editor leading to denial of service |
| CVE-2026-26045 | 2026-02-21 | 7.2 | Moodle: moodle: improper validation in file restore functionality leading to remote code execution |
| CVE-2025-67857 | 2026-02-03 | 5.3 | Moodle: moodle: data exposure of user identifiers in urls |
| CVE-2025-67856 | 2026-02-03 | 9.8 | Moodle: moodle: privilege escalation via incomplete role checks in badge awarding |
| CVE-2025-67855 | 2026-02-03 | 6.1 | Mooodle: mooodle: information disclosure and script execution via reflected cross-site scripting |
| CVE-2025-67853 | 2026-02-03 | 7.5 | Moodle: moodle: brute-force facilitation due to missing rate limiting in confirmation email service |
| CVE-2025-67852 | 2026-02-03 | 6.1 | Moodle: moodle: open redirect vulnerability in oauth login flow allows redirection to malicious sites. |
| CVE-2025-67851 | 2026-02-03 | 7.8 | Moodle: moodle: formula injection allows arbitrary formula execution via unescaped data export |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-2152, or call /api/v1/vulnerabilities/CVE-2016-2152. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.