CVE-2023-48051
Python vulnerability analysis and mitigation

Overview

An issue in /upydev/keygen.py in upydev v0.4.3 allows attackers to decrypt sensitive information via weak encryption padding. The vulnerability was discovered and disclosed in November 2023, affecting the cryptographic implementation in the upydev package. The issue is tracked as CVE-2023-48051 and has been assigned a CVSS v3.1 base score of 7.5 (HIGH) (NVD).

Technical details

The vulnerability stems from the use of PKCS 1v1.5 padding in the RSA implementation within the keygen.py script. This padding scheme is known to be vulnerable to Bleichenbacher attacks, which is a chosen-ciphertext attack that can potentially allow attackers to decrypt sensitive information. The issue affects multiple locations in the codebase, including the RSA encryption and signature verification implementations (GitHub Issue).

Impact

The vulnerability allows attackers to potentially decrypt sensitive information protected by the affected cryptographic implementation. Due to the weak encryption padding, the confidentiality of encrypted data is compromised, which could lead to unauthorized access to sensitive information. The severity is reflected in the HIGH CVSS score, particularly impacting the confidentiality aspect of the security triad (NVD).

Mitigation and workarounds

The recommended mitigation is to update the cryptographic implementation to use OAEP (Optimal Asymmetric Encryption Padding) for encryption and PSS (Probabilistic Signature Scheme) for signatures. These modern padding schemes offer better security against known attacks. For encryption, it is recommended to use padding.OAEP with SHA-256 for both the MGF1 function and the main algorithm (GitHub Issue).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management