CVE-2013-1812: Ruby openid Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-6c8p-qphv-668v
Published
Advisory Summary

CVE-2013-1812 is a MODERATE denial of service vulnerability (General Security Weakness) affecting Ruby openid libraries in the RubyGems ecosystem. The issue involves denial of service in ruby-openid. Remediation is available by upgrading affected packages to version 2.2.2.

CVE-2013-1812 at a Glance

CVE Identifier CVE-2013-1812
GHSA Identifier GHSA-6c8p-qphv-668v
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Ruby openid
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2013-1812

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

ruby-openid fixed: 2.2.2
Upgrade ruby-openid to 2.2.2
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 ruby-openid

How to Check if You Are Affected

To determine whether your application is affected by CVE-2013-1812, inspect your project dependencies for Ruby openid:

inspect dependencies for ruby-openid

Analyze the terminal output to locate any version of Ruby openid in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.2), 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 General Security Weakness. In Ruby openid, 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

The ruby-openid gem before 2.2.2 for Ruby allows remote OpenID providers to cause a denial of service (CPU consumption) via (1) a large XRDS document or (2) an XML Entity Expansion (XEE) attack.

CVE-2013-1812 Affected Ruby openid Versions

1 component(s)
Fixed Versions:
2.2.2
Product / Package Ecosystem Affected Versions Fixed Version
ruby-openid
RubyGems
< 2.2.2
2.2.2

References

Frequently Asked Questions

What is CVE-2013-1812?
CVE-2013-1812 is a security vulnerability in Ruby openid involving Denial of service in ruby-openid under General Security Weakness.
Which Ruby openid versions are affected?
Affected versions include releases prior to 2.2.2 across affected packages: ruby-openid.
What version fixes CVE-2013-1812?
Upgrading to 2.2.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ruby-openid affected?
Yes, ruby-openid is affected in releases prior to 2.2.2. Upgrade your dependency to 2.2.2 or later.
What CWE is associated with CVE-2013-1812?
CVE-2013-1812 is classified under General Security Weakness.
How can I check RubyGems dependencies for CVE-2013-1812?
Run the dependency tree command: 'inspect dependencies for ruby-openid'. 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-6c8p-qphv-668v",
  "modified" : "2023-06-09T20:18:48Z",
  "published" : "2017-10-24T18:33:37Z",
  "aliases" : [ "CVE-2013-1812" ],
  "summary" : "Denial of service in ruby-openid",
  "details" : "The ruby-openid gem before 2.2.2 for Ruby allows remote OpenID providers to cause a denial of service (CPU consumption) via (1) a large XRDS document or (2) an XML Entity Expansion (XEE) attack.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "ruby-openid"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.2.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-1812"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openid/ruby-openid/pull/43"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openid/ruby-openid/commit/a3693cef06049563f5b4e4824f4d3211288508ed"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=918134"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-6c8p-qphv-668v"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openid/ruby-openid"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openid/ruby-openid/blob/master/CHANGELOG.md"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-openid/CVE-2013-1812.yml"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2013-November/120204.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2013-November/120361.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2013/03/03/8"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:18:51Z",
    "nvd_published_at" : "2013-12-12T18:55:10Z"
  }
}