Description
The verify function in the RSA package for Python (Python-RSA) before 3.3 allows attackers to spoof signatures with a small public exponent via crafted signature padding, aka a BERserk attack.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-rsa | 3.2.3-1.1 | — |
| Debian 13 | python-rsa | 3.2.3-1.1 | — |
| Debian 12 | python-rsa | 3.2.3-1.1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | python-rsa | 3.1.2-1ubuntu0.1 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 | python-rsa | 3.1.4-11.1 | SUSE-SU-2016:0107-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
matthiasbe/secuimag3a ★ 1 · Dec 2, 2016
Exploit of the CVE-2016-1494 allowing to forge signatures of RSA keys with low exponents
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | rsa | < 3.3 | 3.3 | GHSA-8rjr-6qq5-pj9p |
Advisories 1
- SUSE-SU-2016:0107-1 Security update for python-rsa SUSE / openSUSE Security Updates · Feb 4, 2026
References
- [oss-security] 20160104 Re: CVE Request: python-rsa signature forgery mailing-list
- 79829 vdb-entry
- https://blog.filippo.io/bleichenbacher-06-signature-forgery-in-python-rsa/
- [oss-security] 20160105 CVE Request: python-rsa signature forgery mailing-list
- FEDORA-2016-70edfbbcef vendor-advisory
- openSUSE-SU-2016:0108 vendor-advisory
- https://bitbucket.org/sybren/python-rsa/pull-requests/14/security-fix-bb06-attack-in-verify-by/diff
- FEDORA-2016-c845706426 vendor-advisory