7.1high
PocketMine-MP before 3.26.5 and 4.0.5 Input Validation via Book Pages
- Severity
- 7.1high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.42% (higher than 37% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-p62j-hrxm-xcxf
Description
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).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| pmmp PocketMine-MP | from 3.0.0 before 3.26.5, from 4.0.0 before 4.0.5 Not affected: 3.26.5, 4.0.5 | CVE List |
| pocketmine/pocketmine-mp (Packagist) | before 3.26.5, from 4.0.0 before 4.0.5 | GitHub Advisory Database |
All scores
| VulnCheck | 7.1high CVSS:4.0 | 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 |
| VulnCheck | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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).
GitHub Advisory Database
Impact
Players can fill book pages with as many characters as they like; the server does not check this. In addition, the maximum of 50 pages is also not enforced, meaning that players can create "book bombs".
This causes a variety of problems:
- Oversized NBT on the wire costing excess bandwidth for server and client
- Server crashes when saving region-based worlds due to exceeding maximum chunk size of 1 MB (PM3-specific)
- Server crashes if any book page exceeds 32 KiB (due to TAG_String size limit) (PM4-specific)
This does, however, require that an attacker obtain a writable book in the first place in order to exploit the problem.
Patches
The bug has been fixed in 3.26.5 and 4.0.5.
Workarounds
Ban writable books, or use a plugin to cancel PlayerEditBookEvent to cancel the event if strlen(text) > 1024 || mb_strlen(text) > 256.
For more information
If you have any questions or comments about this advisory:
- Email us at team@pmmp.io
NVD (es)
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).
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-51018 changed 2026-10-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-p62j-hrxm-xcxf changed 2026-09-08 | CC-BY-4.0 |
| NVD | CVE-2022-51018 changed 2026-11-10 | Public domain |