Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. chacha20
  4. ›
  5. CVE-2019-25005

CVE-2019-25005: Counter overflow in chacha20

August 25, 2021

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.

References

  • github.com/RustCrypto/stream-ciphers/pull/64
  • github.com/RustCrypto/stream-ciphers/tree/master/chacha20
  • github.com/advisories/GHSA-j2r6-2m5c-vgh5
  • nvd.nist.gov/vuln/detail/CVE-2019-25005
  • rustsec.org/advisories/RUSTSEC-2019-0029.html

Code Behaviors & Features

Detect and mitigate CVE-2019-25005 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.2.3

Fixed versions

  • 0.2.3

Solution

Upgrade to version 0.2.3 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-190: Integer Overflow or Wraparound

Source file

cargo/chacha20/CVE-2019-25005.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:24 +0000.