← Back
CVE-2026-4786
high
CVSS 7.1
Command Injection in libpython (CVE-2026-4786)
Summary
command injection in libpython (CVE-2026-4786). Confidential information can be exposed externally. Mitigation: upgrade to `3.14.5` or later.
AI summary snake-internal / snake-material-v2
A vulnerability tracked as **CVE-2026-4786** has been found in libpython.
Confidential information can be exposed externally. CVSS score: 7.1/10.
What to do: upgrade libpython to **3.14.5** or later.
If unsure, ask your IT team or search "libpython CVE-2026-4786" on the vendor's site.
CVE-2026-4786 (libpython) — CWE-77 / CVSS v3 7.1
Attack vector: remote (network-reachable) / unauthenticated
Patched: `3.14.5` — 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-77) exists in libpython.
📍 Affected scope
libpython — .
🔥 Severity
Severity: High (CVSS 7.1/10). Confidential information can be exposed externally
🔧 How to fix
Update to **3.14.5**.
🛡️ 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 'libpython' .` 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 'libpython' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で `libpython` を grep し、稼働しているサービス・バージョンを把握する。
-
6Apply patch patch
Upgrade libpython to 3.14.5ステージング環境で 3.14.5 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
Bitnami
libpython
[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.14.5"}]}]
Bitnami
python-min
[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.14.5"}]}]
Bitnami
python
[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.14.5"}]}]
References
- web https://github.com/python/cpython/commit/c5767a72838a8dda9d6dc5d3558075b055c56bca
- web https://github.com/python/cpython/commit/d22922c8a7958353689dc4763dd72da2dea03fff
- web https://github.com/python/cpython/commit/f4654824ae0850ac87227fb270f9057477946769
- web https://github.com/python/cpython/issues/148169
- web https://github.com/python/cpython/pull/148170
- web [email protected]
- web https://nvd.nist.gov/vuln/detail/CVE-2026-4786
- web https://github.com/python/cpython/commit/28b4ad38067bbdad34edfcd03ad2de5f06387e53
- web https://github.com/python/cpython/commit/d6d68494be70bdbda20f89f83801ba52ec37daa4
- web https://mail.python.org/archives/list/[email protected]/thread/JQDUNJVB4AQNTJECSUKOBDU3XCJIPSE5
- web https://access.redhat.com/errata/RHSA-2026:30078
- web https://access.redhat.com/errata/RHSA-2026:28581
- web https://access.redhat.com/errata/RHSA-2026:28247
- web https://access.redhat.com/errata/RHSA-2026:26187
- web https://access.redhat.com/errata/RHSA-2026:25096
- web https://access.redhat.com/errata/RHSA-2026:22144
- web https://access.redhat.com/errata/RHSA-2026:21682
- web https://access.redhat.com/errata/RHSA-2026:21275
- web https://access.redhat.com/errata/RHSA-2026:19590
- web https://access.redhat.com/errata/RHSA-2026:19589
- web https://access.redhat.com/errata/RHSA-2026:10117
- web https://access.redhat.com/errata/RHSA-2026:30087
- web https://access.redhat.com/errata/RHSA-2026:30088
- web https://access.redhat.com/errata/RHSA-2026:30089
- web https://access.redhat.com/errata/RHSA-2026:8822
- web https://access.redhat.com/errata/RHSA-2026:8824
- web https://access.redhat.com/errata/RHSA-2026:9228
- web https://access.redhat.com/security/cve/CVE-2026-4786
- web https://bugzilla.redhat.com/show_bug.cgi?id=2458049
- web https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4786.json
- web https://access.redhat.com/errata/RHSA-2026:10140
- web https://access.redhat.com/errata/RHSA-2026:10141
- web https://access.redhat.com/errata/RHSA-2026:10711
- web https://access.redhat.com/errata/RHSA-2026:10745
- web https://access.redhat.com/errata/RHSA-2026:10774
- web https://access.redhat.com/errata/RHSA-2026:10949
- web https://access.redhat.com/errata/RHSA-2026:10950
- web https://access.redhat.com/errata/RHSA-2026:11062
- web https://access.redhat.com/errata/RHSA-2026:11077
- web https://access.redhat.com/errata/RHSA-2026:11768
- web https://access.redhat.com/errata/RHSA-2026:13692
- web https://access.redhat.com/errata/RHSA-2026:13812
- web https://access.redhat.com/errata/RHSA-2026:14652
- web https://access.redhat.com/errata/RHSA-2026:14653
- web https://access.redhat.com/errata/RHSA-2026:14656
- web https://access.redhat.com/errata/RHSA-2026:16699
- web https://access.redhat.com/errata/RHSA-2026:17525
- web https://access.redhat.com/errata/RHSA-2026:17619
- web https://access.redhat.com/errata/RHSA-2026:19019
- web https://access.redhat.com/errata/RHSA-2026:19064
- web https://access.redhat.com/errata/RHSA-2026:19175
- web https://access.redhat.com/errata/RHSA-2026:19176
- web https://access.redhat.com/errata/RHSA-2026:19177
- web https://access.redhat.com/errata/RHSA-2026:19216
- web https://access.redhat.com/errata/RHSA-2026:19549
- web https://access.redhat.com/errata/RHSA-2026:19570
- web https://access.redhat.com/errata/RHSA-2026:19571
- web https://access.redhat.com/errata/RHSA-2026:19576
- web https://github.com/advisories/GHSA-cccx-m78h-m3xw
- web https://access.redhat.com/errata/RHSA-2026:35838