CVE-2025-61982 Code injection in OpenFOAM

High 7.8 Published Updated

Attackers can execute arbitrary code by tricking users into opening a malicious OpenFOAM simulation file, requiring immediate patching.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-61982?

CVE-2025-61982 is a high-severity code injection vulnerability in OpenCFD OpenFOAM, published on 18 Feb 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

An arbitrary code execution vulnerability exists in the Code Stream directive functionality of OpenCFD OpenFOAM 2506. A specially crafted OpenFOAM simulation file can lead to arbitrary code execution. An attacker can provide a malicious file to trigger this vulnerability.

Weakness: CWE-94

Which versions are affected by CVE-2025-61982?

How do I fix CVE-2025-61982?

No fix has been published for CVE-2025-61982 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-61982 being exploited?

There is no known exploitation of CVE-2025-61982 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2025-61982, GHSA-f7cx-4c4g-9g59, UBUNTU-CVE-2025-61982.

Is CVE-2025-61982 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free