CVE-2022-27177: Python Format String Issue in ConsoleMe

consoleme Updated 02 Oct 2025

Summary

01/04/2022
Yes i
Critical
9.8

CVE-2022-27177: A Python format string issue leading to information disclosure and potentially remote code execution in ConsoleMe for all versions prior to 1.2.2. Affects consoleme versions < 1.2.2. Fixed in 1.2.2. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

ConsoleMe is a Python package available on PyPI that provides functionality for managing and auditing AWS permissions. It is commonly used in cloud environments to simplify access control and authorization processes. However, versions prior to 1.2.2 are susceptible to a format string vulnerability, which can lead to information disclosure and potentially remote code execution.

Vulnerability Detail

The vulnerability in ConsoleMe arises from a Python format string issue. This type of vulnerability occurs when a string formatting function is used incorrectly, allowing an attacker to exploit the application by providing specially crafted input. In the case of ConsoleMe, this vulnerability can result in the disclosure of sensitive information and, in the worst case, enable remote code execution. The issue has been assigned the identifier CVE-2022-27177 and is also tracked as GHSA-74w3-2r77-fw5h.

How To Fix

Minimum fixed version

1.2.2

This is the first release that contains the fix.

pip install --upgrade "consoleme==1.2.2"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, it is advised to avoid using user-controlled input in format string functions. This can be achieved by validating and sanitizing user input before passing it to any string formatting functions. Here is an example of how to sanitize user input in Python:

user_input = input('Enter your name: ')
# Sanitize user input
sanitized_input = user_input.replace('%', '%%')
# Use the sanitized input in format string
formatted_string = f'Hello, {sanitized_input}!'
print(formatted_string)

Conclusion

In conclusion, the Python format string issue in ConsoleMe (CVE-2022-27177) poses a risk of information disclosure and potential remote code execution. It is crucial to upgrade to ConsoleMe version 1.2.2 or later to mitigate this vulnerability. Additionally, following best practices for input validation and sanitization can provide temporary protection. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for consoleme →

Share this vulnerability

FAQ

The vulnerability in ConsoleMe can lead to information disclosure and potentially remote code execution. An attacker could exploit this vulnerability to access sensitive data or execute arbitrary code on the affected system.

All versions of ConsoleMe prior to 1.2.2 are affected by this vulnerability.

At the time of this advisory, there is no known public exploit for this vulnerability. However, it is important to apply the recommended fixes and updates to mitigate the risk.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply provide your Pipfile.lock file, and Vulert will analyze it for any open-source vulnerabilities, including this one.

You can find more information about this vulnerability, including the technical details and the fix, in the advisory published on the Python Package Index (PyPI) advisory database. The link to the advisory is available in the 'affected' section of this report.

Related vulnerabilities

Recent vulnerabilities recorded for consoleme.

How To Fix

Minimum fixed version

1.2.2

This is the first release that contains the fix.

pip install --upgrade "consoleme==1.2.2"

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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