CVE-2025-46833
JSON

4.6medium

Programs/P73_SimplePythonEncryption.py has weak cryptographic key

Severity
4.6medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.27% (higher than 12% of CVEs)
Published
Last changed
Assigned by
GitHub_M

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.

Affected

Product or packageVersionsReported by
ShashikantSingh09 python-progrrames< 6ce60b1CVE List

Classification

CWE-326

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Programs/P73_SimplePythonEncryption.py ilustra un ejemplo sencillo de cifrado en Python con el algoritmo RSA. En versiones anteriores a el commit 6ce60b1, un atacante podría descifrar los datos mediante ataques de fuerza bruta, lo que afectaría a toda la aplicación. Este problema se ha corregido en el commit 6ce60b1. Un workaround consiste en aumentar el tamaño de la clave: para RSA o DSA, este debe ser de al menos 2048 bits y para ECC, de al menos 256 bits.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-46833 changed 2025-05-08CVE Terms of Use
NVDCVE-2025-46833 changed 2026-06-17Public domain