1. Archivio CVE
  2. 2025
  3. CVE-2025-22151

CVE-2025-22151

3.7 Gravità bassa CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N 3.7 – Bassa

Descrizione

Strawberry GraphQL is a library for creating GraphQL APIs. Starting in 0.182.0 and prior to version 0.257.0, a type confusion vulnerability exists in Strawberry GraphQL's relay integration that affects multiple ORM integrations (Django, SQLAlchemy, Pydantic). The vulnerability occurs when multiple GraphQL types are mapped to the same underlying model while using the relay node interface. When querying for a specific type using the global node field (e.g., FruitType:some-id), the resolver may incorrectly return an instance of a different type mapped to the same model (e.g., SpecialFruitType). This can lead to information disclosure if the alternate type exposes sensitive fields and potential privilege escalation if the alternate type contains data intended for restricted access. This vulnerability is fixed in 0.257.0.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
strawberry-graphql strawberry >= 0.182.0, < 0.257.0 –

Tipo di vulnerabilità

CWE-843 Type confusion: accesso a una risorsa con un tipo incompatibile

Il prodotto crea una risorsa (puntatore, oggetto o variabile) di un certo tipo, ma in seguito vi accede come se fosse di un tipo incompatibile.

Impatto sui sistemi

AmbitoImpatto
Altro Dipende dal contesto
Disponibilità, Integrità, Riservatezza Leggere la memoria, Modificare la memoria, Eseguire codice o comandi non autorizzati, Interruzione del servizio: arresto o riavvio

Tutte le 925 CVE di tipo CWE-843, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org