{"answers":{"affected":"6 open source packages ship an affected version, including api-platform/core. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-25575 in the wild and no public exploit code.","fix":"Upgrade api-platform/core to a fixed version for your release line: 2.7.10, 3.0.12 or 3.1.3.","what":"CVE-2023-25575 is a high-severity missing authorization vulnerability in api-platform core, published on 28 Feb 2023. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-25575 and fix it if it is affected.\n\nWhat it is: CVE-2023-25575 is a high-severity missing authorization vulnerability in api-platform core, published on 28 Feb 2023. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-25575 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- api-platform/core (Packagist): affected from 2.6.0; fixed in 2.7.10\n- api-platform/core (Packagist): affected from 2.6.0; fixed in 2.7.10\n- api-platform/core (Packagist): affected from 3.0.0; fixed in 3.0.12\n- api-platform/core (Packagist): affected from 3.0.0; fixed in 3.0.12\n- api-platform/core (Packagist): affected from 3.1.0; fixed in 3.1.3\n- api-platform/core (Packagist): affected from 3.1.0; fixed in 3.1.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-25575/ (Markdown: https://insights.sbomify.com/CVE-2023-25575/index.md)","id":"CVE-2023-25575","markdown":"https://insights.sbomify.com/CVE-2023-25575/index.md","name":"CVE-2023-25575","record":{"aliases":["GHSA-vr2x-7687-h6qv"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"API Platform Core","requires_auth":"low_privilege","summary":"Unauthorized users can access secured resource properties in collection endpoints due to cached security rule results, leaking sensitive data.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"core","vendor":"api-platform"}],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"},{"id":"CWE-842","name":"Placement of User into Incorrect Group"}],"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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Secured properties in API Platform Core may be accessible within collections","id":"CVE-2023-25575","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"missing_authorization","year":"2023"},"n_packages":6,"n_references":2,"next":{"headline":"@fastify/multipart vulnerable to DoS due to unlimited number of parts","id":"CVE-2023-25576"},"packages":[{"ecosystem":"Packagist","fixed":["2.7.10"],"introduced":["2.6.0"],"last_affected":[],"package":"api-platform/core","purl":null,"source":"GHSA-vr2x-7687-h6qv"},{"ecosystem":"Packagist","fixed":["2.7.10"],"introduced":["2.6.0"],"last_affected":[],"package":"api-platform/core","purl":"pkg:composer/api-platform/core","source":"GHSA-vr2x-7687-h6qv"},{"ecosystem":"Packagist","fixed":["3.0.12"],"introduced":["3.0.0"],"last_affected":[],"package":"api-platform/core","purl":null,"source":"GHSA-vr2x-7687-h6qv"},{"ecosystem":"Packagist","fixed":["3.0.12"],"introduced":["3.0.0"],"last_affected":[],"package":"api-platform/core","purl":"pkg:composer/api-platform/core","source":"GHSA-vr2x-7687-h6qv"},{"ecosystem":"Packagist","fixed":["3.1.3"],"introduced":["3.1.0"],"last_affected":[],"package":"api-platform/core","purl":null,"source":"GHSA-vr2x-7687-h6qv"},{"ecosystem":"Packagist","fixed":["3.1.3"],"introduced":["3.1.0"],"last_affected":[],"package":"api-platform/core","purl":"pkg:composer/api-platform/core","source":"GHSA-vr2x-7687-h6qv"}],"prev":{"headline":"JupyterHub's LTI13Authenticator: JWT signature not validated","id":"CVE-2023-25574"},"products":["core"],"published":"2023-02-28","related":[{"cvss_score":6.5,"headline":"Incorrect Access Control vulnerability in api-platform/core","id":"CVE-2019-1000011","kev_date_added":null,"published":"2019-02-04"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-07","vendors":["api-platform"]},"summary":"Unauthorized users can access secured resource properties in collection endpoints due to cached security rule results, leaking sensitive data.","url":"https://insights.sbomify.com/CVE-2023-25575/"}