GHSA-vcg8-98q8-g7mj

    Dashboard / Vulnerabilities / GHSA-vcg8-98q8-g7mj

    GHSA-vcg8-98q8-g7mj

    Published: 7 Apr 2021Last Modified: 4 Sept 2024

    Summary: Exposure of Sensitive Information to an Unauthorized Actor and Insecure Temporary File in Ansible

    Details: A flaw was found in Ansible Engine when using Ansible Vault for editing encrypted files. When a user executes "ansible-vault edit", another user on the same computer can read the old and new secret, as it is created in a temporary file with mkstemp and the returned file descriptor is closed and the method write_data is called to write the existing secret in the file. This method will delete the file before recreating it insecurely. All versions in 2.7.x, 2.8.x and 2.9.x branches are believed to be vulnerable.

    Affected packages

    Package

    Name: ansible

    Purl: pkg:pypi/ansible

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -2.7.17

    Affected versions

    1.0

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-vcg8-98q8-g7mj | CVE-DB