CVE-2025-65570
JSON

9.8critical

A type confusion in jsish 2.0 allows incorrect control flow during execution of the OPNEXT opcode.

Severity
9.8critical CVSS:3.1 by CISA-ADP
Exploit likelihood
0.91% (higher than 58% of CVEs)
Published
Last changed
Assigned by
mitre

Description

A type confusion in jsish 2.0 allows incorrect control flow during execution of the OP_NEXT opcode. When an “instanceof” expression uses an array element access as the left-hand operand inside a for-in loop, the instructions implementation leaves an additional array reference on the stack rather than consuming it during OP_INSTANCEOF. As a result, OP_NEXT interprets the array as an iterator object and reads the iterCmd function pointer from an invalid structure, potentially causing a crash or enabling code execution depending on heap layout.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
jsish jsish2.0NVD

Classification

CWE-843

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

A type confusion in jsish 2.0 allows incorrect control flow during execution of the OP_NEXT opcode. When an “instanceof” expression uses an array element access as the left-hand operand inside a for-in loop, the instructions implementation leaves an additional array reference on the stack rather than consuming it during OP_INSTANCEOF. As a result, OP_NEXT interprets the array as an iterator object and reads the iterCmd function pointer from an invalid structure, potentially causing a crash or enabling code execution depending on heap layout.

NVD (es)

Una confusión de tipos en jsish 2.0 permite un flujo de control incorrecto durante la ejecución del código de operación OP_NEXT. Cuando una expresión 'instanceof' utiliza un acceso a un elemento de array como operando de la izquierda dentro de un bucle for-in, la implementación de las instrucciones deja una referencia de array adicional en la pila en lugar de consumirla durante OP_INSTANCEOF. Como resultado, OP_NEXT interpreta el array como un objeto iterador y lee el puntero de función iterCmd de una estructura inválida, lo que podría causar un fallo o permitir la ejecución de código dependiendo de la disposición de la pila.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-65570 changed 2025-12-31CVE Terms of Use
NVDCVE-2025-65570 changed 2026-10-13Public domain