CVE-2022-47085: Ostree Denial of Service Vulnerability
MODERATECVE-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
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.
Upgrade ostree to 0.17.1
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
CVE-2022-47085 Affected Ostree Versions
1 component(s)| 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?
Which Ostree versions are affected?
What version fixes CVE-2022-47085?
Is ostree affected?
What CWE is associated with CVE-2022-47085?
How can I check crates.io dependencies for CVE-2022-47085?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}