CVE-2026-40178 ajenti.plugin.core has a race conditions in 2FA

Medium 6.9 Published Updated

Attackers can bypass two-factor authentication during a brief window after login if 2FA is enabled, allowing unauthorized access to the Ajenti web panel.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-40178?

CVE-2026-40178 is a medium-severity vulnerability in ajenti, published on 10 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

ajenti.plugin.core defines all necessary core elements to allow Ajenti to run properly. Prior to 0.112, if the 2FA was activated, it was possible during a short moment after the authentication of an user to bypass its authentication. This vulnerability is fixed in 0.112.

Weakness: CWE-362, CWE-287

Which versions are affected by CVE-2026-40178?

3 open source packages ship an affected version, including ajenti-plugin-core and ajenti.plugin.core. It affects 1 product.

PackageAffectedFixed in
ajenti-plugin-core PyPIAll versions0.112
ajenti-plugin-core PyPIAll versions0.112
ajenti.plugin.core PyPIAll versions0.112

Products include Ajenti Ajenti Plugin Core.

How do I fix CVE-2026-40178?

Upgrade ajenti-plugin-core to 0.112 or later.

Is CVE-2026-40178 being exploited?

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

Sources

Also known as GHSA-8647-755q-fw9p, PYSEC-2026-2340.

Is CVE-2026-40178 in your software?

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

Check your SBOMs for free