CVE-2022-47085: Ostree Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-x96g-95fq-4xv4
Published
Advisory Summary

CVE-2022-47085 is a MODERATE denial of service vulnerability (General Security Weakness) affecting Ostree libraries in the crates.io ecosystem. The issue involves libostree vulnerable to denial of service attack. Remediation is available by upgrading affected packages to version 0.17.1.

CVE-2022-47085 at a Glance

CVE Identifier CVE-2022-47085
GHSA Identifier GHSA-x96g-95fq-4xv4
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Ostree
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix CVE-2022-47085

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

ostree fixed: 0.17.1
Upgrade ostree to 0.17.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 ostree

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-47085, inspect your project dependencies for Ostree:

inspect dependencies for ostree

Analyze the terminal output to locate any version of Ostree in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.17.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 General Security Weakness. In Ostree, 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 issue was discovered in ostree before version 0.17.1 allows attackers to cause a denial of service via the print_panic function in repo_checkout_filter.rs.

CVE-2022-47085 Affected Ostree Versions

1 component(s)
Fixed Versions:
0.17.1
Product / Package Ecosystem Affected Versions Fixed Version
ostree
crates.io
< 0.17.1
0.17.1

References

Frequently Asked Questions

What is CVE-2022-47085?
CVE-2022-47085 is a security vulnerability in Ostree involving libostree vulnerable to denial of service attack under General Security Weakness.
Which Ostree versions are affected?
Affected versions include releases prior to 0.17.1 across affected packages: ostree.
What version fixes CVE-2022-47085?
Upgrading to 0.17.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ostree affected?
Yes, ostree is affected in releases prior to 0.17.1. Upgrade your dependency to 0.17.1 or later.
What CWE is associated with CVE-2022-47085?
CVE-2022-47085 is classified under General Security Weakness.
How can I check crates.io dependencies for CVE-2022-47085?
Run the dependency tree command: 'inspect dependencies for ostree'. 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-x96g-95fq-4xv4",
  "modified" : "2023-12-20T23:16:17Z",
  "published" : "2023-07-18T15:30:36Z",
  "aliases" : [ "CVE-2022-47085" ],
  "summary" : "libostree vulnerable to denial of service attack",
  "details" : "An issue was discovered in ostree before version 0.17.1 allows attackers to cause a denial of service via the print_panic function in repo_checkout_filter.rs.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "ostree"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.17.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-47085"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ostreedev/ostree/issues/2775"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ostreedev/ostree/commit/d9bb160a7c1e7f0a2308a7282622b91bc27d448c"
  }, {
    "type" : "WEB",
    "url" : "https://doc.rust-lang.org/std/macro.eprintln.html"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ostreedev/ostree"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-12-20T23:16:17Z",
    "nvd_published_at" : "2023-07-18T14:15:12Z"
  }
}