CVE-2013-1895
Improper Restriction of Excessive Authentication Attempts in py-bcrypt
Also known as GHSA-r838-q6jp-58xx, PYSEC-2020-249
Mitigation
- Upgrade py-bcrypt to 0.3 or later.
Who should check
- Projects that depend on PyPI package py-bcrypt (< 0.3)
- Anyone running py-bcrypt before 0.3
Vulnerability facts
- Affected
- py-bcrypt < 0.3
- Fixed in
- 0.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: None
- EPSS
- 2.83% chance of exploitation in 30 days (percentile 87, 2026-11-26)
- CWE
- CWE-307
- Modified
Description
The py-bcrypt module before 0.3 for Python does not properly handle concurrent memory access, which allows attackers to bypass authentication via multiple authentication requests, which trigger the password hash to be overwritten.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2013-1895. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2013-1895.md Affected: py-bcrypt < 0.3 Fixed in: 0.3 Steps: 1. Search this machine and project for py-bcrypt (PyPI), py-bcrypt: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Other
- http://www.openwall.com/lists/oss-security/2013/03/26/2
- http://lists.fedoraproject.org/pipermail/package-announce/2013-April/101387.html
- http://lists.fedoraproject.org/pipermail/package-announce/2013-April/101382.html
- http://www.securityfocus.com/bid/58702
- https://exchange.xforce.ibmcloud.com/vulnerabilities/83039
- https://github.com/grnet/python-bcrypt
- https://github.com/pypa/advisory-database/tree/main/vulns/py-bcrypt/PYSEC-2020-249.yaml
FAQ
Is CVE-2013-1895 being exploited?
There is no confirmed exploitation: CVE-2013-1895 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.83% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2013-1895?
High: CVSS 7.5 (v3.1, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2013-1895?
py-bcrypt < 0.3.
Is there a fix for CVE-2013-1895?
Yes. Fixed in 0.3. Upgrade py-bcrypt to 0.3 or later.
How do I check if I'm affected by CVE-2013-1895?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.