# CVE-2021-45931: HarfBuzz 2.9.0 has an out-of-bounds write in hbbitsetinvertiblet::set (called from hbsparsesett<hbbitsetinvertiblet::set and hbsetcopy).

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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.84%, higher than 79% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-12-31T23:58:49.000Z
- Modified: 2026-06-17T04:14:16.243Z
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

HarfBuzz 2.9.0 has an out-of-bounds write in hb_bit_set_invertible_t::set (called from hb_sparseset_t<hb_bit_set_invertible_t>::set and hb_set_copy).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- harfbuzz_project harfbuzz: 2.9.0
- fedoraproject fedora: 34; 35

## Every score

- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/google/oss-fuzz-vulns/blob/main/vulns/harfbuzz/OSV-2021-1159.yaml> (exploit, third-party-advisory)
- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=37425> (exploit, issue-tracking, third-party-advisory)
- <https://github.com/harfbuzz/harfbuzz/commit/d3e09bf4654fe5478b6dbf2b26ebab6271317d81> (patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5A7TCR2MY46YK3NHQZB3SLESUH354IEA/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DI6247WOAKB46CZZ6SCDSJVWWCW3GMZH/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4EAIZKL4O67FN2CWJYHYKZEMNYWNWO3D/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202209-11> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2021-45931](https://www.cve.org/CVERecord?id=CVE-2021-45931), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-45931](https://nvd.nist.gov/vuln/detail/CVE-2021-45931), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-45931 · Whole record: https://cve.day/CVE-2021-45931.json · Rebuilt by cve.day 2026-11-25T22:58:06.319Z
