# pip CVE-2026-133949: check every install before you pip install

URL: https://systemdesignsimple.com/pip-cve-2026-133949-check-and-fix/
Published: 2026-11-28
Category: Security
Publisher: System Design Simple (https://systemdesignsimple.com)

## Summary

pip before 26.2.2 trusts compromised eMudhra certificates. Check your version and upgrade to 26.3 now.

Every pip before 26.2.2 trusts certificates whose private keys were compromised. Check your pip version now, and if it is below 26.2.2, upgrade to 26.3 before your next install.

The flaw is [CVE-2026-133949](https://www.cve.org/CVERecord?id=CVE-2026-133949), rated CVSS 4.0 9.3 Critical, published November 20, 2026, and announced the same day by the Python Software Foundation.

## Fixed versions

Upgrade pip to 26.2.2 or later. Version 26.2.2 came out October 20, 2026 with certifi 2026.10.19; version 26.3, released November 2, 2026, vendors certifi 2026.10.23. Either one removes the bad root. Take 26.3.

Upgrade certifi itself to 2026.10.19 or later wherever it stands alone. The [certifi advisory](https://github.com/advisories/GHSA-6q48-6c7w-9gw2) says 2026.10.18 removed every emSign root and 2026.10.19 put back only the unaffected ones.

Upgrade Python too, if you can. Python 3.11.18, 3.12.16, 3.13.18, 3.14.10 and 3.15.2 reject the compromised intermediates in ssl, under [CVE-2026-115557](https://www.cve.org/CVERecord?id=CVE-2026-115557). Python 3.10 and older get no security fixes. The same bad certificates reached uv 0.13.6, virtualenv 21.14.12, pipx 1.18.7, pipenv 2026.10.2, conda 26.9.4, and the Docker official python images for the fixed releases: update them in the same pass.

## Am I affected?

Run this in every Python you use:

```
python -m pip --version
```

If the number is below 26.2.2 and your pip came from PyPI or a python.org installer, you are affected: most developer machines, most virtual environments, and most CI images.

Check the venvs too. A new venv starts with the pip bundled by ensurepip, pip 24.0 on the Python in this check. Every venv created before the fix carries the old bundle until you upgrade it.

One exception: pip from your Linux distribution uses the system certificate store instead of its own bundle. On Debian and Ubuntu, updating ca-certificates fixes it, and Red Hat says the same for its python-pip packages.

## Fix it now

The order matters: the tool you use to fetch the fix is the tool that is broken. Either upgrade Python to a fixed release first, then upgrade pip normally, or install a known good pip wheel by its hash.

The hash-pinned install for pip 26.3:

```
python -m pip install "pip @ https://files.pythonhosted.org/packages/07/25/ee8c38ae72d66b844ce8eb9711ba905dba21ca1a8a0c960057c41cd23337/pip-26.3-py3-none-any.whl#sha256=f3b60b20ffaadd4415ed7957212a38ac63fa4c5fa375bd0f4a797777940fad13"
```

The hash was verified against PyPI first: a matching hash means the file is the real release even if the download crossed a hostile network. The Foundation publishes the same form for pip 26.2.2 with sha256 fd7f4dfa8190e014013b9f08f3e973f4e4c26ffd179a204895533a7254813a70.

Then upgrade certifi with `python -m pip install --upgrade certifi`, and rebuild container images with layer caching disabled.

Then verify the bundle has no bad root:

```
grep -c "emSign ECC Root CA - G3" $(python -c "import pip._vendor.certifi; print(pip._vendor.certifi.where())")
```

The check here returned 3 before the upgrade and 0 after it.

## Why it is dangerous

Eight eMudhra intermediates had their private keys compromised, and the CA revoked them. Each key had a private value under 256, recoverable from the public certificate. Anyone holding one can issue a certificate for any hostname chaining to the emSign ECC Root CA - G3 root.

An attacker on the path between you and the package index can use that: pip asks PyPI for a package, the attacker answers with a forged certificate for pypi.org, and pip accepts it. The attacker then serves a different package, and packages run code when they install, so a swapped package runs code on your machine.

The score reflects that: CVSS 4.0 9.3, Critical, weakness CWE-295. No exploitation has been confirmed, and the CVE is not in the CISA KEV catalog as of November 27, 2026. A public proof of concept appeared on GitHub on November 24.

Worse, pip cannot be told to stop trusting its own bundle: it loads the vendored certifi store in addition to the system store, with no supported way to disable it. OS updates and --cert only add trust.

## The check

A fresh venv on Python 3.12.3 shows the flaw as it ships: its pip was 24.0, the version ensurepip bundles with this Python, and its vendored bundle listed the emSign ECC Root CA - G3 root 3 times. That bundle is the trust store pip loads.

Then the venv pip was upgraded with the hash-pinned pip 26.3 wheel, hash verified first. After the upgrade, the bundle listed the G3 root 0 times; only the unaffected emSign Root CA - G1 remains. The wheel was also opened before install: its vendor list shows certifi 2026.10.23. The fixed pip then installed certifi 2026.11.20 from PyPI over TLS with no error.

The local Python is 3.12.3, below the fixed 3.12.16, so this box has no protection from the ssl module. The Debian system pip points at the operating system store, which has zero emSign entries after the OS update. The system install is covered. The venv is not.

## If you cannot update

If you cannot upgrade pip right now, upgrade Python first. A Python from the fixed list rejects the bad intermediates in ssl, so even an old pip is safe on it.

If you cannot upgrade Python either, because you are pinned to 3.10 or older, use the hash-pinned wheel install above: it works on any supported Python and does not need a safe network. Then pin pip to 26.3 or later in CI, and rebuild every image built before the fix.

Do not fix this by editing the bundle by hand. A hand-edited bundle gets overwritten by the next pip upgrade, and --cert only adds certificates.

## Timeline

- October 20, 2026: the Foundation posts the incident thread and pip 26.2.2 ships with certifi 2026.10.19.
- November 2, 2026: pip 26.3 ships with certifi 2026.10.23.
- November 20, 2026: CVE-2026-133949 is published at CVSS 4.0 9.3.
- November 24, 2026: a public proof of concept appears on GitHub.
- November 27, 2026: the CISA KEV catalog still has no entry for this CVE, and Fedora ships pip 26.3 updates.

## Our take

The installer is the trust root for everything else you install, and this flaw sat in that trust root for years. Every pip before 26.2.2 trusted certificates whose private keys were weak enough to recover from the public certificate. The fix is one upgrade, safe on a network you do not trust, because the wheel hash does the trusting for you.

The bad part is the spread: every venv, every CI image, and every machine that ever ran pip install with an old pip needs the same upgrade. Check the venvs first.

## Honest verdict

A critical score with a one-command fix is rare. The attack is straightforward, but nobody has been seen using it, and the fix has been out since October 20. There is no reason to still run a vulnerable pip on November 28.

Nothing warns you: pip does not check its own bundle, and your operating system update does not fix upstream pip. Do the version check now, in every venv.

## FAQ

**Am I affected if I only use pip inside Docker images?**

Yes, if the image was built before the fix. Rebuild with layer caching disabled, then check the pip version inside. A rebuild that reuses a cached layer keeps the old bundle.

**Why does updating my operating system not fix pip?**

Upstream pip loads its vendored certifi store in addition to the system store, with no way to turn that off. An OS update fixes the system store, but pip keeps trusting its own bundle. Update pip itself. Distro packaged pip uses the system store, so update ca-certificates there.

**How do I upgrade pip safely if the network itself cannot be trusted?**

Install a known good wheel by its hash. The Foundation publishes pip 26.2.2 with sha256 fd7f4dfa8190e014013b9f08f3e973f4e4c26ffd179a204895533a7254813a70. This article verified pip 26.3 with sha256 f3b60b20ffaadd4415ed7957212a38ac63fa4c5fa375bd0f4a797777940fad13. A hash match means the file is the real release even if the download crossed a hostile network.

## Sources

- [CVE-2026-133949](https://www.cve.org/CVERecord?id=CVE-2026-133949)
- [certifi advisory](https://github.com/advisories/GHSA-6q48-6c7w-9gw2)
- [CVE-2026-115557](https://www.cve.org/CVERecord?id=CVE-2026-115557)
