CVE-2024-47832: Github.com/ssoready/ssoready SSOReady Has An XML Signature Vulnerability

CRITICAL
Advisory Identifier: GHSA-j2hr-q93x-gxvh
CVSS 9.8
CWE-347
Published
Advisory Summary

CVE-2024-47832 is a CRITICAL (CVSS 9.8) ssoready has an xml signature vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Github.com/ssoready/ssoready libraries in the Go ecosystem. The issue involves ssoready has an xml signature bypass via differential xml parsing. Remediation is available by upgrading affected packages to version 0.0.0-20241009153838-7f92a0630439.

CVE-2024-47832 at a Glance

CVE Identifier CVE-2024-47832
GHSA Identifier GHSA-j2hr-q93x-gxvh
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Github.com/ssoready/ssoready
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2024-47832

To remediate this vulnerability, upgrade all affected Github.com/ssoready/ssoready dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/ssoready/ssoready fixed: 0.0.0-20241009153838-7f92a0630439
Upgrade github.com/ssoready/ssoready to 0.0.0-20241009153838-7f92a0630439
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/ssoready/ssoready

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-47832, inspect your project dependencies for Github.com/ssoready/ssoready:

inspect dependencies for github.com/ssoready/ssoready

Analyze the terminal output to locate any version of Github.com/ssoready/ssoready in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20241009153838-7f92a0630439), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Github.com/ssoready/ssoready, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Affected versions are vulnerable to XML signature bypass attacks. An attacker can carry out signature bypass if you have access to certain IDP-signed messages. The underlying mechanism exploits differential behavior between XML parsers. Users of https://ssoready.com, the public hosted instance of SSOReady, are unaffected. We advise folks who self-host SSOReady to upgrade to 7f92a06 or later. Do so by updating your SSOReady Docker images from `sha-...` to `sha-7f92a06`. The documentation for self-hosting SSOReady is available [here](https://ssoready.com/docs/self-hosting/self-hosting-sso-ready). Vulnerability was discovered by @ahacker1-securesaml. It's likely the precise mechanism of attack affects other SAML implementations, so the reporter and I (@ucarion) have agreed to not disclose it in detail publicly at this time.

CVE-2024-47832 Affected Github.com/ssoready/ssoready Versions

1 component(s)
Fixed Versions:
0.0.0-20241009153838-7f92a0630439
Product / Package Ecosystem Affected Versions Fixed Version
github.com/ssoready/ssoready
Go
< 0.0.0-20241009153838-7f92a0630439
0.0.0-20241009153838-7f92a0630439

References

Frequently Asked Questions

What is CVE-2024-47832?
CVE-2024-47832 is a security vulnerability in Github.com/ssoready/ssoready involving SSOReady has an XML Signature Bypass via differential XML parsing under CWE-347: Improper Verification of Cryptographic Signature.
Which Github.com/ssoready/ssoready versions are affected?
Affected versions include releases prior to 0.0.0-20241009153838-7f92a0630439 across affected packages: github.com/ssoready/ssoready.
What version fixes CVE-2024-47832?
Upgrading to 0.0.0-20241009153838-7f92a0630439 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/ssoready/ssoready affected?
Yes, github.com/ssoready/ssoready is affected in releases prior to 0.0.0-20241009153838-7f92a0630439. Upgrade your dependency to 0.0.0-20241009153838-7f92a0630439 or later.
What is the CVSS score of CVE-2024-47832?
CVE-2024-47832 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2024-47832?
CVE-2024-47832 is classified under CWE-347: Improper Verification of Cryptographic Signature (The product does not verify, or incorrectly verifies, the cryptographic signature for data.).
How can I check Go dependencies for CVE-2024-47832?
Run the dependency tree command: 'inspect dependencies for github.com/ssoready/ssoready'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-j2hr-q93x-gxvh",
  "modified" : "2024-10-11T16:58:37Z",
  "published" : "2024-10-11T16:58:36Z",
  "aliases" : [ "CVE-2024-47832" ],
  "summary" : "SSOReady has an XML Signature Bypass via differential XML parsing",
  "details" : "Affected versions are vulnerable to XML signature bypass attacks. An attacker can carry out signature bypass if you have access to certain IDP-signed messages. The underlying mechanism exploits differential behavior between XML parsers.\n\nUsers of https://ssoready.com, the public hosted instance of SSOReady, are unaffected. We advise folks who self-host SSOReady to upgrade to 7f92a06 or later. Do so by updating your SSOReady Docker images from `sha-...` to `sha-7f92a06`. The documentation for self-hosting SSOReady is available [here](https://ssoready.com/docs/self-hosting/self-hosting-sso-ready).\n\nVulnerability was discovered by @ahacker1-securesaml. It's likely the precise mechanism of attack affects other SAML implementations, so the reporter and I (@ucarion) have agreed to not disclose it in detail publicly at this time.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/ssoready/ssoready"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20241009153838-7f92a0630439"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ssoready/ssoready/security/advisories/GHSA-j2hr-q93x-gxvh"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-47832"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ssoready/ssoready/commit/7f92a0630439972fcbefa8c7eafe8c144bd89915"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ssoready/ssoready"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2024-3185"
  }, {
    "type" : "WEB",
    "url" : "https://ssoready.com/docs/self-hosting/self-hosting-sso-ready"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-347" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-10-11T16:58:36Z",
    "nvd_published_at" : "2024-10-09T19:15:14Z"
  }
}