1. Archivio CVE
  2. 2026
  3. CVE-2026-49858

CVE-2026-49858

5.9 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N 5.9 – Media

Descrizione

API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. In versions from 2.6.0 prior to 4.1.29, 4.2.26, and 4.3.12, a missing isCacheKeySafe gate in the JSON:API and HAL item normalizers causes a cross-user attribute leak. #[ApiProperty(security: ...)] is evaluated per request to decide whether a property is exposed. The componentsCache arrays in ApiPlatform\JsonApi\Serializer\ItemNormalizer and ApiPlatform\Hal\Serializer\ItemNormalizer are keyed on $context['cache_key'], which is set unconditionally before delegating to the parent normalizer. The component structure (attributes, relationships, links) computed for one request can therefore be reused for a subsequent request whose user has a different set of accessible properties. A user with lower privileges may end up seeing the structure of properties that the security predicate would otherwise have hidden for them. This issue has been fixed in versions 4.1.29, 4.2.26, and 4.3.12.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
api-platform api-platform/hal >= 2.6.0, < 4.1.29 –
api-platform api-platform/hal >= 4.2.0, < 4.2.25 –
api-platform api-platform/hal >= 4.3.0, < 4.3.8 –
api-platform api-platform/json-api >= 2.6.0, < 4.1.29 –
api-platform api-platform/json-api >= 4.2.0, < 4.2.25 –
api-platform api-platform/json-api >= 4.3.0, < 4.3.8 –
api-platform core >= 2.6.0, < 4.1.29 –
api-platform core >= 4.2.0, < 4.2.25 –
api-platform core >= 4.3.0, < 4.3.8 –
Tutte le 8 vulnerabilità di Api-platform Core

Tipo di vulnerabilità

CWE-524 Use of Cache Containing Sensitive Information

The code uses a cache that contains sensitive information, but the cache can be read by an actor outside of the intended control sphere.

Impatto sui sistemi

AmbitoImpatto
Riservatezza Leggere i dati dell’applicazione

Come si previene

Architettura e progettazione Protect information stored in cache.
Architettura e progettazione Do not store unnecessarily sensitive information in the cache.
Architettura e progettazione Consider using encryption in the cache.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 83 CVE di tipo CWE-524, con andamento e prevenzione

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