CVE-2023-34246: Doorkeeper Doorkeeper Improper Authentication Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-7w2c-w47h-789w
CVSS 4.2
CWE-287
Published
Advisory Summary

CVE-2023-34246 is a MODERATE (CVSS 4.2) doorkeeper improper authentication vulnerability vulnerability (CWE-287: Improper Authentication) affecting Doorkeeper libraries in the RubyGems ecosystem. The issue involves doorkeeper improper authentication vulnerability. Remediation is available by upgrading affected packages to version 5.6.6.

CVE-2023-34246 at a Glance

CVE Identifier CVE-2023-34246
GHSA Identifier GHSA-7w2c-w47h-789w
Severity MODERATE
CVSS v3.1 Base Score 4.2
CWE Classification CWE-287: Improper Authentication
Affected Product Doorkeeper
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 4.2

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

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

How to Fix CVE-2023-34246

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

doorkeeper fixed: 5.6.6
Upgrade doorkeeper to 5.6.6
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 doorkeeper

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-34246, inspect your project dependencies for Doorkeeper:

inspect dependencies for doorkeeper

Analyze the terminal output to locate any version of Doorkeeper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.6.6), 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Doorkeeper, 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

OAuth RFC 8252 says https://www.rfc-editor.org/rfc/rfc8252#section-8.6 > the authorization server SHOULD NOT process authorization requests automatically without user consent or interaction, except when the identity of the client can be assured. **This includes the case where the user has previously approved an authorization request for a given client id** But Doorkeeper automatically processes authorization requests without user consent for public clients that have been previously approved. Public clients are inherently vulnerable to impersonation, their identity cannot be assured. Issue https://github.com/doorkeeper-gem/doorkeeper/issues/1589 Fix https://github.com/doorkeeper-gem/doorkeeper/pull/1646

CVE-2023-34246 Affected Doorkeeper Versions

1 component(s)
Fixed Versions:
5.6.6
Product / Package Ecosystem Affected Versions Fixed Version
doorkeeper
RubyGems
< 5.6.6
5.6.6

References

Frequently Asked Questions

What is CVE-2023-34246?
CVE-2023-34246 is a security vulnerability in Doorkeeper involving Doorkeeper Improper Authentication vulnerability under CWE-287: Improper Authentication.
Which Doorkeeper versions are affected?
Affected versions include releases prior to 5.6.6 across affected packages: doorkeeper.
What version fixes CVE-2023-34246?
Upgrading to 5.6.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is doorkeeper affected?
Yes, doorkeeper is affected in releases prior to 5.6.6. Upgrade your dependency to 5.6.6 or later.
What is the CVSS score of CVE-2023-34246?
CVE-2023-34246 has a CVSS v3.1 base score of 4.2 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2023-34246?
CVE-2023-34246 is classified under 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 can I check RubyGems dependencies for CVE-2023-34246?
Run the dependency tree command: 'inspect dependencies for doorkeeper'. 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-7w2c-w47h-789w",
  "modified" : "2024-12-09T06:30:55Z",
  "published" : "2023-06-12T19:50:34Z",
  "aliases" : [ "CVE-2023-34246" ],
  "summary" : "Doorkeeper Improper Authentication vulnerability",
  "details" : "OAuth RFC 8252 says  https://www.rfc-editor.org/rfc/rfc8252#section-8.6\n\n> the authorization server SHOULD NOT process authorization requests automatically without user consent or interaction, except when the identity of the client can be assured. **This includes the case where the user has previously approved an authorization request for a given client id**\n\nBut Doorkeeper automatically processes authorization requests without user consent for public clients that have been previously approved. Public clients are inherently vulnerable to impersonation, their identity cannot be assured.\n\nIssue https://github.com/doorkeeper-gem/doorkeeper/issues/1589\n\nFix https://github.com/doorkeeper-gem/doorkeeper/pull/1646",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "doorkeeper"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.6.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/doorkeeper-gem/doorkeeper/security/advisories/GHSA-7w2c-w47h-789w"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-34246"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/doorkeeper-gem/doorkeeper/issues/1589"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/doorkeeper-gem/doorkeeper/pull/1646"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/doorkeeper-gem/doorkeeper"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/doorkeeper-gem/doorkeeper/releases/tag/v5.6.6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/doorkeeper/CVE-2023-34246.yml"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2023/07/msg00016.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2024/12/msg00010.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.rfc-editor.org/rfc/rfc8252#section-8.6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-06-12T19:50:34Z",
    "nvd_published_at" : "2023-06-12T17:15:09Z"
  }
}