# CVE-2018-25027: RUSTSEC-2018-0021 - Use-after-free with objects returned by `Stream`'s `get_format_info` and `get_context` methods

Source: https://junglewise.ai/threats/cve-2018-25027-use-after-free-in-libpulse-binding  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2018-06-15  
License: CC BY 4.0 with a link back

CVE-2018-25027 · Severity: low · CVSS 3.1 · Published 2018-06-15

Use-after-free with objects returned by `Stream`'s `get_format_info` and `get_context` methods

Technologies: [libpulse-binding (crates.io)](https://junglewise.ai/threats/technologies/libpulse-binding). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is CVE-2018-25027 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2018-25027 being exploited in the wild.

**How severe is CVE-2018-25027?** Low severity, with a CVSS score of 3.1, published 15 June 2018.

**Which products and versions are affected?** libpulse-binding (crates.io) SEMVER:introduced=0,fixed=1.2.1, SEMVER:introduced=0.0.0-0,fixed=1.2.1.

**Is there a fix for CVE-2018-25027?** Yes. libpulse-binding (crates.io): upgrade to 1.2.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2018-25027?** Check whether you run libpulse-binding (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- libpulse-binding (crates.io): upgrade to 1.2.1 or later

  ```sh
  cargo update -p libpulse-binding
  ```


## Affected products

- libpulse-binding (crates.io) SEMVER:introduced=0,fixed=1.2.1, SEMVER:introduced=0.0.0-0,fixed=1.2.1

## Identifiers

- CVE-2018-25027
- CVE-2018-25028
- GHSA-ghpq-vjxw-ch5w
- GHSA-hxjf-h2mh-r6hj
- GHSA-jqpv-jm4m-86j9
- RUSTSEC-2018-0021

## Related threats

- [RUSTSEC-2020-0055 - Please see RUSTSEC-2018-0020](https://junglewise.ai/threats/rustsec-2020-0055-please-see-rustsec-2018-0020-28ff3d5b)
- [RUSTSEC-2019-0038 - Fix for UB in failure to catch panics crossing FFI boundaries](https://junglewise.ai/threats/cve-2019-25055-duplicate-advisory-uncaught-exception-in-libpulse-binding)
- [RUSTSEC-2018-0020 - Possible use-after-free with `proplist::Iterator`](https://junglewise.ai/threats/cve-2018-25001-duplicate-advisory-use-after-free-in-libpulse-binding)
