CVE-2023-25575
API Platform Core: Uninitialized Security Rule Cache Leak in Collection Endpoints
Description
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.
INFO
Published Date :
Feb. 28, 2023, 11:15 p.m.
Last Modified :
March 13, 2023, 4:05 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
4.0
Exploitability Score :
3.1
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-25575
.
URL | Resource |
---|---|
https://github.com/api-platform/core/commit/5723d68369722feefeb11e42528d9580db5dd0fb | Patch |
https://github.com/api-platform/core/security/advisories/GHSA-vr2x-7687-h6qv | Vendor Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-25575
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-25575
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Mar. 13, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N Changed Reference Type https://github.com/api-platform/core/commit/5723d68369722feefeb11e42528d9580db5dd0fb No Types Assigned https://github.com/api-platform/core/commit/5723d68369722feefeb11e42528d9580db5dd0fb Patch Changed Reference Type https://github.com/api-platform/core/security/advisories/GHSA-vr2x-7687-h6qv No Types Assigned https://github.com/api-platform/core/security/advisories/GHSA-vr2x-7687-h6qv Vendor Advisory Added CWE NIST CWE-863 Added CPE Configuration OR *cpe:2.3:a:api-platform:core:*:*:*:*:*:*:*:* versions from (including) 2.6.0 up to (excluding) 2.7.10 *cpe:2.3:a:api-platform:core:*:*:*:*:*:*:*:* versions from (including) 3.0.0 up to (excluding) 3.0.12 *cpe:2.3:a:api-platform:core:*:*:*:*:*:*:*:* versions from (including) 3.1.0 up to (excluding) 3.1.3
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-25575
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-25575
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.06 }} 0.00%
score
0.29216
percentile