CVE-2022-3644: Plaintext storage of tokens in pulp_ansible
5.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.06323%
CWE
Published
10/25/2022
Updated
1/30/2023
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
pulp-ansible | pip | < 0.15.0 | 0.15.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from field definitions in Django models/serializers rather than specific functions. The 'token' field in CollectionRemote (models.py) was stored as plaintext via models.TextField, and the API exposure occurred because the serializer (serializers.py) lacked 'write_only=True'. These are configuration/declaration issues in class attributes rather than executable functions. The fix involved changing the field type to EncryptedTextField and adding write_only=True, which are structural changes rather than function modifications.