CVE-2023-25558
What it is
DataHub is an open-source metadata platform. When the DataHub frontend is configured to authenticate via SSO, it will leverage the pac4j library. The processing of the `id_token` is done in an unsafe manner which is not properly accounted for by the DataHub frontend. Specifically, if any of the id_token claims value start with the {#sb64} prefix, pac4j considers the value to be a serialized Java object and will deserialize it. This issue may lead to Remote Code Execution (RCE) in the worst case. Although a `RestrictedObjectInputStream` is in place, that puts some restriction on what classes can be deserialized, it still allows a broad range of java packages and potentially exploitable with different gadget chains. Users are advised to upgrade. There are no known workarounds. This vulnerability was discovered and reported by the GitHub Security lab and is tracked as GHSL-2022-086.
At a glance
- Exploitability
- Can be exploited over the network with a low-privilege account. High risk of data exposure, data tampering, service disruption.
- Exploit odds
- 1.0% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 1.0% in the next 30 days (EPSS).
- Severity: 7.5 HIGH (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 1.0% · EPSS, next 30 days
- Weakness
- CWE-502 · Unsafe deserialization
- Record status
- Modified
Affected
- Datahub Project Datahub < 0.9.5
Attack profile CVSS 3.1 · 7.5
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Raw vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2023-25558.md and follow it. Check whether this project is affected by CVE-2023-25558. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/datahub-project/datahub/commit/2a182f484677d056730d6b4e9f0143e67368359f
- https://github.com/datahub-project/datahub/security/advisories/GHSA-hrwp-2q5c-86wv
- https://github.com/datahub-project/datahub/commit/2a182f484677d056730d6b4e9f0143e67368359f
- https://github.com/datahub-project/datahub/security/advisories/GHSA-hrwp-2q5c-86wv
References
- https://github.com/datahub-project/datahub/commit/2a182f484677d056730d6b4e9f0143e67368359f
- https://github.com/datahub-project/datahub/security/advisories/GHSA-hrwp-2q5c-86wv
- https://github.com/datahub-project/datahub/commit/2a182f484677d056730d6b4e9f0143e67368359f
- https://github.com/datahub-project/datahub/security/advisories/GHSA-hrwp-2q5c-86wv