Vulnerabilities in pkg:gem/omniauth-weibo-oauth2

PACKAGE
Advisory Identifier: GHSA-vr22-43gj-rx3f
Advisory Summary

CVE-2019-17268 is a CRITICAL (CVSS 9.8) omniauth-weibo-oauth2 included a code-execution backdoor vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Omniauth weibo oauth2 libraries in the RubyGems ecosystem. The issue involves omniauth-weibo-oauth2 included a code-execution backdoor inserted by a third party. Remediation is available by upgrading affected packages to version 0.5.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/omniauth-weibo-oauth2

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/omniauth-weibo-oauth2. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-vr22-43gj-rx3f CVE-2019-17268 CRITICAL omniauth-weibo-oauth2 included a code-execution backdoor inserted by a third party

CVE-2019-17268 at a Glance

CVE Identifier CVE-2019-17268
GHSA Identifier GHSA-vr22-43gj-rx3f
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Omniauth weibo oauth2
Package Ecosystem RubyGems
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-2019-17268

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

omniauth-weibo-oauth2 fixed: 0.5.1
Upgrade omniauth-weibo-oauth2 to 0.5.1
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 omniauth-weibo-oauth2

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-17268, inspect your project dependencies for Omniauth weibo oauth2:

inspect dependencies for omniauth-weibo-oauth2

Analyze the terminal output to locate any version of Omniauth weibo oauth2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.1), 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Omniauth weibo oauth2, 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 omniauth-weibo-oauth2 gem 0.4.6 for Ruby, as distributed on RubyGems.org, included a code-execution backdoor inserted by a third party. Versions through 0.4.5, and 0.5.1 and later, are unaffected.

CVE-2019-17268 Affected Omniauth weibo oauth2 Versions

1 component(s)
Fixed Versions:
0.5.1
Product / Package Ecosystem Affected Versions Fixed Version
omniauth-weibo-oauth2
RubyGems
≥ 0.4.6
< 0.5.1
0.5.1

References

Frequently Asked Questions

What is CVE-2019-17268?
CVE-2019-17268 is a security vulnerability in Omniauth weibo oauth2 involving omniauth-weibo-oauth2 included a code-execution backdoor inserted by a third party under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Omniauth weibo oauth2 versions are affected?
Affected versions include releases prior to 0.5.1 across affected packages: omniauth-weibo-oauth2.
What version fixes CVE-2019-17268?
Upgrading to 0.5.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is omniauth-weibo-oauth2 affected?
Yes, omniauth-weibo-oauth2 is affected in releases prior to 0.5.1. Upgrade your dependency to 0.5.1 or later.
What is the CVSS score of CVE-2019-17268?
CVE-2019-17268 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-2019-17268?
CVE-2019-17268 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check RubyGems dependencies for CVE-2019-17268?
Run the dependency tree command: 'inspect dependencies for omniauth-weibo-oauth2'. 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-vr22-43gj-rx3f",
  "modified" : "2023-01-27T00:19:36Z",
  "published" : "2022-05-24T17:08:14Z",
  "aliases" : [ "CVE-2019-17268" ],
  "summary" : "omniauth-weibo-oauth2 included a code-execution backdoor inserted by a third party",
  "details" : "The omniauth-weibo-oauth2 gem 0.4.6 for Ruby, as distributed on RubyGems.org, included a code-execution backdoor inserted by a third party. Versions through 0.4.5, and 0.5.1 and later, are unaffected.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "omniauth-weibo-oauth2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.4.6"
      }, {
        "fixed" : "0.5.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-17268"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/beenhero/omniauth-weibo-oauth2/issues/36"
  }, {
    "type" : "WEB",
    "url" : "https://diff.coditsu.io/diffs/09a05c37-1b34-49e1-ac94-d4dda40d1ad1#d2h-971595"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/beenhero/omniauth-weibo-oauth2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-weibo-oauth2/CVE-2019-17268.yml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-27T00:19:36Z",
    "nvd_published_at" : "2020-02-07T14:15:00Z"
  }
}