← Back
CVE-2021-38155
Vulnerability in keystone (CVE-2021-38155)
Summary
vulnerability in keystone (CVE-2021-38155). Confidential information can be exposed externally. Mitigation: upgrade to `19.0.1` or later.
AI summary snake-internal / snake-material-v2
A vulnerability tracked as **CVE-2021-38155** has been found in keystone.
Confidential information can be exposed externally. CVSS score: ?/10.
What to do: upgrade keystone to **19.0.1** or later.
If unsure, ask your IT team or search "keystone CVE-2021-38155" on the vendor's site.
CVE-2021-38155 (keystone) — CWE-307 /
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Patched: `19.0.1` — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
❓ What is the problem
**A vulnerability** (CWE-307) exists in keystone.
📍 Affected scope
keystone — .
🔥 Severity
Severity: ?. Confidential information can be exposed externally
🔧 How to fix
Update to **19.0.1**.
🛡️ Workaround
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
🔍 Detection
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run `grep -r 'keystone' .` against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response Actions (7 steps)
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'keystone' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で `keystone` を grep し、稼働しているサービス・バージョンを把握する。
-
6Apply patch patch
Upgrade keystone to 19.0.1ステージング環境で 19.0.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
PyPI
keystone
[{"type":"ECOSYSTEM","events":[{"introduced":"19.0"},{"fixed":"19.0.1"}]}]
References
- advisory https://nvd.nist.gov/vuln/detail/CVE-2021-38155
- advisory https://github.com/advisories/GHSA-4225-97pr-rr52
- package https://github.com/openstack/keystone
- package https://pypi.org/project/keystone
- patch https://launchpad.net/bugs/1688137
- patch https://security.openstack.org/ossa/OSSA-2021-003.html
- patch http://www.openwall.com/lists/oss-security/2021/08/10/5
- web https://github.com/openstack/keystone/commit/1b573ae7d1c20e0ebfbde79bbe7538a09589c75d
- web https://github.com/openstack/keystone/commit/8ab4eb27be4c13c9bab2b3ea700f00a190521bf8
- web https://github.com/openstack/keystone/commit/ac2631ae33445877094cdae796fbcdce8833a626
- web https://lists.debian.org/debian-lts-announce/2024/01/msg00007.html