CVE-2025-24884: Github.com/RichardoC/kube audit rest Kube-audit-rest's Example Logging Configuration Could Vulnerability
MODERATECVE-2025-24884 is a MODERATE kube-audit-rest's example logging configuration could vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Github.com/RichardoC/kube audit rest libraries in the Go ecosystem. The issue involves kube-audit-rest's example logging configuration could disclose secret values in the audit log. Remediation is available by upgrading affected packages to version 0.0.0-20250205113217-9df8886b4819.
CVE-2025-24884 at a Glance
How to Fix CVE-2025-24884
To remediate this vulnerability, upgrade all affected Github.com/RichardoC/kube audit rest 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/RichardoC/kube-audit-rest to 0.0.0-20250205113217-9df8886b4819
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/RichardoC/kube-audit-rest
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-24884, inspect your project dependencies for Github.com/RichardoC/kube audit rest:
inspect dependencies for github.com/RichardoC/kube-audit-rest
Analyze the terminal output to locate any version of Github.com/RichardoC/kube audit rest in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20250205113217-9df8886b4819), 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-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Github.com/RichardoC/kube audit rest, 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-24884 Affected Github.com/RichardoC/kube audit rest Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/RichardoC/kube-audit-rest
|
Go |
< 0.0.0-20250205113217-9df8886b4819
|
0.0.0-20250205113217-9df8886b4819
|
References
Frequently Asked Questions
What is CVE-2025-24884?
Which Github.com/RichardoC/kube audit rest versions are affected?
What version fixes CVE-2025-24884?
Is github.com/RichardoC/kube-audit-rest affected?
What CWE is associated with CVE-2025-24884?
How can I check Go dependencies for CVE-2025-24884?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hcr5-wv4p-h2g2",
"modified" : "2025-02-05T16:28:49Z",
"published" : "2025-01-29T20:47:51Z",
"aliases" : [ "CVE-2025-24884" ],
"summary" : "kube-audit-rest's example logging configuration could disclose secret values in the audit log",
"details" : "### Impact\n_What kind of vulnerability is it? Who is impacted?_\nIf the \"full-elastic-stack\" example vector configuration was used for a real cluster, the previous values of kubernetes secrets would have been disclosed in the audit messages.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\nThe example has been updated to fix this in commit 9df8886b4819409f566233adc7c3b7a43a4096ba\n\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\nReplace \n```yaml\n\n if .request.requestKind.kind == \"Secret\" {\n del(.request.object.data)\n .request.object.data.redacted = \"REDACTED\"\n del(.request.oldObject.data)\n .request.oldObject.data.redacted = \"REDACTED\"\n }\n```\nIn the vector \"audit-files-json-parser-and-redaction\" step\nwith\n```yaml\n\n if .request.requestKind.kind == \"Secret\" {\n # Redact the secret data\n del(.request.object.data)\n .request.object.data.redacted = \"REDACTED\"\n del(.request.oldObject.data)\n .request.oldObject.data.redacted = \"REDACTED\"\n # Remove the previously set secret data - Not bothering to parse it as this annotation shouldn't ever be needed\n del(.request.object.metadata.annotations.[\"kubectl.kubernetes.io/last-applied-configuration\"])\n del(.request.oldObject.metadata.annotations.[\"kubectl.kubernetes.io/last-applied-configuration\"])\n }\n```\n\n\n### References\n_Are there any links users can visit to find out more?_",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/RichardoC/kube-audit-rest"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.0-20250205113217-9df8886b4819"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/RichardoC/kube-audit-rest/security/advisories/GHSA-hcr5-wv4p-h2g2"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-24884"
}, {
"type" : "WEB",
"url" : "https://github.com/RichardoC/kube-audit-rest/commit/db1aa5b867256b0a7bf206544c6981ab068b73dc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/RichardoC/kube-audit-rest"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2025-3431"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200", "CWE-532" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-01-29T20:47:51Z",
"nvd_published_at" : "2025-01-29T21:15:21Z"
}
}