CVE-2022-24988: Galois 2p8 Buffer Overflow Vulnerability
CRITICALCVE-2022-24988 is a CRITICAL (CVSS 9.8) buffer overflow vulnerability (CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')) affecting Galois 2p8 libraries in the crates.io ecosystem. The issue involves buffer overflow in galois_2p8. Remediation is available by upgrading affected packages to version 0.1.2.
CVE-2022-24988 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2022-24988
To remediate this vulnerability, upgrade all affected Galois 2p8 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 galois_2p8 to 0.1.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for galois_2p8
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-24988, inspect your project dependencies for Galois 2p8:
inspect dependencies for galois_2p8
Analyze the terminal output to locate any version of Galois 2p8 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.2), 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-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow'), where the product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer. In Galois 2p8, 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-24988 Affected Galois 2p8 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
galois_2p8
|
crates.io |
< 0.1.2
|
0.1.2
|
References
Frequently Asked Questions
What is CVE-2022-24988?
Which Galois 2p8 versions are affected?
What version fixes CVE-2022-24988?
Is galois_2p8 affected?
What is the CVSS score of CVE-2022-24988?
What CWE is associated with CVE-2022-24988?
How can I check crates.io dependencies for CVE-2022-24988?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9p8q-j6q5-mjw8",
"modified" : "2022-02-25T15:29:16Z",
"published" : "2022-02-15T00:02:45Z",
"aliases" : [ "CVE-2022-24988" ],
"summary" : "Buffer Overflow in galois_2p8",
"details" : "In galois_2p8 before 0.1.2, PrimitivePolynomialField::new has an off-by-one buffer overflow for a vector.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "galois_2p8"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.1.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24988"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/djsweet/galois_2p8"
}, {
"type" : "WEB",
"url" : "https://github.com/djsweet/galois_2p8/blob/master/CHANGELOG.md"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-120", "CWE-193" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2022-02-25T15:29:16Z",
"nvd_published_at" : "2022-02-14T20:15:00Z"
}
}