CVE-2022-3644: Pulp ansible Plaintext Storage Of Tokens Vulnerability

MODERATE
Advisory Identifier: GHSA-qv37-mfjf-42h8
CVSS 5.5
CWE-522 CWE-256
Published
Advisory Summary

CVE-2022-3644 is a MODERATE (CVSS 5.5) plaintext storage of tokens vulnerability (CWE-522: Insufficiently Protected Credentials) affecting Pulp ansible libraries in the PyPI ecosystem. The issue involves plaintext storage of tokens in pulp_ansible. Remediation is available by upgrading affected packages to version 0.15.0.

CVE-2022-3644 at a Glance

CVE Identifier CVE-2022-3644
GHSA Identifier GHSA-qv37-mfjf-42h8
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-522: Insufficiently Protected Credentials
Affected Product Pulp ansible
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2022-3644

To remediate this vulnerability, upgrade all affected Pulp ansible dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

pulp-ansible fixed: 0.15.0
pip install pulp-ansible>=0.15.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show pulp-ansible

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2022-3644, inspect your installed packages using pip:

pip show pulp-ansible

Analyze the terminal output to locate any version of Pulp ansible in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.15.0), your application is affected.

Note: The pip show pulp-ansible command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-522: Insufficiently Protected Credentials, where the product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval. In Pulp ansible, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The collection remote for pulp_ansible stores tokens in plaintext instead of using pulp's encrypted field and exposes them in read/write mode via the API () instead of marking it as write only.

CVE-2022-3644 Affected Pulp ansible Versions

1 component(s)
Fixed Versions:
0.15.0
Product / Package Ecosystem Affected Versions Fixed Version
pulp-ansible
PyPI
< 0.15.0
0.15.0

References

Frequently Asked Questions

What is CVE-2022-3644?
CVE-2022-3644 is a security vulnerability in Pulp ansible involving Plaintext storage of tokens in pulp_ansible under CWE-522: Insufficiently Protected Credentials.
Which Pulp ansible versions are affected?
Affected versions include releases prior to 0.15.0 across affected packages: pulp-ansible.
What version fixes CVE-2022-3644?
Upgrading to 0.15.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pulp-ansible affected?
Yes, pulp-ansible is affected in releases prior to 0.15.0. Upgrade your dependency to 0.15.0 or later.
What is the CVSS score of CVE-2022-3644?
CVE-2022-3644 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2022-3644?
CVE-2022-3644 is classified under CWE-522: Insufficiently Protected Credentials (The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.).
How can I check PyPI dependencies for CVE-2022-3644?
Run the dependency tree command: 'pip show pulp-ansible'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qv37-mfjf-42h8",
  "modified" : "2022-10-31T16:00:21Z",
  "published" : "2022-10-25T19:00:22Z",
  "aliases" : [ "CVE-2022-3644" ],
  "summary" : "Plaintext storage of tokens in pulp_ansible",
  "details" : "The collection remote for pulp_ansible stores tokens in plaintext instead of using pulp's encrypted field and exposes them in read/write mode via the API () instead of marking it as write only. ",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pulp-ansible"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.15.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-3644"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pulp/pulp_ansible/issues/1221"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pulp/pulp_ansible/commit/d13c427b09482a7f598d8ee597d17a8a34888665"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pulp/pulp_ansible"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pulp/pulp_ansible/blob/main/pulp_ansible/app/models.py#L234"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-256", "CWE-522" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-10-25T22:28:13Z",
    "nvd_published_at" : "2022-10-25T18:15:00Z"
  }
}