{"id":"CVE-2022-51018","aliases":["GHSA-p62j-hrxm-xcxf"],"url":"https://o3.security/vulnerability/CVE-2022-51018","summary":"PocketMine-MP before 3.26.5 and 4.0.5 Input Validation via Book Pages","details":"### Impact\nPlayers can fill book pages with as many characters as they like; the server does not check this.\nIn addition, the maximum of 50 pages is also not enforced, meaning that players can create \"book bombs\".\n\nThis causes a variety of problems:\n- Oversized NBT on the wire costing excess bandwidth for server and client\n- Server crashes when saving region-based worlds due to exceeding maximum chunk size of 1 MB (PM3-specific)\n- Server crashes if any book page exceeds 32 KiB (due to TAG_String size limit) (PM4-specific)\n\nThis does, however, require that an attacker obtain a writable book in the first place in order to exploit the problem.\n\n### Patches\nThe bug has been fixed in 3.26.5 and 4.0.5.\n\n### Workarounds\nBan writable books, or use a plugin to cancel `PlayerEditBookEvent` to cancel the event if `strlen(text) > 1024 || mb_strlen(text) > 256`.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [team@pmmp.io](mailto:team@pmmp.io)\n","published":"2026-09-07T12:55:10.538Z","modified":"2026-11-12T02:31:03.737121319Z","cvss":null,"epss":{"score":0.00436,"percentile":0.29716,"asOf":"2026-11-25"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"pocketmine/pocketmine-mp","fixedVersion":"3.26.5"},{"ecosystem":"Packagist","name":"pocketmine/pocketmine-mp","fixedVersion":"4.0.5"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/51xxx/CVE-2022-51018.json"},{"type":"ADVISORY","url":"https://github.com/pmmp/PocketMine-MP/security/advisories/GHSA-p62j-hrxm-xcxf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-51018"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/pocketmine-mp-before-3.26.5-input-validation-via-book-pages"},{"type":"PACKAGE","url":"https://github.com/pmmp/PocketMine-MP"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-11-12T02:31:03.737121319Z"}}