CVE-2023-34246: Doorkeeper Doorkeeper Improper Authentication Vulnerability Vulnerability
MODERATECVE-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
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).
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.
Upgrade doorkeeper to 5.6.6
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
CVE-2023-34246 Affected Doorkeeper Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
doorkeeper
|
RubyGems |
< 5.6.6
|
5.6.6
|
References
Frequently Asked Questions
What is CVE-2023-34246?
Which Doorkeeper versions are affected?
What version fixes CVE-2023-34246?
Is doorkeeper affected?
What is the CVSS score of CVE-2023-34246?
What CWE is associated with CVE-2023-34246?
How can I check RubyGems dependencies for CVE-2023-34246?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}