Remediate cJSON vulnerabilities CVE-2026-67215 and CVE-2026-67216
Los mantenedores suelen responder en 12 días
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Comienza confirmando la versión upstream de cJSON o el parche del proveedor que corrige CVE-2026-67215 y CVE-2026-67216, centrándote en cJSONUtils_ApplyPatches(), cJSONUtils_ApplyPatchesCaseSensitive() y cJSON_Compare(). Reconstruye la imagen con la implementación corregida, añade cobertura de regresión para entradas JSON profundamente anidadas y adversariales, y verifica que un análisis de vulnerabilidades ya no informe de ninguno de los dos CVE.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Title
Remediate cJSON vulnerabilities CVE-2026-67215 and CVE-2026-67216
Description
The image includes cJSON with vulnerabilities that may allow denial-of-service attacks when processing attacker-controlled JSON input.
Affected CVEs:
CVE-2026-67215— uncontrolled recursion leading to stack exhaustion.CVE-2026-67216— inefficient algorithmic complexity incJSON_Compare, potentially causing excessive CPU consumption.
Impact
An attacker who can provide malicious JSON Patch documents or JSON objects may be able to:
- Exhaust the application stack.
- Cause excessive CPU consumption.
- Crash or make the affected service unavailable.
The vulnerabilities are relevant when the application invokes:
cJSONUtils_ApplyPatches()cJSONUtils_ApplyPatchesCaseSensitive()cJSON_Compare()
Affected Version
- cJSON versions through
1.7.19are affected byCVE-2026-67215. - The affected cJSON implementation also includes the comparison logic associated with
CVE-2026-67216.
Required Action
- Upgrade to a vendor-confirmed cJSON version containing fixes for both CVEs.
- If no patched release is available, apply the vendor patch when published.
- As an interim mitigation, reject or limit deeply nested JSON Patch input.
- Avoid invoking vulnerable comparison or patch-processing functions on untrusted input where possible.
- Rebuild the image and run a vulnerability scan.
Acceptance Criteria
- A cJSON version containing fixes for both CVEs is integrated.
CVE-2026-67215andCVE-2026-67216are no longer reported.- Deeply nested and adversarial JSON inputs are covered by regression tests.
- The rebuilt image passes security scanning.
Fix Version
No confirmed upstream cJSON fix version was identified at the time of reporting. The target fix version is:
TBD — latest cJSON release containing fixes for CVE-2026-67215 and CVE-2026-67216
- Lenguaje dominante
- C
- Estrellas
- 13k
- Forks
- 3.5k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DaveGamble/cJSON
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
DaveGamble/cJSON#1106 ·
Los mantenedores suelen responder en 12 días
-
Undefined-Behavior in function cJSON_SetNumberHelperPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
DaveGamble/cJSON#1100 · 1 reacción ·
Los mantenedores suelen responder en 12 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
DaveGamble/cJSON#1094 · 9 comentarios · 1 reacción ·
Los mantenedores suelen responder en 12 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
DaveGamble/cJSON#1093 ·
Los mantenedores suelen responder en 12 días
-
Use-after-free in cJSONUtils_ApplyPatches when a patch removes the patch arrayPosiblemente ocupada @iliasabk la tomó hace 31 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
DaveGamble/cJSON#1082 ·
Los mantenedores suelen responder en 12 días
Todos los issues de DaveGamble/cJSON
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
quickjs-ng/quickjs#1836 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
open-quantum-safe/liboqs#2637 ·
Los mantenedores suelen responder en 1 día
-
Go device SDK: Whisper transcriber keeps buffering and transcribing audio appended after Stop()Posiblemente ocupada @apoorvdarshan la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
BasedHardware/omi#22770 ·
Los mantenedores suelen responder en 1 día
-
fido_do_ecdh() reports any getKeyAgreement failure as FIDO_ERR_INTERNALPosiblemente ocupada @brlumen la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
joncampbell123/dosbox-x#6698 ·
Los mantenedores suelen responder en 1 día