CVE-2019-25005
HIGH 7.5CVSS 3.1Counter overflow in chacha20
An issue was discovered in the chacha20 crate before 0.2.3 for Rust. A ChaCha20 counter overflow makes it easier for attackers to determine plaintext.
- Published
- 31 Dec 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-190
- Also known as
- GHSA-j2r6-2m5c-vgh5RUSTSEC-2019-0029
- Sources
- NVDJSONOSV GHSA-j2r6-2m5c-vgh5JSONOSV RUSTSEC-2019-0029JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | RustSec | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | chacha20_project | chacha20cpe:2.3:a:chacha20_project:chacha20:*:*:*:*:*:rust:*:* |
< 0.2.3 | 0.2.3 |
| OSV | crates.io | chacha20 | < 0.2.3 | 0.2.3 |
| OSV | crates.io | chacha20 | >= 0.0.0-0, < 0.2.3 | 0.2.3 |
References
- https://rustsec.org/advisories/RUSTSEC-2019-0029.html · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2019-25005 · ADVISORY
- https://github.com/RustCrypto/stream-ciphers/pull/64 · WEB
- https://github.com/RustCrypto/stream-ciphers/tree/master/chacha20 · PACKAGE
- https://crates.io/crates/chacha20 · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 31 Dec 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Oct 2019)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)