---
id: CVE-2026-76843
title: >-
  The official Flair wheels for 0.15.0 and 0.15.1 still contain
  flair/models/clustering.py, whose ClusteringModel.load static method returns
  pickle.loads(joblib.load(str(model_file))) and so executes arbitrary Python
  while loading a model …
summary: >-
  The official Flair wheels for 0.15.0 and 0.15.1 still contain
  flair/models/clustering.py, whose ClusteringModel.load static method returns
  pickle.loads(joblib.load(str(model_file))) and so executes arbitrary Python
  while loading a model …
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-502
published: '2026-08-24'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T20:43:32.537'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-76843'
references:
  - url: 'https://github.com/flairNLP/flair'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/flairNLP/flair/blob/v0.14.0/flair/models/clustering.py'
    label: disclosure@vulncheck.com
  - url: 'https://pypi.org/project/flair/0.15.1/'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/flair-and-deserialization-of-untrusted-data-via-clusteringmodel-load
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.0038
epssPercentile: 0.29144
ingestedAt: '2026-09-24T20:51:40.221Z'
---

## Overview

The official Flair wheels for 0.15.0 and 0.15.1 still contain flair/models/clustering.py, whose ClusteringModel.load static method returns pickle.loads(joblib.load(str(model_file))) and so executes arbitrary Python while loading a model file. Loading a model supplied by an attacker therefore runs that attacker's code with the privileges of the loading process. This is the same sink and the same file as CVE-2024-10073, which records 0.15.0 as the fixed version on the basis that clustering support was dropped in that release; the module was removed from the documented API but remains present in the distributed artifact and reachable by importing flair.models.clustering directly, so the earlier record's fixed version does not hold for the shipped package.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
