Publish GHSA-hcr5-wv4p-h2g2

This commit is contained in:
advisory-database[bot]
2025-01-29 20:48:56 +00:00
parent ee77ada6f0
commit 4f7300c7de
@@ -0,0 +1,56 @@
{
"schema_version": "1.4.0",
"id": "GHSA-hcr5-wv4p-h2g2",
"modified": "2025-01-29T20:47:51Z",
"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\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\nThe example has been updated to fix this in commit db1aa5b867256b0a7bf206544c6981ab068b73dc\n\n\n### Workarounds\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```",
"severity": [],
"affected": [
{
"package": {
"ecosystem": "Go",
"name": "github.com/RichardoC/kube-audit-rest"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.0.0-20250129191722-db1aa5b86725"
}
]
}
]
}
],
"references": [
{
"type": "WEB",
"url": "https://github.com/RichardoC/kube-audit-rest/security/advisories/GHSA-hcr5-wv4p-h2g2"
},
{
"type": "WEB",
"url": "https://github.com/RichardoC/kube-audit-rest/commit/db1aa5b867256b0a7bf206544c6981ab068b73dc"
},
{
"type": "PACKAGE",
"url": "https://github.com/RichardoC/kube-audit-rest"
}
],
"database_specific": {
"cwe_ids": [
"CWE-532"
],
"severity": "MODERATE",
"github_reviewed": true,
"github_reviewed_at": "2025-01-29T20:47:51Z",
"nvd_published_at": null
}
}