CVE-2025-46833 Programs/P73_SimplePythonEncryption.py has weak cryptographic key

Medium 4.6 Published Updated

Weak RSA key size in a Python encryption example allows attackers to decrypt data via brute force, compromising confidentiality.

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

What is CVE-2025-46833?

CVE-2025-46833 is a medium-severity vulnerability in ShashikantSingh09 python-progrrames, published on 8 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Programs/P73_SimplePythonEncryption.py illustrates a simple Python encryption example using the RSA Algorithm. In versions prior to commit 6ce60b1, an attacker may be able to decrypt the data using brute force attacks and because of this the whole application can be impacted. This issue has been patched in commit 6ce60b1. A workaround involves increasing the key size, for RSA or DSA this is at least 2048 bits, for ECC this is at least 256 bits.

Weakness: CWE-326

Which versions are affected by CVE-2025-46833?

How do I fix CVE-2025-46833?

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

Is CVE-2025-46833 being exploited?

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

Sources

Also known as GHSA-5h26-2c6g-4ch4.

Is CVE-2025-46833 in your software?

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

Check your SBOMs for free