CVE-2026-74997 Command injection in Webmail

High 8.8 Published Updated

Attackers can execute arbitrary code on Roundcube Webmail servers using the markasjunk plugin's cmd_learn driver via crafted inputs.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-74997?

CVE-2026-74997 is a high-severity command injection vulnerability in Roundcube Webmail, published on 17 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

In Roundcube Webmail before 1.6.18 and 1.7.x before 1.7.3, the cmd_learn driver of the markasjunk plugin is subject to remote code execution via crafted placeholder replacement values. This issue only affects Roundcube instances using the markasjunk plugin with its cmd_learn driver.

Weakness: CWE-78

Which versions are affected by CVE-2026-74997?

It affects 1 product.

Products include Roundcube Webmail.

How do I fix CVE-2026-74997?

Upgrade to a fixed version.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-74997 being exploited?

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

All Roundcube Webmail vulnerabilities

Sources

Also known as DEBIAN-CVE-2026-74997, GHSA-q5rh-mmp4-ppgq, UBUNTU-CVE-2026-74997.

Is CVE-2026-74997 in your software?

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

Check your SBOMs for free