CVE-2023-25558

7.5 HIGH

📋 TL;DR

DataHub's SSO authentication improperly processes id_token claims with {#sb64} prefixes, allowing unsafe Java deserialization via pac4j library. This vulnerability can lead to remote code execution when exploited. All DataHub instances using SSO authentication are affected.

💻 Affected Systems

Products:
  • DataHub
Versions: All versions before the fix commit 2a182f484677d056730d6b4e9f0143e67368359f
Operating Systems: All platforms running DataHub
Default Config Vulnerable: ✅ No
Notes: Only affects DataHub instances configured to use SSO authentication via pac4j library.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Remote Code Execution (RCE) allowing full system compromise, data theft, and lateral movement within the environment.

🟠

Likely Case

RCE leading to unauthorized access, data exfiltration, and potential deployment of malware or persistence mechanisms.

🟢

If Mitigated

Limited impact if network segmentation restricts access and monitoring detects exploitation attempts early.

🌐 Internet-Facing: HIGH - SSO authentication typically involves internet-facing components, making exploitation possible from external networks.
🏢 Internal Only: HIGH - Even internally, compromised credentials or insider threats could exploit this vulnerability.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires SSO access and crafting malicious id_token claims with {#sb64} prefixes. The RestrictedObjectInputStream reduces but doesn't eliminate exploitability.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Versions including commit 2a182f484677d056730d6b4e9f0143e67368359f

Vendor Advisory: https://github.com/datahub-project/datahub/security/advisories/GHSA-hrwp-2q5c-86wv

Restart Required: Yes

Instructions:

1. Update DataHub to latest version or version containing fix commit 2a182f484677d056730d6b4e9f0143e67368359f. 2. Restart DataHub services. 3. Verify SSO authentication still functions correctly.

🧯 If You Can't Patch

  • Disable SSO authentication and use alternative authentication methods if possible.
  • Implement strict network segmentation to isolate DataHub instances from critical systems.

🔍 How to Verify

Check if Vulnerable:

Check if DataHub version is older than commit 2a182f484677d056730d6b4e9f0143e67368359f and SSO authentication is enabled.

Check Version:

Check DataHub deployment configuration or container tags for version information.

Verify Fix Applied:

Verify DataHub version includes commit 2a182f484677d056730d6b4e9f0143e67368359f and test SSO authentication functionality.

📡 Detection & Monitoring

Log Indicators:

  • Unusual Java deserialization errors in DataHub logs
  • SSO authentication failures with malformed tokens
  • Unexpected process spawns from DataHub services

Network Indicators:

  • Unusual outbound connections from DataHub instances
  • SSO token payloads containing {#sb64} prefixes

SIEM Query:

source="datahub" AND ("deserialization" OR "id_token" OR "{#sb64}")

🔗 References

📤 Share & Export