Intel

AIKIDO-2024-10427

openai is vulnerable to Insertion of Sensitive Information into Log File

Insertion of Sensitive Information into Log File Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Nov 7, 2024

20

Low Risk

This Affects:

pythonopenai
0.2.6 - 1.54.2
Fixed in 1.54.3
Are you affected? Scan for Free

TL;DR

Affected versions of the package could potentially log API keys and tokens in the debug logs. This issue arises from improper handling of sensitive information during logging. If the debug logs are not adequately sanitized, they could inadvertently expose sensitive data.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

openai is vulnerable to Insertion of Sensitive Information into Log File in versions 0.2.6 - 1.54.2.

How to fix this

Upgrade the openai library to the patch version.