CVE-2025-68476: Github.com/kedacore/keda/v2 KEDA Has Arbitrary File Read Vulnerability
HIGHCVE-2025-68476 is a HIGH keda has arbitrary file read vulnerability (CWE-863: Incorrect Authorization) affecting Github.com/kedacore/keda/v2 libraries in the Go ecosystem. The issue involves keda has arbitrary file read via insufficient path validation in hashicorp vault service account credential. Remediation is available by upgrading affected packages to version 2.18.3, 2.17.3.
CVE-2025-68476 at a Glance
How to Fix CVE-2025-68476
To remediate this vulnerability, upgrade all affected Github.com/kedacore/keda/v2 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/kedacore/keda/v2 to 2.18.3
Upgrade github.com/kedacore/keda/v2 to 2.17.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/kedacore/keda/v2
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-68476, inspect your project dependencies for Github.com/kedacore/keda/v2:
inspect dependencies for github.com/kedacore/keda/v2
Analyze the terminal output to locate any version of Github.com/kedacore/keda/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.18.3), 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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Github.com/kedacore/keda/v2, 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-2025-68476 Affected Github.com/kedacore/keda/v2 Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/kedacore/keda/v2
|
Go |
≥ 2.18.0
< 2.18.3
|
2.18.3
|
|
github.com/kedacore/keda/v2
|
Go |
< 2.17.3
|
2.17.3
|
References
Frequently Asked Questions
What is CVE-2025-68476?
Which Github.com/kedacore/keda/v2 versions are affected?
What version fixes CVE-2025-68476?
Is github.com/kedacore/keda/v2 affected?
What CWE is associated with CVE-2025-68476?
How can I check Go dependencies for CVE-2025-68476?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c4p6-qg4m-9jmr",
"modified" : "2025-12-23T16:01:17Z",
"published" : "2025-12-22T20:08:24Z",
"aliases" : [ "CVE-2025-68476" ],
"summary" : "KEDA has Arbitrary File Read via Insufficient Path Validation in HashiCorp Vault Service Account Credential",
"details" : "### Impact\nAn Arbitrary File Read vulnerability has been identified in KEDA, potentially affecting any KEDA resource that uses TriggerAuthentication to configure HashiCorp Vault authentication.\n\nThe vulnerability stems from an incorrect or insufficient path validation when loading the Service Account Token specified in spec.hashiCorpVault.credential.serviceAccount.\n\nAn attacker with permissions to create or modify a TriggerAuthentication resource can exfiltrate the content of any file from the node's filesystem (where the KEDA pod resides) by directing the file's content to a server under their control, as part of the Vault authentication request.\n\nThe potential impact includes the exfiltration of sensitive system information, such as secrets, keys, or the content of files like /etc/passwd.\n\n### Patches\nThe problem has been patched in v2.17.3 and 2.18.3 as well as in main branch.\n\n### Workarounds\nThe only effective workaround is the strict restriction of permissions for creating and modifying TriggerAuthentication resources within the Kubernetes cluster.\n\nOnly trusted and authorized users should have create or update permissions on the TriggerAuthentication resource.\n\nThis limits an attacker's ability to configure a malicious TriggerAuthentication with an arbitrary path.\n\n### Is my project affected?\nIf it execute s\n```bash\nkubectl get deploy keda-operator -n keda -o jsonpath=\"{.spec.template.spec.containers[0].image}\"\n```\nand the version is not 2.17.3, 2.18.3 or >= 2.19.0, that version is affected.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/kedacore/keda/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.18.0"
}, {
"fixed" : "2.18.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/kedacore/keda/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.17.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/kedacore/keda/security/advisories/GHSA-c4p6-qg4m-9jmr"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-68476"
}, {
"type" : "WEB",
"url" : "https://github.com/kedacore/keda/commit/15c5677f65f809b9b6b59a52f4cf793db0a510fd"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kedacore/keda"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22", "CWE-863" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-12-22T20:08:24Z",
"nvd_published_at" : "2025-12-22T22:16:09Z"
}
}