mozillazg / ptcpdump

Process-aware, eBPF-based tcpdump
MIT License
613 stars 43 forks source link

High and Critical CVEs in v0.24.0 ptcpdump binary #164

Closed danielhoherd closed 1 month ago

danielhoherd commented 1 month ago

Describe the bug

Trivy finds several CVEs in v0.24.0:

usr/local/bin/ptcpdump (gobinary)
=================================
Total: 3 (HIGH: 2, CRITICAL: 1)

┌──────────────────────────┬────────────────┬──────────┬────────┬──────────────────────┬──────────────────────────────────┬───────────────────────────────────────────────────────────┐
│         Library          │ Vulnerability  │ Severity │ Status │  Installed Version   │          Fixed Version           │                           Title                           │
├──────────────────────────┼────────────────┼──────────┼────────┼──────────────────────┼──────────────────────────────────┼───────────────────────────────────────────────────────────┤
│ github.com/docker/docker │ CVE-2024-41110 │ CRITICAL │ fixed  │ v24.0.9+incompatible │ 23.0.15, 26.1.5, 27.1.1, 25.0.6  │ moby: Authz zero length regression                        │
│                          │                │          │        │                      │                                  │ https://avd.aquasec.com/nvd/cve-2024-41110                │
├──────────────────────────┼────────────────┼──────────┤        ├──────────────────────┼──────────────────────────────────┼───────────────────────────────────────────────────────────┤
│ k8s.io/kubernetes        │ CVE-2023-5528  │ HIGH     │        │ v1.24.17             │ 1.28.4, 1.27.8, 1.26.11, 1.25.16 │ kubernetes: Insufficient input sanitization in in-tree    │
│                          │                │          │        │                      │                                  │ storage plugin leads to privilege escalation...           │
│                          │                │          │        │                      │                                  │ https://avd.aquasec.com/nvd/cve-2023-5528                 │
├──────────────────────────┼────────────────┤          │        ├──────────────────────┼──────────────────────────────────┼───────────────────────────────────────────────────────────┤
│ stdlib                   │ CVE-2024-34156 │          │        │ 1.22.4               │ 1.22.7, 1.23.1                   │ encoding/gob: golang: Calling Decoder.Decode on a message │
│                          │                │          │        │                      │                                  │ which contains deeply nested structures...                │
│                          │                │          │        │                      │                                  │ https://avd.aquasec.com/nvd/cve-2024-34156                │
└──────────────────────────┴────────────────┴──────────┴────────┴──────────────────────┴──────────────────────────────────┴───────────────────────────────────────────────────────────┘

Exited with code exit status 1

How to reproduce it

Use trivy (or probably some other security scanner) to scan the ptcpdump binary or a docker image that includes the binary.

Expected behavior

No critical or high CVEs in the ptcpdump binary.

Environment

Additional context

N/A