How to fix vulnerability on Azure containe registry

Van Huy Tuyen 20 Reputation points
2025-05-28T04:59:43.3766667+00:00

Dear team

We use Azure container apps which pull images from Azure container registry.

Microsoft defender for cloud detect some vulnerabilities, for example

  • ID = CVE-2024-56406
  • Package type = OS.
  • Status: Unhealthy
  • Vendor: Debian
  • Installed version: 5.36.0-7+deb12u1
  • Package name: perl
  • Fixed version: 5.36.0-7+deb12u2

But as I know, Azure container app is serverless, so we can not manage OS (debian) version.

Please guide me how to resolve vulnerabilities

Thanks!

Microsoft Security | Microsoft Defender | Microsoft Defender for Cloud
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
691 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshu katara 16,720 Reputation points MVP Moderator
    2025-05-28T05:54:30.99+00:00

    Hello , Welcome to MS Q&A

    Yes right we do not manage servers but we are responsible for base images we are using in dockerfile.

    Microsoft Defender for Cloud is scanning your container image layers, including base OS packages (like perl) that may come from a base image (e.g., debian, ubuntu, alpine, etc.). Defender flags these vulnerabilities based on known CVEs like CVE-2024-56406.

    To resolve the vulnerability, you need to rebuild your container image with a base image that includes the patched version of the perl package and similarly for debian.

    Best Practices

    • Use minimal base images: Consider alpine or distroless if your app allows.
    • Scan your image before pushing using tools like:
      • Trivy
      • Microsoft Defender for Cloud (automatically scans ACR)
    • Keep Dockerfiles up to date: Base image tags like debian:12 may not auto-update to 12.1, so you need to rebuild often.

    Please let me know if any further ques

    Kindly accept if it helps

    Thanks

    Deepanshu


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.