CVE-2018-25001
Crates.io vulnerability
### Overview Version 2.5.0 of the `libpulse-binding` Rust crate, released on the 22nd of December 2018, fixed a potential use-after-free issue with property list iteration due to a lack of a lifetime constraint tying the lifetime of a `proplist::Iterator` to the `Proplist` object for which it was created. This made it possible for users, without experiencing a compiler error/warning, to destroy the `Proplist` object before the iterator, thus destroying the underlying C object the iterator works upon, before the iterator may be finished with it. This advisory is being written retrospectively, having previously only been noted in the changelog. No CVE assignment was sought. This impacts all versions of the crate before 2.5.0 back to 1.0.5. Before version 1.0.5 the function that produces the iterator was broken to the point of being useless. ### Patches Users are required to update to version 2.5.0 or newer. Versions older than 2.5.0 have been yanked from crates.io as of the 22nd of October 2020.
Affected products
Crates.io. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Crates.io runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/jnqnfe/pulse-binding-rust/security/advisories/GHSA-f56g-chqp-22m9
- github.com/jnqnfe/pulse-binding-rust/commit/9e31c82d71749619387cb9d0c9698134d05b28c9
- rustsec.org/advisories/RUSTSEC-2018-0020.html
- nvd.nist.gov/vuln/detail/CVE-2018-25001
- github.com/advisories/GHSA-f56g-chqp-22m9
- nvd.nist.gov/vuln/detail/CVE-2018-25001
- cve.org/CVERecord?id=CVE-2018-25001
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.