Skip to content

fix(security): upgrade Go 1.25.3, Alpine 3.21, fix CVE-2024-45337 (CR… - #25

Open
vikram-avesha wants to merge 1 commit into
masterfrom
fix-security-v1.5.8
Open

vikram-avesha wants to merge 1 commit into
masterfrom
fix-security-v1.5.8

Conversation

@vikram-avesha

Copy link
Copy Markdown

Security Vulnerability Fixes for cmd-nsmgr v1.5.8

🎯 Objective

Address all CRITICAL and HIGH severity vulnerabilities identified in Trivy security scans and DevOps audit reports for cmd-nsmgr:1.5.7.

🔍 Security Issues Resolved

Critical (1 → 0)

  • CVE-2024-45337 - golang.org/x/crypto authorization bypass
    • Updated from v0.21.0/v0.22.0 → v0.36.0

High (20+ → 0)

Medium (1 remaining - no fix available)

  • ⚠️ CVE-2024-28180 - gopkg.in/square/go-jose.v2 (transitive dependency, status: affected)

📦 Changes Made

Dockerfile Updates

  • Base image: golang:1.22.5golang:1.25.3-alpine
  • Runtime image: alpine:3.20.1alpine:3.21
  • Delve debugger: v1.8.2v1.24.2
  • grpc-health-probe: v0.4.28v0.4.42
  • Added non-root user with proper permissions

Dependency Updates (go.mod)

  • golang.org/x/crypto v0.21.0
  • golang.org/x/crypto v0.36.0
  • golang.org/x/net v0.23.0
  • golang.org/x/net v0.38.0
  • github.com/golang-jwt/jwt/v4 v4.2.0
  • github.com/golang-jwt/jwt/v4 v4.5.2
  • github.com/open-policy-agent/opa v0.44.0
  • github.com/open-policy-agent/opa v1.4.0

  • Go toolchain updated to go1.24.6## ✅ Verification

Trivy Scan Results (HIGH & CRITICAL only)

Before:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant