← Back
UBUNTU-CVE-2021-4189
Vulnerability in python2.7 (UBUNTU-CVE-2021-4189)
Summary
vulnerability in python2.7 (UBUNTU-CVE-2021-4189). Risk of unauthorized operations or information disclosure. Mitigation: upgrade to `2.7.6-8ubuntu0.6+esm12` or later.
AI summary snake-internal / snake-material-v2
A vulnerability tracked as **UBUNTU-CVE-2021-4189** has been found in python2.7.
Risk of unauthorized operations or information disclosure. CVSS score: ?/10.
What to do: upgrade python2.7 to **2.7.6-8ubuntu0.6+esm12** or later.
If unsure, ask your IT team or search "python2.7 UBUNTU-CVE-2021-4189" on the vendor's site.
UBUNTU-CVE-2021-4189 (python2.7) —
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Patched: `2.7.6-8ubuntu0.6+esm12` — 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** (unclassified) exists in python2.7.
📍 Affected scope
python2.7 — .
🔥 Severity
Severity: ?. Risk of unauthorized operations or information disclosure
🔧 How to fix
Update to **2.7.6-8ubuntu0.6+esm12**.
🛡️ 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 'python2.7' .` 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 'python2.7' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で `python2.7` を grep し、稼働しているサービス・バージョンを把握する。
-
6Apply patch patch
Upgrade python2.7 to 2.7.6-8ubuntu0.6+esm12ステージング環境で 2.7.6-8ubuntu0.6+esm12 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
Ubuntu:Pro:14.04:LTS
python2.7
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-8ubuntu0.6+esm12"}]}]
Ubuntu:Pro:14.04:LTS
python3.4
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.3-1ubuntu1~14.04.7+esm12"}]}]
Ubuntu:Pro:14.04:LTS
python3.5
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"}]}]
Ubuntu:Pro:16.04:LTS
python2.7
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.12-1ubuntu0~16.04.18+esm1"}]}]
Ubuntu:Pro:16.04:LTS
python3.5
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.5.2-2ubuntu0~16.04.13+esm2"}]}]
Ubuntu:18.04:LTS
python2.7
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.17-1~18.04ubuntu1.7"}]}]
Ubuntu:18.04:LTS
python3.6
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.9-1~18.04ubuntu1.7"}]}]
Ubuntu:Pro:18.04:LTS
python3.7
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.7.5-2ubuntu1~18.04.2+esm3"}]}]
Ubuntu:Pro:18.04:LTS
python3.8
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.0-3ubuntu1~18.04.2+esm2"}]}]
Ubuntu:Pro:20.04:LTS
python2.7
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.18-1~20.04.3+esm1"}]}]
Ubuntu:Pro:22.04:LTS
python2.7
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.18-13ubuntu1.1+esm2"}]}]
References
- advisory https://ubuntu.com/security/notices/USN-5342-1
- advisory https://ubuntu.com/security/notices/USN-5342-2
- advisory https://ubuntu.com/security/notices/USN-6891-1
- advisory https://ubuntu.com/security/notices/USN-8509-1
- report https://ubuntu.com/security/CVE-2021-4189
- report https://bugs.python.org/issue43285
- report https://github.com/python/cpython/commit/0ab152c6b5d95caa2dc1a30fa96e10258b5f188e
- report https://github.com/python/cpython/commit/7dcb4baa4f0fde3aef5122a8e9f6a41853ec9335
- report https://github.com/python/cpython/commit/79373951b3eab585d42e0f0ab83718cbe1d0ee33
- report https://github.com/python/cpython/commit/4134f154ae2f621f25c5d698cc0f1748035a1b88
- report https://bugzilla.redhat.com/show_bug.cgi?id=2036020
- report https://www.cve.org/CVERecord?id=CVE-2021-4189