CVE-2023-25558 Deserialization of untrusted data in DataHub

High 7.5 Published Updated

Attackers can achieve remote code execution via unsafe deserialization of Java objects in SSO id_token claims when SSO is enabled.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-25558?

CVE-2023-25558 is a high-severity unsafe deserialization vulnerability in datahub-project datahub, published on 10 Feb 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Weakness: CWE-502

Which versions are affected by CVE-2023-25558?

It affects 1 product.

Products include Datahub Project Datahub.

How do I fix CVE-2023-25558?

No fix has been published for CVE-2023-25558 yet. Limit exposure of the affected software until one is available.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2023-25558 being exploited?

There is no known exploitation of CVE-2023-25558 in the wild and no public exploit code.

Sources

Also known as GHSA-hrwp-2q5c-86wv.

Is CVE-2023-25558 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free