CVE-2021-45931

Source
https://cve.org/CVERecord?id=CVE-2021-45931
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-45931.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-45931
Published
2022-01-01T01:15:08.477Z
Modified
2026-07-09T01:24:52.986268Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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

Database specific
{
    "unresolved_ranges": [
        {
            "cpes": [
                "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*",
                "cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
                {
                    "introduced": "34"
                },
                {
                    "last_affected": "34"
                },
                {
                    "introduced": "35"
                },
                {
                    "last_affected": "35"
                }
            ],
            "source": "CPE_STRING",
            "vendor_product": "fedoraproject:fedora"
        }
    ]
}
References

Affected packages

Git / github.com/harfbuzz/harfbuzz

Affected ranges

Type
GIT
Repo
https://github.com/harfbuzz/harfbuzz
Events
Database specific
{
    "cpe": "cpe:2.3:a:harfbuzz_project:harfbuzz:2.9.0:*:*:*:*:*:*:*",
    "source": [
        "CPE_STRING",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "2.9.0"
        },
        {
            "last_affected": "2.9.0"
        }
    ]
}

Affected versions

2.*
2.9.0

Database specific

vanir_signatures
[
    {
        "source": "https://github.com/harfbuzz/harfbuzz/commit/d3e09bf4654fe5478b6dbf2b26ebab6271317d81",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "85018669528420963836978886403659123607",
                "59887564610422362824948972169725766473",
                "186660007974329403468837277830331739917",
                "169917309244844406793369554228534698615"
            ]
        },
        "id": "CVE-2021-45931-018c82e2",
        "signature_type": "Line",
        "target": {
            "file": "src/hb-map.hh"
        }
    },
    {
        "source": "https://github.com/harfbuzz/harfbuzz/commit/d3e09bf4654fe5478b6dbf2b26ebab6271317d81",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "function_hash": "35470908472924385528404091208136193110",
            "length": 136.0
        },
        "id": "CVE-2021-45931-0f8acd83",
        "signature_type": "Function",
        "target": {
            "function": "hb_set_union",
            "file": "src/hb-set.cc"
        }
    },
    {
        "source": "https://github.com/harfbuzz/harfbuzz/commit/d3e09bf4654fe5478b6dbf2b26ebab6271317d81",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "165071198434253930090404386820677255236",
                "185133940534448239847005344943263851625",
                "197124313424674693185384079340915182882",
                "228808033583087136495781190718056784071",
                "269918600322272946872024684847346450901",
                "324495716135076229851205587292349403870",
                "9117409492294527691163843376368039862",
                "278656616974813109506249556719928370557",
                "41540758255048116926983903808066591620",
                "106311463147606754777780275442174055694",
                "200814310395352189707972757754901586786",
                "170331328260596768485968882146228102479",
                "12202816363880319209629764054083168460",
                "107725445839684897835304147106352780846",
                "61578416923450974295914812398953067203",
                "76591390621405219773698082160684266840",
                "107213952879693977652493825761729896887",
                "202752765281050035084742682895210409826",
                "243878563580539075155441139638264762474",
                "257625764314658385515743469996837964231",
                "177325711830258274606849357100576517427",
                "204135073866347396462005657915788956781",
                "116265615201483432805695486232819922445",
                "176324584142773727311794363225256402617",
                "257338784566682172991800921540097588621",
                "72030018918722702172633189846794713104",
                "187592572303803045630511565698830908096"
            ]
        },
        "id": "CVE-2021-45931-2e4db741",
        "signature_type": "Line",
        "target": {
            "file": "src/hb-bit-set-invertible.hh"
        }
    },
    {
        "source": "https://github.com/harfbuzz/harfbuzz/commit/d3e09bf4654fe5478b6dbf2b26ebab6271317d81",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "9721183790284707610748499451238972798",
                "137266962089000458058289862992356520162",
                "182367515460037135200343924704256379187",
                "335272900280036902793934539210626215430",
                "85799099897464120552808724493855790017"
            ]
        },
        "id": "CVE-2021-45931-311d4164",
        "signature_type": "Line",
        "target": {
            "file": "src/hb-map.cc"
        }
    },
    {
        "source": "https://github.com/harfbuzz/harfbuzz/commit/d3e09bf4654fe5478b6dbf2b26ebab6271317d81",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "function_hash": "307447235125656645274258193414585994186",
            "length": 106.0
        },
        "id": "CVE-2021-45931-317f32e1",
        "signature_type": "Function",
        "target": {
            "function": "hb_set_invert",
            "file": "src/hb-set.cc"
        }
    },
    {
        "source": "https://github.com/harfbuzz/harfbuzz/commit/d3e09bf4654fe5478b6dbf2b26ebab6271317d81",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "function_hash": "5776196326638460118768258730043337417",
            "length": 105.0
        },
        "id": "CVE-2021-45931-6c46a98d",
        "signature_type": "Function",
        "target": {
            "function": "hb_set_clear",
            "file": "src/hb-set.cc"
        }
    },
    {
        "source": "https://github.com/harfbuzz/harfbuzz/commit/d3e09bf4654fe5478b6dbf2b26ebab6271317d81",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "function_hash": "42431797617348060337959437651675279582",
            "length": 150.0
        },
        "id": "CVE-2021-45931-a1d35181",
        "signature_type": "Function",
        "target": {
            "function": "hb_set_symmetric_difference",
            "file": "src/hb-set.cc"
        }
    },
    {
        "source": "https://github.com/harfbuzz/harfbuzz/commit/d3e09bf4654fe5478b6dbf2b26ebab6271317d81",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "function_hash": "267121229378950059438692456834877513886",
            "length": 135.0
        },
        "id": "CVE-2021-45931-b68f4e7d",
        "signature_type": "Function",
        "target": {
            "function": "hb_set_set",
            "file": "src/hb-set.cc"
        }
    },
    {
        "source": "https://github.com/harfbuzz/harfbuzz/commit/d3e09bf4654fe5478b6dbf2b26ebab6271317d81",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "79740781061440917866734266760517006302",
                "191368786913489922796040357527306506308",
                "85680169149874243912470432109545169813",
                "233842029584899393935252924764073969425",
                "302665168988820283295833024018661968694",
                "96554876975221644026274735902705697406",
                "239924438145885551572013382122935261489",
                "129398004565424147393584673145417085632",
                "259618859347839296765645756335631620918",
                "81970653593079512149846726569572480432",
                "303723527580755202220448848312679792247",
                "239924438145885551572013382122935261489",
                "285659232048792183088941953900427349342",
                "259995267213335016308550557074818875645",
                "117343010407821484827140789079400259622",
                "236698036097444436737759458169640220520",
                "239924438145885551572013382122935261489",
                "37982229190295580952032854589863142773",
                "275635260974461676694902185551984759192",
                "201645642895151514977897147663876898430",
                "180786712328326257688883627174226424149",
                "239924438145885551572013382122935261489",
                "16475138049504533266470452948000421792",
                "20722358526301374155112076379974702725",
                "314984757893159688567588314174109352844",
                "175628652301445568525330885725527997232",
                "239924438145885551572013382122935261489",
                "102304239721649518168630101389645393404",
                "51721275849711363690566893254723287348",
                "141588262384531462299948741712517302167",
                "192037245755324841265334333238092327308",
                "156506492366418313157667481147767763569",
                "215111724466935267223978401103226233360",
                "206589497635194594953098052774122776526",
                "303579380929195496987369893373069463708"
            ]
        },
        "id": "CVE-2021-45931-c0899d7e",
        "signature_type": "Line",
        "target": {
            "file": "src/hb-set.cc"
        }
    },
    {
        "source": "https://github.com/harfbuzz/harfbuzz/commit/d3e09bf4654fe5478b6dbf2b26ebab6271317d81",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "function_hash": "157751333171397146957898032984267381944",
            "length": 112.0
        },
        "id": "CVE-2021-45931-cec91487",
        "signature_type": "Function",
        "target": {
            "function": "hb_map_clear",
            "file": "src/hb-map.cc"
        }
    },
    {
        "source": "https://github.com/harfbuzz/harfbuzz/commit/d3e09bf4654fe5478b6dbf2b26ebab6271317d81",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "function_hash": "285659907934876876889559731130612135066",
            "length": 139.0
        },
        "id": "CVE-2021-45931-dda6c0c7",
        "signature_type": "Function",
        "target": {
            "function": "hb_set_intersect",
            "file": "src/hb-set.cc"
        }
    },
    {
        "source": "https://github.com/harfbuzz/harfbuzz/commit/d3e09bf4654fe5478b6dbf2b26ebab6271317d81",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "function_hash": "53100005427855769146829322665671709908",
            "length": 138.0
        },
        "id": "CVE-2021-45931-ead50e36",
        "signature_type": "Function",
        "target": {
            "function": "hb_set_subtract",
            "file": "src/hb-set.cc"
        }
    }
]
vanir_signatures_modified
"2026-07-09T01:24:52Z"
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-45931.json"