CVE-2024-8260: Github.com/open policy agent/opa Remote Code Execution Vulnerability
MODERATECVE-2024-8260 is a MODERATE (CVSS 6.1) remote code execution vulnerability (CWE-294: Authentication Bypass by Capture-replay) affecting Github.com/open policy agent/opa libraries in the Go ecosystem. The issue involves opa for windows has an smb force-authentication vulnerability. Remediation is available by upgrading affected packages to version 0.68.0.
CVE-2024-8260 at a Glance
Security Impact
CVSS: 6.1
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:R/S:U/C:H/I:L/A:L).
How to Fix CVE-2024-8260
To remediate this vulnerability, upgrade all affected Github.com/open policy agent/opa 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 github.com/open-policy-agent/opa to 0.68.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/open-policy-agent/opa
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-8260, inspect your project dependencies for Github.com/open policy agent/opa:
inspect dependencies for github.com/open-policy-agent/opa
Analyze the terminal output to locate any version of Github.com/open policy agent/opa in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.68.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-294: Authentication Bypass by Capture-replay, where a capture-replay flaw exists when the design of the product makes it possible for a malicious user to sniff network traffic and bypass authentication by replaying it to the server in question to the same effect as the original message (or with minor changes). In Github.com/open policy agent/opa, 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-2024-8260 Affected Github.com/open policy agent/opa Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/open-policy-agent/opa
|
Go |
< 0.68.0
|
0.68.0
|
References
Frequently Asked Questions
What is CVE-2024-8260?
Which Github.com/open policy agent/opa versions are affected?
What version fixes CVE-2024-8260?
Is github.com/open-policy-agent/opa affected?
What is the CVSS score of CVE-2024-8260?
What CWE is associated with CVE-2024-8260?
How can I check Go dependencies for CVE-2024-8260?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c77r-fh37-x2px",
"modified" : "2024-09-20T22:06:08Z",
"published" : "2024-08-30T15:31:30Z",
"aliases" : [ "CVE-2024-8260" ],
"summary" : "OPA for Windows has an SMB force-authentication vulnerability",
"details" : "A SMB force-authentication vulnerability exists in all versions of OPA for Windows prior to v0.68.0. The vulnerability exists because of improper input validation, allowing a user to pass an arbitrary SMB share instead of a Rego file as an argument to OPA CLI or to one of the OPA Go library’s functions.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/open-policy-agent/opa"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.68.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-8260"
}, {
"type" : "WEB",
"url" : "https://github.com/open-policy-agent/opa/commit/10f4d553e6bb6ae9c69611ecdd9a77dda857070e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/open-policy-agent/opa"
}, {
"type" : "WEB",
"url" : "https://github.com/open-policy-agent/opa/releases/tag/v0.68.0"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2024-3141"
}, {
"type" : "WEB",
"url" : "https://www.tenable.com/security/research/tra-2024-36"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-294" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-19T19:47:47Z",
"nvd_published_at" : "2024-08-30T13:15:12Z"
}
}