CVE-2023-48056: PyPinkSign - Non-Random IV in AES Encryption

pypinksign Updated 02 Oct 2025

Summary

16/11/2023
No i
High
7.5

CVE-2023-48056: PyPinkSign uses a non-random or static IV for Cipher Block Chaining (CBC) mode in AES encryption. Affects pypinksign versions < 0.5.1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

PyPinkSign is a Python package available on PyPI that provides functionality for AES encryption. It is commonly used for securing information and communications. However, in version 0.5.1 of PyPinkSign, a vulnerability has been identified where a non-random or static Initialization Vector (IV) is used for Cipher Block Chaining (CBC) mode in AES encryption. This vulnerability can potentially lead to the disclosure of sensitive information and compromise the security of encrypted data.

Vulnerability Detail

The vulnerability in PyPinkSign v0.5.1 arises from the use of a non-random or static IV in CBC mode for AES encryption. In CBC mode, the IV is used to XOR with the plaintext before encryption, providing randomness and preventing patterns in the ciphertext. By using a non-random or static IV, an attacker can potentially exploit patterns in the encrypted data and gain insights into the plaintext. This can lead to the disclosure of sensitive information and compromise the confidentiality of communications protected by PyPinkSign.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can manually generate a random IV and use it in place of the non-random or static IV provided by PyPinkSign. This can be achieved by modifying the code that utilizes PyPinkSign and replacing the IV parameter with a randomly generated value. Here is an example in Python:

import os
from pypinksign import AES_CBC

# Generate a random IV
iv = os.urandom(16)

# Encrypt using PyPinkSign with the random IV
encrypted_data = AES_CBC.encrypt(key, iv, plaintext)

Note that this workaround should only be used until an official fix is available, as it may introduce additional complexities and potential security risks.

Conclusion

PyPinkSign version 0.5.1 suffers from a vulnerability where a non-random or static IV is used in CBC mode for AES encryption. This can lead to the disclosure of sensitive information and compromise the security of encrypted data. Users are advised to update to a fixed version of PyPinkSign as soon as possible. In the meantime, a temporary workaround is available by manually generating a random IV. For further assistance and support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for pypinksign →

Share this vulnerability

FAQ

This vulnerability in PyPinkSign can lead to the disclosure of sensitive information and compromise the security of encrypted data. Attackers may be able to exploit patterns in the encrypted data and gain insights into the plaintext, potentially exposing confidential information and compromising the integrity of communications.

At the time of this advisory, there is no known public exploit specifically targeting this vulnerability in PyPinkSign. However, it is important to promptly address the issue by updating to a fixed version to mitigate any potential risks.

No, only PyPinkSign version 0.5.1 is affected by this vulnerability. It is recommended to update to a fixed version as soon as possible.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your Pipfile.lock to the playground, and it will analyze the dependencies and alert you if any open-source vulnerabilities, including this one, are detected.

For more information about PyPinkSign, including its documentation, usage examples, and community support, you can visit the official PyPinkSign GitHub repository at https://github.com/pypinksign.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback