You are viewing this page in an unauthorized frame window.
This is a potential security issue, you are being redirected to
https://nvd.nist.gov
An official website of the United States government
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
Secure .gov websites use HTTPS
A lock () or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.
Cpanel::JSON::XS versions before 4.41 for Perl allow denial of service via UTF-8 BOM prefixed input when a decode filter callback throws.
To skip a leading 3-byte UTF-8 BOM, decode_json() advances the input scalar's string pointer past the mark with SvPV_set() and restores it only on the normal return path. When decoding aborts through a Perl exception, for example a filter_json_object callback that croaks, the restore is skipped and the scalar is left with its string pointer offset into its own buffer and a shortened length.
When that scalar is later freed, the allocator receives an invalid pointer and the interpreter aborts. A single BOM prefixed document decoded with a throwing filter callback crashes any caller.
Metrics
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected].
Title: Cpanel::JSON::XS de RURBAN, Description: Las versiones de Cpanel::JSON::XS anteriores a la 4.41 para Perl permiten la denegación de servicio a través de una entrada prefijada con BOM UTF-8 cuando una devolución de llamada de filtro de decodificación lanza una excepción.
Para omitir un BOM UTF-8 inicial de 3 bytes, decode_json() avanza el puntero de cadena del escalar de entrada más allá de la marca con SvPV_set() y lo restaura solo en la ruta de retorno normal. Cuando la decodificación se aborta a través de una excepción de Perl, por ejemplo, una devolución de llamada filter_json_object que falla, la restauración se omite y el escalar queda con su puntero de cadena desplazado dentro de su propio búfer y una longitud acortada.
Cuando ese escalar se libera posteriormente, el asignador recibe un puntero no válido y el intérprete se aborta. Un único documento prefijado con BOM decodificado con una devolución de llamada de filtro que lanza una excepción bloquea a cualquier llamador.
Cpanel::JSON::XS versions before 4.41 for Perl allow denial of service via UTF-8 BOM prefixed input when a decode filter callback throws.
To skip a leading 3-byte UTF-8 BOM, decode_json() advances the input scalar's string pointer past the mark with SvPV_set() and restores it only on the normal return path. When decoding aborts through a Perl exception, for example a filter_json_object callback that croaks, the restore is skipped and the scalar is left with its string pointer offset into its own buffer and a shortened length.
When that scalar is later freed, the allocator receives an invalid pointer and the interpreter aborts. A single BOM prefixed document decoded with a throwing filter callback crashes any caller.