{"id":"CVE-2021-48006","aliases":["CVE-2021-48006","GHSA-j5qg-w9jg-3wg3"],"related":[],"kind":"vulnerability","state":"published","title":"PocketMine-MP before 4.0.3 Operator Privilege Escalation via Case Sensitivity","summary":"PocketMine-MP before 4.0.3 does not perform case-insensitive matching when removing operator entries from ops.txt. The removeOp function lowercases the supplied name but only removes an exactly matching entry, so an operator name stored with non-lowercase letters cannot be revoked using the deop command, leaving the player as an operator until the entry is removed from ops.txt manually.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"PocketMine-MP before 4.0.3 does not perform case-insensitive matching when removing operator entries from ops.txt. The removeOp function lowercases the supplied name but only removes an exactly matching entry, so an operator name stored with non-lowercase letters cannot be revoked using the deop command, leaving the player as an operator until the entry is removed from ops.txt manually.","source":"cvelist"},{"lang":"en","text":"### Impact\nOriginally reported in iTXTech/Genisys#1188\n\n```txt\nPotterHarry98\npotterharry98\n```\n\n`deop PotterHarry98`\n\nwill remove `potterharry98` from the ops.txt but not `PotterHarry98`.\n\nOperator permissions are checked using `Config->exists()` with `lowercase=true`, which will result in a match:\nhttps://github.com/pmmp/PocketMine-MP/blob/22bb1ce8e03dba57173debf0415390511d68e045/src/utils/Config.php#L449\n\nThis means that it's possible to make yourself impossible to de-op (using commands) by adding your name to ops.txt with uppercase letters.\n\n### Patches\n4d37b79ff7f9d9452e988387f97919a9a1c4954e\n\n### Workarounds\nThis can be easily addressed by removing the offending lines from ops.txt manually.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [pmmp/PocketMine-MP](https://github.com/pmmp/PocketMine-MP)\n* Email us at [team@pmmp.io](mailto:team@pmmp.io)","format":"markdown","source":"ghsa"}],"published":"2021-12-16T18:53:57.000Z","modified":"2026-10-08T16:16:45.280Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":4.8,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":3.3,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":3.3,"rating":"LOW"}],"cwes":["CWE-178"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"4.0.3","status":"affected"},{"type":"semver","version":"4.0.3","status":"unaffected"}],"vendor":"pmmp","product":"PocketMine-MP","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.0.3"}],"ecosystem":"Packagist","package":"pocketmine/pocketmine-mp","purl":"pkg:composer/pocketmine/pocketmine-mp","source":"ghsa"}],"references":[{"url":"https://github.com/pmmp/PocketMine-MP/security/advisories/GHSA-j5qg-w9jg-3wg3","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pmmp/PocketMine-MP/commit/4d37b79ff7f9d9452e988387f97919a9a1c4954e","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/pocketmine-mp-before-4.0.3-operator-privilege-escalation-via-case-sensitivity","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/iTXTech/Genisys/issues/1188","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pmmp/PocketMine-MP","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pmmp/PocketMine-MP/blob/4.0.3/changelogs/4.0.md#403","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-18T17:07:41.902Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-48006","url":"https://www.cve.org/CVERecord?id=CVE-2021-48006","licence":"CVE Terms of Use","modified":"2026-10-08T15:20:52.601Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j5qg-w9jg-3wg3","url":"https://github.com/advisories/GHSA-j5qg-w9jg-3wg3","licence":"CC-BY-4.0","modified":"2026-09-08T12:38:02.941Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-48006","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-48006","licence":"Public domain","modified":"2026-10-08T16:16:45.280Z"}],"updatedAt":"2026-11-25T22:58:09.123Z","epss":{"score":0.00109,"percentile":0.01345,"date":"2026-12-01T12:00:22.000Z"}}