CVE-2019-25005 json
Counter overflow in chacha20
published 2019-10-22 7 y ago modified 2026-06-17 4 mo ago also GHSA-j2r6-2m5c-vgh5 , RUSTSEC-2019-0029 , EUVD-2021-1765
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 71%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io chacha20 0.2.3
- chacha20_project chacha20 0.2.3
- github.com/RustCrypto/stream-ciphers#64 pull request
Exploit prediction
1.32% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | chacha20 | <0.2.3 >=0.0.0-0, <0.2.3 |
0.2.3 |
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
References
-
github.com
/RustCrypto/stream-ciphers/pull/64
web
-
rustsec.org
/advisories/RUSTSEC-2019-0029.html
web, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2019-25005
advisory
-
github.com
/RustCrypto/stream-ciphers/tree/master/chacha20
package
-
crates.io
/crates/chacha20
package
Sources
- CVE List CVE-2019-25005
- GitHub Advisory GHSA-j2r6-2m5c-vgh5
- NVD CVE-2019-25005
- OSV RUSTSEC-2019-0029
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.