CVE-2021-20259: Foreman fog proxmox Exposure Of Sensitive Information To Vulnerability

HIGH
Advisory Identifier: GHSA-f2rp-4rv7-fc95
CVSS 7.8
CWE-200
Published
Advisory Summary

CVE-2021-20259 is a HIGH (CVSS 7.8) exposure of sensitive information to vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Foreman fog proxmox libraries in the RubyGems ecosystem. The issue involves exposure of sensitive information to an unauthorized actor in foreman_fog_proxmox. Remediation is available by upgrading affected packages to version 0.13.1.

CVE-2021-20259 at a Glance

CVE Identifier CVE-2021-20259
GHSA Identifier GHSA-f2rp-4rv7-fc95
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Foreman fog proxmox
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 7.8

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:H/A:H).

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 High (I:H)
Availability High (A:H)

How to Fix CVE-2021-20259

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

foreman_fog_proxmox fixed: 0.13.1
Upgrade foreman_fog_proxmox to 0.13.1
Verify Direct and Transitive Dependencies

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

inspect dependencies for foreman_fog_proxmox

How to Check if You Are Affected

To determine whether your application is affected by CVE-2021-20259, inspect your project dependencies for Foreman fog proxmox:

inspect dependencies for foreman_fog_proxmox

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

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Foreman fog proxmox, 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

A flaw was found in the Foreman project. The Proxmox compute resource exposes the password through the API to an authenticated local attacker with view_hosts permission. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability. Versions of foreman_fog_proxmox prior to 0.13.1 are affected.

CVE-2021-20259 Affected Foreman fog proxmox Versions

1 component(s)
Fixed Versions:
0.13.1
Product / Package Ecosystem Affected Versions Fixed Version
foreman_fog_proxmox
RubyGems
< 0.13.1
0.13.1

References

Frequently Asked Questions

What is CVE-2021-20259?
CVE-2021-20259 is a security vulnerability in Foreman fog proxmox involving Exposure of Sensitive Information to an Unauthorized Actor in foreman_fog_proxmox under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Foreman fog proxmox versions are affected?
Affected versions include releases prior to 0.13.1 across affected packages: foreman_fog_proxmox.
What version fixes CVE-2021-20259?
Upgrading to 0.13.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is foreman_fog_proxmox affected?
Yes, foreman_fog_proxmox is affected in releases prior to 0.13.1. Upgrade your dependency to 0.13.1 or later.
What is the CVSS score of CVE-2021-20259?
CVE-2021-20259 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2021-20259?
CVE-2021-20259 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check RubyGems dependencies for CVE-2021-20259?
Run the dependency tree command: 'inspect dependencies for foreman_fog_proxmox'. 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-f2rp-4rv7-fc95",
  "modified" : "2023-01-24T15:07:15Z",
  "published" : "2021-06-10T15:54:43Z",
  "aliases" : [ "CVE-2021-20259" ],
  "summary" : "Exposure of Sensitive Information to an Unauthorized Actor in foreman_fog_proxmox",
  "details" : "A flaw was found in the Foreman project. The Proxmox compute resource exposes the password through the API to an authenticated local attacker with view_hosts permission. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability. Versions of foreman_fog_proxmox prior to 0.13.1 are affected.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "foreman_fog_proxmox"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.13.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-20259"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/theforeman/foreman_fog_proxmox/pull/184/commits/b7e910bf61563f5d447c71b1b41e2a373a794d7b"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1932144"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/theforeman/foreman_fog_proxmox"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/theforeman/foreman_fog_proxmox/releases/tag/v0.13.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-06-10T14:58:17Z",
    "nvd_published_at" : "2021-06-07T21:15:00Z"
  }
}