CVE-2021-38299: Web auth/webauthn framework Improper Access Control Vulnerability
CRITICALCVE-2021-38299 is a CRITICAL (CVSS 9.8) improper access control vulnerability (CWE-863: Incorrect Authorization) affecting Web auth/webauthn framework libraries in the Packagist ecosystem. The issue involves improper access control in webauthn framework. Remediation is available by upgrading affected packages to version 3.3.4.
CVE-2021-38299 at a Glance
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).
How to Fix CVE-2021-38299
To remediate this vulnerability, upgrade all affected Web auth/webauthn framework 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 web-auth/webauthn-framework to 3.3.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for web-auth/webauthn-framework
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-38299, inspect your project dependencies for Web auth/webauthn framework:
inspect dependencies for web-auth/webauthn-framework
Analyze the terminal output to locate any version of Web auth/webauthn framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.3.4), 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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Web auth/webauthn framework, 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-2021-38299 Affected Web auth/webauthn framework Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
web-auth/webauthn-framework
|
Packagist |
≥ 3.3.0
< 3.3.4
|
3.3.4
|
References
Frequently Asked Questions
What is CVE-2021-38299?
Which Web auth/webauthn framework versions are affected?
What version fixes CVE-2021-38299?
Is web-auth/webauthn-framework affected?
What is the CVSS score of CVE-2021-38299?
What CWE is associated with CVE-2021-38299?
How can I check Packagist dependencies for CVE-2021-38299?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6whf-q6p5-84wg",
"modified" : "2021-10-06T13:23:34Z",
"published" : "2021-09-29T17:16:07Z",
"aliases" : [ "CVE-2021-38299" ],
"summary" : "Improper Access Control in Webauthn Framework",
"details" : "Webauthn Framework 3.3.x before 3.3.4 has Incorrect Access Control. An attacker that controls a user's system is able to login to a vulnerable service using an attached FIDO2 authenticator without passing a check of the user presence.",
"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" : "Packagist",
"name" : "web-auth/webauthn-framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.3.0"
}, {
"fixed" : "3.3.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-38299"
}, {
"type" : "WEB",
"url" : "https://github.com/web-auth/webauthn-framework/commit/572e239c5702667ca52487faf861abc768a46308"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/web-auth/webauthn-framework"
}, {
"type" : "WEB",
"url" : "https://github.com/web-auth/webauthn-framework/releases"
}, {
"type" : "WEB",
"url" : "https://github.com/web-auth/webauthn-framework/releases/tag/v3.3.4"
}, {
"type" : "WEB",
"url" : "https://www.fzi.de/en/news/news/detail-en/artikel/fsa-2021-1-fehlende-ueberpruefung-von-user-presence-in-webauthn-framework"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2021-09-28T21:04:00Z",
"nvd_published_at" : "2021-09-27T06:15:00Z"
}
}