Vulnerabilities in pkg:gem/foreman_ansible

PACKAGE
Advisory Identifier: GHSA-vvff-6wrr-4g7q
Advisory Summary

CVE-2021-3589 is a HIGH (CVSS 8.0) missing authentication for critical function vulnerability (CWE-306: Missing Authentication for Critical Function) affecting Foreman ansible libraries in the RubyGems ecosystem. The issue involves missing authentication for critical function in foreman ansible. Remediation is available by upgrading affected packages to version 2.0.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/foreman_ansible

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/foreman_ansible. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-vvff-6wrr-4g7q CVE-2021-3589 HIGH Missing Authentication for Critical Function in Foreman Ansible

CVE-2021-3589 at a Glance

CVE Identifier CVE-2021-3589
GHSA Identifier GHSA-vvff-6wrr-4g7q
Severity HIGH
CVSS v3.1 Base Score 8.0
CWE Classification CWE-306: Missing Authentication for Critical Function
Affected Product Foreman ansible
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 8.0

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

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2021-3589

To remediate this vulnerability, upgrade all affected Foreman 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.

foreman_ansible fixed: 2.0.0
Upgrade foreman_ansible to 2.0.0
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_ansible

How to Check if You Are Affected

To determine whether your application is affected by CVE-2021-3589, inspect your project dependencies for Foreman ansible:

inspect dependencies for foreman_ansible

Analyze the terminal output to locate any version of Foreman ansible in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0), 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-306: Missing Authentication for Critical Function, where the product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. In Foreman 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

An authorization flaw was found in Foreman Ansible. An authenticated attacker with certain permissions to create and run Ansible jobs can access hosts through job templates. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

CVE-2021-3589 Affected Foreman ansible Versions

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

References

Frequently Asked Questions

What is CVE-2021-3589?
CVE-2021-3589 is a security vulnerability in Foreman ansible involving Missing Authentication for Critical Function in Foreman Ansible under CWE-306: Missing Authentication for Critical Function.
Which Foreman ansible versions are affected?
Affected versions include releases prior to 2.0.0 across affected packages: foreman_ansible.
What version fixes CVE-2021-3589?
Upgrading to 2.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is foreman_ansible affected?
Yes, foreman_ansible is affected in releases prior to 2.0.0. Upgrade your dependency to 2.0.0 or later.
What is the CVSS score of CVE-2021-3589?
CVE-2021-3589 has a CVSS v3.1 base score of 8.0 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2021-3589?
CVE-2021-3589 is classified under CWE-306: Missing Authentication for Critical Function (The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.).
How can I check RubyGems dependencies for CVE-2021-3589?
Run the dependency tree command: 'inspect dependencies for foreman_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-vvff-6wrr-4g7q",
  "modified" : "2023-02-08T22:41:33Z",
  "published" : "2022-03-24T00:00:17Z",
  "aliases" : [ "CVE-2021-3589" ],
  "summary" : "Missing Authentication for Critical Function in Foreman Ansible",
  "details" : "An authorization flaw was found in Foreman Ansible. An authenticated attacker with certain permissions to create and run Ansible jobs can access hosts through job templates. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "foreman_ansible"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-3589"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/theforeman/foreman_ansible/commit/a5e0827bc3ec6c8ab82f968907857a15646305d5"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2021-3589"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1969265"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/foreman_ansible/CVE-2021-3589.yml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/theforeman/foreman_ansible"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-306" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-03-29T20:01:57Z",
    "nvd_published_at" : "2022-03-23T20:15:00Z"
  }
}