# CVE-2019-16137: Wrong memory orderings violates mutual exclusion in spin

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.42%, higher than 73% of CVEs (2026-12-01)
- Published: 2019-08-27T12:00:00.000Z
- Modified: 2026-06-17T02:21:44.503Z
- Also known as: GHSA-hv7x-f3pv-gpwr, RUSTSEC-2019-0013
- Weaknesses: CWE-662
- Assigned by: mitre

## Description

An issue was discovered in the spin crate before 0.5.2 for Rust, when RwLock is used. Because memory ordering is mishandled, two writers can acquire the lock at the same time, violating mutual exclusion.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- spin (crates.io): before 0.5.2; from 0.0.0-0 before 0.5.2
- spin-rs_project spin-rs: before 0.5.2

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- RustSec Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 7.8 High `AV:N/AC:L/Au:N/C:N/I:N/A:C`

## References

- <https://rustsec.org/advisories/RUSTSEC-2019-0013.html> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-16137> (advisory)
- <https://github.com/mvdnes/spin-rs/issues/65> (report, web)
- <https://github.com/mvdnes/spin-rs/pull/66> (web)
- <https://github.com/mvdnes/spin-rs> (package)
- <https://crates.io/crates/spin> (package)

## Sources

- CVE List: [CVE-2019-16137](https://www.cve.org/CVERecord?id=CVE-2019-16137), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-hv7x-f3pv-gpwr](https://github.com/advisories/GHSA-hv7x-f3pv-gpwr), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2019-0013](https://rustsec.org/advisories/RUSTSEC-2019-0013.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2019-16137](https://nvd.nist.gov/vuln/detail/CVE-2019-16137), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-16137 · Whole record: https://cve.day/CVE-2019-16137.json · Rebuilt by cve.day 2026-11-25T22:57:46.863Z
