{"id":"CVE-2012-4402","aliases":[],"kind":"cve","tier":"cold","status":"published","title":"webservice/lib.php in Moodle 2.1.x before 2.1.8, 2.2.x before 2.2.5, and 2.3.x before 2.3.2 does not properly restrict…","description":"webservice/lib.php in Moodle 2.1.x before 2.1.8, 2.2.x before 2.2.5, and 2.3.x before 2.3.2 does not properly restrict the use of web-service tokens, which allows remote authenticated users to run arbitrary external-service functions via a token intended for only one service.","ai_summary":null,"severity":"medium","cvss":{"score":4.9,"version":"2.0","vector":"AV:N/AC:M/Au:S/C:P/I:P/A:N","source":"NVD"},"scores":[{"score":4.9,"version":"2.0","vector":"AV:N/AC:M/Au:S/C:P/I:P/A:N","source":"nvd"}],"cwe":["CWE-264"],"remote":true,"remote_unauth":false,"epss":{"score":0.00983,"percentile":0.61172,"date":"2026-11-28"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[],"affected_products":[{"vendor":"n/a","product":"n/a","versions":"","source":"nvd"}],"ai_versions":null,"mitigation":"No fix listed yet: follow the vendor advisory.","technologies":[],"references":[{"url":"http://moodle.org/mod/forum/discuss.php?d=211559","kind":"vendor"},{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-34368","kind":"patch"},{"url":"http://openwall.com/lists/oss-security/2012/09/17/1","kind":"other"}],"workarounds":null,"vendors":["moodle"],"products":["moodle"],"cpes":["cpe:2.3:a:moodle:moodle:2.1.0:*:*:*:*:*:*:*","cpe:2.3:a:moodle:moodle:2.1.1:*:*:*:*:*:*:*","cpe:2.3:a:moodle:moodle:2.1.2:*:*:*:*:*:*:*","cpe:2.3:a:moodle:moodle:2.1.3:*:*:*:*:*:*:*","cpe:2.3:a:moodle:moodle:2.1.4:*:*:*:*:*:*:*","cpe:2.3:a:moodle:moodle:2.1.5:*:*:*:*:*:*:*","cpe:2.3:a:moodle:moodle:2.1.6:*:*:*:*:*:*:*","cpe:2.3:a:moodle:moodle:2.1.7:*:*:*:*:*:*:*","cpe:2.3:a:moodle:moodle:2.2.0:*:*:*:*:*:*:*","cpe:2.3:a:moodle:moodle:2.2.1:*:*:*:*:*:*:*","cpe:2.3:a:moodle:moodle:2.2.2:*:*:*:*:*:*:*","cpe:2.3:a:moodle:moodle:2.2.3:*:*:*:*:*:*:*","cpe:2.3:a:moodle:moodle:2.2.4:*:*:*:*:*:*:*","cpe:2.3:a:moodle:moodle:2.3.0:*:*:*:*:*:*:*","cpe:2.3:a:moodle:moodle:2.3.1:*:*:*:*:*:*:*"],"published_at":"2012-09-19T10:00:00.000Z","modified_at":"2026-06-16T23:44:56.987Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2012-4402"}],"links":{"html":"https://flawdb.com/CVE-2012-4402","markdown":"https://flawdb.com/CVE-2012-4402.md","json":"https://flawdb.com/api/v1/entries/CVE-2012-4402"}}