p PatchFirst

CVE-2023-25575

CVE-2023-25575 · Secured properties in API Platform Core may be accessible within collections

Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.

API Platform Core is the server component of API Platform: hypermedia and GraphQL APIs. Resource properties secured with the `security` option of the `ApiPlatform\Metadata\ApiProperty` attribute can be disclosed to unauthorized users. The problem affects most serialization formats, including raw JSON, which is enabled by default when installing API Platform. Custom serialization formats may also be impacted. Only collection endpoints are affected by the issue, item endpoints are not. The JSON-LD format is not affected by the issue. The result of the security rule is only executed for the first item of the collection. The result of the rule is then cached and reused for the next items. This bug can leak data to unauthorized users when the rule depends on the value of a property of the item. This bug can also hide properties that should be displayed to authorized users. This issue impacts the 2.7, 3.0 and 3.1 branches. Please upgrade to versions 2.7.10, 3.0.12 or 3.1.3. As a workaround, replace the `cache_key` of the context array of the Serializer inside a custom normalizer that works on objects if the security option of the `ApiPlatform\Metadata\ApiProperty` attribute is used.

CVSS 7.7 · Élevée · EPSS 0,6% · Correctif disponible

Publication
Mise à jour

Pile logicielle: php

Produits et versions concernés

  • core

    Versions du logiciel
    • >= 3.0.0, < 3.0.12: Concernée
    • >= 3.1.0, < 3.1.3: Concernée
    • >= 2.6.0, < 2.7.10: Concernée

    Aucun correctif publié

  • api-platform/core Packagist

    Versions du logiciel
    • v3.0.0
    • v3.0.1
    • v3.0.10
    • v3.0.11
    • v3.0.2
    • v3.0.3
    • v3.0.4
    • v3.0.5
    • v3.0.6
    • v3.0.7
    • v3.0.8
    • v3.0.9
    Plages de versions concernées
    • ECOSYSTEM: ≥ 3.0.0, < 3.0.12

    Mettez à jour vers 3.0.12

  • api-platform/core Packagist

    Versions du logiciel
    • v3.1.0
    • v3.1.1
    • v3.1.2
    Plages de versions concernées
    • ECOSYSTEM: ≥ 3.1.0, < 3.1.3

    Mettez à jour vers 3.1.3

  • api-platform/core Packagist

    Versions du logiciel
    • v2.6.0
    • v2.6.1
    • v2.6.2
    • v2.6.3
    • v2.6.3-alpha.1
    • v2.6.3.alpha
    • v2.6.4
    • v2.6.5
    • v2.6.6
    • v2.6.7
    • v2.6.8
    • v2.7.0
    • v2.7.0-alpha.1
    • v2.7.0-alpha.2
    • v2.7.0-alpha.3
    • v2.7.0-alpha.4
    • v2.7.0-alpha.5
    • v2.7.0-alpha.6
    • v2.7.0-alpha.7
    • v2.7.0-beta.1
    • v2.7.0-beta.2
    • v2.7.0-beta.3
    • v2.7.0-beta.4
    • v2.7.0-beta.5
    • v2.7.0-rc.1
    • v2.7.0-rc.2
    • v2.7.1
    • v2.7.2
    • v2.7.3
    • v2.7.4
    • v2.7.5
    • v2.7.6
    • v2.7.7
    • v2.7.8
    • v2.7.9
    Plages de versions concernées
    • ECOSYSTEM: ≥ 2.6.0, < 2.7.10

    Mettez à jour vers 2.7.10

Sources originales

Vérifiez votre serveur →