Symptom

A vulnerability scan of an SAP Business One server reports a high-severity vulnerability in Microsoft ASP.NET Core version 6.0.36.24516. This version of .NET 6 is out of support and no longer receives security fixes from Microsoft.

Cause

The runtime was installed for the Electronic Document Service (EDS), the SAP Business One component that creates and sends electronic documents such as e-invoices.

  • EDS versions before 2405 run on .NET 6 and use the .NET runtime installed on the server. On these versions, .NET 6 is still needed.
  • EDS 2405 and later run on .NET 8 and are delivered as a self-contained application. They bring their own runtime and no longer use any .NET version installed separately on the server.

So on many servers, .NET 6 is still installed even though EDS no longer needs it. The scanner flags it all the same.

Who is affected

  • Servers running SAP Business One FP 2402 or lower, where EDS still depends on .NET 6.
  • Servers that were upgraded from such a release and still have the old ASP.NET Core / .NET 6.0.x runtimes installed.
  • Servers with developer tools that reference .NET 6, for example Azure Data Studio or Microsoft Visual Studio 2022 Community.

Solution

  1. Find out which EDS version is installed. In Windows, open Settings → Apps (or Control Panel → Programs and Features) and look up the version of the SAP Business One Electronic Document Service.
  2. If EDS is 2405 or later: uninstall the ASP.NET Core and .NET 6.0.x runtimes, as long as no other application on the server needs them. EDS keeps working, because it uses its own built-in .NET 8.
  3. If EDS is older than 2405: do not remove .NET 6 yet, because EDS still needs it. Plan an update of SAP Business One, including EDS, to the latest available release.
  4. Do not update .NET, frameworks or services on their own. Only update them through the official SAP Business One installation. Replacing these components separately is not supported and can stop SAP Business One services from working.
  5. Clean up developer tools. Tools such as Azure Data Studio or Microsoft Visual Studio 2022 Community do not belong on a production server and can keep .NET 6 in place. Remove them or move them to a separate machine.
  6. Remove leftover folders. When no application needs .NET 6 anymore, delete the remaining .NET 6 folders under dotnet\shared.

Confirm the result

List the .NET runtimes that are still installed on the server:

PowerShell
dotnet --list-runtimes

No Microsoft.AspNetCore.App 6.0.x or Microsoft.NETCore.App 6.0.x entries should be left. Then:

  • Check that the dotnet\shared folder (usually C:\Program Files\dotnet\shared) no longer contains 6.0.x subfolders.
  • Create a test electronic document to make sure EDS still works.
  • Run the vulnerability scan again.
  • If the scan still reports the issue on the latest available SAP Business One release, collect the scan results and open a support case, so SAP can review them.

Good to know

The .NET 8 runtime used by EDS 2405 and later has long-term support from Microsoft until November 2026. SAP plans to move EDS to .NET 10 in a future SAP Business One release. Keeping SAP Business One up to date is the way to stay on supported runtimes.

For installation details, see the chapter "Installing Electronic Document Service" in the SAP Business One Administrator's Guide.