CVE-2025-3931: Github.com/redhatinsights/yggdrasil Yggdrasil Vulnerable To Local Privilege Vulnerability

HIGH
Advisory Identifier: GHSA-rpg2-jvhp-h354
CVSS 7.8
CWE-280
Published
Advisory Summary

CVE-2025-3931 is a HIGH (CVSS 7.8) yggdrasil vulnerable to local privilege vulnerability (CWE-280: Improper Handling of Insufficient Permissions or Privileges) affecting Github.com/redhatinsights/yggdrasil libraries in the Go ecosystem. The issue involves yggdrasil vulnerable to local privilege escalation. Remediation is available in the latest vendor maintenance releases.

CVE-2025-3931 at a Glance

CVE Identifier CVE-2025-3931
GHSA Identifier GHSA-rpg2-jvhp-h354
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-280: Improper Handling of Insufficient Permissions or Privileges
Affected Product Github.com/redhatinsights/yggdrasil
Package Ecosystem Go
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-2025-3931

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

github.com/redhatinsights/yggdrasil fixed: Latest secure release
Upgrade github.com/redhatinsights/yggdrasil to Latest secure release
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 github.com/redhatinsights/yggdrasil

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-3931, inspect your project dependencies for Github.com/redhatinsights/yggdrasil:

inspect dependencies for github.com/redhatinsights/yggdrasil

Analyze the terminal output to locate any version of Github.com/redhatinsights/yggdrasil in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-280: Improper Handling of Insufficient Permissions or Privileges, where the product does not handle or incorrectly handles when it has insufficient privileges to access resources or functionality as specified by their permissions. this may cause it to follow unexpected code paths that may leave the product in an invalid state. In Github.com/redhatinsights/yggdrasil, 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 Yggdrasil, which acts as a system broker, allowing the processes to communicate to other children's "worker" processes through the DBus component. Yggdrasil creates a DBus method to dispatch messages to workers. However, it misses authentication and authorization checks, allowing every system user to call it. One available Yggdrasil worker acts as a package manager with capabilities to create and enable new repositories and install or remove packages. This flaw allows an attacker with access to the system to leverage the lack of authentication on the dispatch message to force the Yggdrasil worker to install arbitrary RPM packages. This issue results in local privilege escalation, enabling the attacker to access and modify sensitive system data.

CVE-2025-3931 Affected Github.com/redhatinsights/yggdrasil Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
github.com/redhatinsights/yggdrasil
Go
≤ 0.4.6

References

Frequently Asked Questions

What is CVE-2025-3931?
CVE-2025-3931 is a security vulnerability in Github.com/redhatinsights/yggdrasil involving Yggdrasil Vulnerable to Local Privilege Escalation under CWE-280: Improper Handling of Insufficient Permissions or Privileges.
Which Github.com/redhatinsights/yggdrasil versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/redhatinsights/yggdrasil.
What version fixes CVE-2025-3931?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/redhatinsights/yggdrasil affected?
Yes, github.com/redhatinsights/yggdrasil is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-3931?
CVE-2025-3931 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-2025-3931?
CVE-2025-3931 is classified under CWE-280: Improper Handling of Insufficient Permissions or Privileges (The product does not handle or incorrectly handles when it has insufficient privileges to access resources or functionality as specified by their permissions. This may cause it to follow unexpected code paths that may leave the product in an invalid state.).
How can I check Go dependencies for CVE-2025-3931?
Run the dependency tree command: 'inspect dependencies for github.com/redhatinsights/yggdrasil'. 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-rpg2-jvhp-h354",
  "modified" : "2025-07-28T13:04:18Z",
  "published" : "2025-05-14T12:31:12Z",
  "aliases" : [ "CVE-2025-3931" ],
  "summary" : "Yggdrasil Vulnerable to Local Privilege Escalation",
  "details" : "A flaw was found in Yggdrasil, which acts as a system broker, allowing the processes to communicate to other children's \"worker\" processes through the DBus component. Yggdrasil creates a DBus method to dispatch messages to workers. However, it misses authentication and authorization checks, allowing every system user to call it. One available Yggdrasil worker acts as a package manager with capabilities to create and enable new repositories and install or remove packages. \n\nThis flaw allows an attacker with access to the system to leverage the lack of authentication on the dispatch message to force the Yggdrasil worker to install arbitrary RPM packages. This issue results in local privilege escalation, enabling the attacker to access and modify sensitive system data.",
  "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" : "Go",
      "name" : "github.com/redhatinsights/yggdrasil"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.4.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-3931"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/RedHatInsights/yggdrasil/pull/336"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/RedHatInsights/yggdrasil/commit/196d0cbea42f72e6dfecaa563681a99e9fdb4a38"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:7592"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2025-3931"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2362345"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/RedHatInsights/yggdrasil"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-280" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-15T16:06:17Z",
    "nvd_published_at" : "2025-05-14T12:15:19Z"
  }
}