{"id":"CVE-2022-51018","aliases":["CVE-2022-51018","GHSA-p62j-hrxm-xcxf"],"related":[],"kind":"vulnerability","state":"published","title":"PocketMine-MP before 3.26.5 and 4.0.5 Input Validation via Book Pages","summary":"PocketMine-MP before 3.26.5 and 4.0.x before 4.0.5 does not limit book page text length, page count, or author/title length. A player who obtains a writable book can create oversized NBT ('book bombs'), causing excess bandwidth consumption and server crashes (exceeding the 1 MB chunk size limit when saving region-based worlds in PM3, or exceeding the 32 KiB TAG_String limit in PM4).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"PocketMine-MP before 3.26.5 and 4.0.x before 4.0.5 does not limit book page text length, page count, or author/title length. A player who obtains a writable book can create oversized NBT ('book bombs'), causing excess bandwidth consumption and server crashes (exceeding the 1 MB chunk size limit when saving region-based worlds in PM3, or exceeding the 32 KiB TAG_String limit in PM4).","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"PocketMine-MP versiones anteriores a la 3.26.5 y versiones 4.0.x anteriores a la 4.0.5 no limitan la longitud del texto de las páginas del libro, la cantidad de páginas ni la longitud del autor/título. Un jugador que obtenga un libro editable puede crear NBT sobredimensionados (’book bombs’), lo que provoca un consumo excesivo de ancho de banda y fallos del servidor (superando el límite de tamaño de bloque de 1?MB al guardar mundos basados en regiones en PM3, o superando el límite de 32?KiB para TAG_String en PM4).","source":"nvd"}],"published":"2022-01-06T23:53:35.000Z","modified":"2026-11-10T12:10:00.177Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"type":"semver","introduced":"3.0.0","fixed":"3.26.5","status":"affected"},{"type":"semver","version":"3.26.5","status":"unaffected"},{"type":"semver","introduced":"4.0.0","fixed":"4.0.5","status":"affected"},{"type":"semver","version":"4.0.5","status":"unaffected"}],"vendor":"pmmp","product":"PocketMine-MP","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.26.5"}],"ecosystem":"Packagist","package":"pocketmine/pocketmine-mp","purl":"pkg:composer/pocketmine/pocketmine-mp","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.0.5"}],"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-p62j-hrxm-xcxf","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/pocketmine-mp-before-3.26.5-input-validation-via-book-pages","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/pmmp/PocketMine-MP","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-14T19:22:08.213Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-51018","url":"https://www.cve.org/CVERecord?id=CVE-2022-51018","licence":"CVE Terms of Use","modified":"2026-10-08T15:21:02.576Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p62j-hrxm-xcxf","url":"https://github.com/advisories/GHSA-p62j-hrxm-xcxf","licence":"CC-BY-4.0","modified":"2026-09-08T12:38:05.325Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-51018","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-51018","licence":"Public domain","modified":"2026-11-10T12:10:00.177Z"}],"updatedAt":"2026-11-25T22:58:21.455Z","epss":{"score":0.00417,"percentile":0.37993,"date":"2026-12-01T12:00:22.000Z"}}