CVE-2019-25002 json
Incorrect Comparison in sodiumoxide
published 7y ago modified 4mo ago also GHSA-wrvc-72w7-xpmj , RUSTSEC-2019-0026 , EUVD-2021-1922
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 74%
- public exploits
- 0
- none known
Summary
An issue was discovered in the sodiumoxide crate before 0.2.5 for Rust. generichash::Digest::eq compares itself to itself and thus has degenerate security properties.
Patch / fix
- crates.io sodiumoxide 0.2.5
- sodiumoxide_project sodiumoxide 0.2.5
Is CVE-2019-25002 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
1.50% chance of exploitation in the next 30 days, higher than 74% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | sodiumoxide | >=0.2.0, <0.2.5 >=0.0.0-0, <0.2.5 |
0.2.5 |
Classification
- Weakness
-
- CWE-697 Incorrect Comparison
References
-
rustsec.org
/advisories/RUSTSEC-2019-0026.html
web, patch, third-party-advisory, advisory
-
github.com
/sodiumoxide/sodiumoxide/pull/381
web
-
github.com
/sodiumoxide/sodiumoxide/pull/381/commits/fae052b834b097ced9a89a8fff8466e18f383070
web
-
github.com
/sodiumoxide/sodiumoxide/commit/38490723927f230498adf795153e6cd3cb08b6a8
web
-
nvd.nist.gov
/vuln/detail/CVE-2019-25002
advisory
-
github.com
/sodiumoxide/sodiumoxide
package
-
crates.io
/crates/sodiumoxide
package
Sources
- CVE List CVE-2019-25002
- GitHub Advisory GHSA-wrvc-72w7-xpmj
- NVD CVE-2019-25002
- OSV RUSTSEC-2019-0026
Fencer Intel 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.