GHSA-x2fr-v8wf-8wwv CVE-2017-11428
Ruby-SAML Improper Authentication vulnerability
- Severity
- 7.7 / 10
- High · CVSS 3.0
- Exploit chance (EPSS)
- 2.46%
- Chance of exploitation in the next 30 days. Higher than 84.48% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-287 Improper Authentication
- Fix
1.7.0- Upgrade ruby-saml to this version or later
Description
OneLogin Ruby-SAML 1.6.0 and earlier may incorrectly utilize the results of XML DOM traversal and canonicalization APIs in such a way that an attacker may be able to manipulate the SAML data without invalidating the cryptographic signature, allowing the attack to potentially bypass authentication to SAML service providers.
Affected versions
RubyGems
| Package | Vulnerable | Fixed in |
|---|---|---|
| ruby-saml | < 1.7.0 |
1.7.0 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
ruby-saml RubyGems → 1.7.0
- bundler
bundle update ruby-saml # Gemfile: gem "ruby-saml", ">= 1.7.0"
Severity breakdown
CVSS 3.0 7.7
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Weakness
CWE-287: Improper Authentication
When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.
How to prevent it
- Architecture and Design: Use an authentication framework or library such as the OWASP ESAPI Authentication feature.
References
Advisories
Other links
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-x4h9-gwv3-r4m4 Ruby-saml allows a Libxml2 Canonicalization error to bypass Digest/Signature validation | Critical | Also affects ruby-saml |
| GHSA-9v8j-x534-2fx3 Ruby-saml has a SAML authentication bypass due to namespace handling (parser differential) | Critical | Also affects ruby-saml |
| GHSA-rrqh-93c8-j966 Ruby SAML DOS vulnerability with large SAML response | Medium | Also affects ruby-saml |
| GHSA-754f-8gm6-c4r2 Ruby SAML allows a SAML authentication bypass due to namespace handling (parser differential) | Critical | Also affects ruby-saml |
| GHSA-4vc4-m8qh-g8jm Ruby SAML allows a SAML authentication bypass due to DOCTYPE handling (parser differential) | Critical | Also affects ruby-saml |
| GHSA-92rq-c8cf-prrq Ruby SAML allows remote Denial of Service (DoS) with compressed SAML responses | High | Also affects ruby-saml |
| GHSA-jw9c-mfg7-9rx2 SAML authentication bypass via Incorrect XPath selector | Critical | Also affects ruby-saml |
| GHSA-r364-2pj4-pf7f ruby-saml vulnerable to XPath injection | Critical | Also affects ruby-saml |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor