Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-5241: A vulnerability in the LightGlue model loading path of huggingface/transformers version 5.2.0 allows an attack

51
This month
CRITICAL 9.6DOWNGRADE

CVE-2026-5241 is a critical-severity flaw (CVSS 9.6) affecting transformers. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

A vulnerability in the LightGlue model loading path of huggingface/transformers version 5.2.0 allows an attacker-controlled model repository to execute arbitrary code during model initialization. The issue arises because the `trust_remote_code` parameter, intended to prevent remote code execution, is overridden by untrusted serialized configuration data in a nested code path. Specifically, when loading a LightGlue model using `AutoModel.from_pret

Why this priority

  • Critical severity
  • Public exploit reference

No fix is published yet: follow the downgrade or mitigation steps.

Risk facts

CVSS score9.6 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance0.6% (top 52%)
CISA exploited listNo
WeaknessCWE-829
Published2026-06-03
Last modified2026-08-28
Publisher (CNA): huntr.dev · Vendor: huggingface

Share: LinkedIn · X · Reddit

Last updated 2026-08-28 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

huggingface transformers DOWNGRADE
Affected: 5.2.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 5.2.0
1. Check installed version
apt-cache policy transformers || rpm -q transformers || transformers --version
2. No fixed release: DOWNGRADE to a release before 5.2.0 (Debian / Ubuntu)
apt-cache madison transformers sudo apt install transformers=<VERSION_BEFORE_5.2.0> sudo apt-mark hold transformers
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list transformers sudo dnf downgrade transformers-<VERSION_BEFORE_5.2.0> sudo dnf versionlock add transformers
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-5241?

transformers: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.

Is CVE-2026-5241 being exploited?

CVE-2026-5241 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-5241 affect?

CVE-2026-5241 affects transformers. Severity is critical (CVSS 9.6). A vulnerability in the LightGlue model loading path of huggingface/transformers version 5.2.0 allows an attacker-controlled model repository to execute arbitrary code during model initialization. The issue arises because the `trust_remote_c

How urgent is CVE-2026-5241?

Priority 51/100. Critical severity; Public exploit reference

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.