6.5medium
Mojo::JSON versions before 9.47 for Perl allow memory exhaustion via unbounded recursion in the pure-Perl decoder
- Severity
- 6.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.47% (higher than 42% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- CPANSec
Description
Mojo::JSON versions before 9.47 for Perl allow memory exhaustion via unbounded recursion in the pure-Perl decoder. The pure-Perl decode path (`_decode_value` dispatching to `_decode_array` and `_decode_object`) recurses with no depth limit, so a small deeply nested JSON document can consume excessive memory. This path is the default when Cpanel::JSON::XS is not installed or `MOJO_NO_JSON_XS=1` is set; the Cpanel::JSON::XS fast path is not affected. Any caller that decodes an untrusted JSON body, for example `Mojo::Message::json` reached through `$c->req->json`, can exhaust process memory and cause denial of service.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Mojolicious | before 9.47 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Mojo::JSON versions before 9.47 for Perl allow memory exhaustion via unbounded recursion in the pure-Perl decoder. The pure-Perl decode path (`_decode_value` dispatching to `_decode_array` and `_decode_object`) recurses with no depth limit, so a small deeply nested JSON document can consume excessive memory. This path is the default when Cpanel::JSON::XS is not installed or `MOJO_NO_JSON_XS=1` is set; the Cpanel::JSON::XS fast path is not affected. Any caller that decodes an untrusted JSON body, for example `Mojo::Message::json` reached through `$c->req->json`, can exhaust process memory and cause denial of service.
NVD (es)
Las versiones de Mojo::JSON anteriores a la 9.47 para Perl permiten el agotamiento de la memoria a través de recursión ilimitada en el decodificador pure-Perl. La ruta de decodificación pure-Perl (’_decode_value’ que despacha a ’_decode_array’ y ’_decode_object’) recurre sin límite de profundidad, por lo que un documento JSON pequeño y profundamente anidado puede consumir memoria excesiva. Esta ruta es la predeterminada cuando Cpanel::JSON::XS no está instalado o ’MOJO_NO_JSON_XS=1’ está configurado; la ruta rápida de Cpanel::JSON::XS no se ve afectada. Cualquier llamador que decodifique un cuerpo JSON no confiable, por ejemplo ’Mojo::Message::json’ alcanzado a través de ’$c -> req -> json’, puede agotar la memoria del proceso y causar denegación de servicio.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-14803 changed 2026-07-06 | CVE Terms of Use |
| NVD | CVE-2026-14803 changed 2026-10-25 | Public domain |