CVE-2021-39192: Privilege escalation: all users can access Admin-level API keys
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.5287%
CWE
Published
7/22/2021
Updated
2/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
ghost | npm | >= 4.0.0, < 4.10.0 | 4.10.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper access control in the Integration Model's permission system. The Ghost 4.10.0 release notes explicitly mention fixing the 'permissible method for Integration Model' which aligns with the described vulnerability pattern. Since the integration API endpoint was exposing admin keys to non-admin users, the permission check function permissible()
in the Integration Model implementation is the logical location for the flawed authorization logic. The combination of CWE-200 (exposure) and CWE-269 (privilege management) further supports that the vulnerability exists in the permission-checking function for API key access.