Reference material — not professional advice. Test in staging, back up first, verify against your specific version. Use your own judgment for your environment.
● High · CVSS 7.5 ⚠ ACTIVELY EXPLOITED — CISA KEV

How to Fix CVE-2024-29059: Information Disclosure in Microsoft .NET Framework 4.8

By Sai Kiran Pandrala

⚡ At a glance
SeverityCVSS 7.5 - High
Actively exploited?Yes, listed in CISA KEV (added 2025-02-04)
AffectedMicrosoft .NET Framework 4.8 4.8.0 up to (excluding) 4.8.04690.02; Microsoft .NET Framework 3.5 AND 4.8 4.8.0 up to (excluding) 4.8.04690.02; Microsoft .NET Framework 3.5 AND 4.7.2 4.7.0 up to (excluding) 4.7.04081.03; Microsoft .NET Framework 4.6.2/4.7/4.7.1/4.7.2 4.7.0 up to (excluding) 4.7.04081.03; see advisory for full list
Fixed in10.0.10240.20402, 3.0.30729.8959, 3.0.50727.8976, 4.7.04081.03, 4.8.04690.02 (see advisory)
Type (CWE)CWE-209: Generation of Error Message Containing Sensitive Information

Patch immediately. CISA added CVE-2024-29059 to the Known Exploited Vulnerabilities catalog on 2025-02-04. Federal civilian agencies must remediate by 2025-02-25. Treat every internet-reachable instance as a priority patch.

What is CVE-2024-29059?

CVE-2024-29059 is an Information Disclosure flaw in Microsoft .NET Framework 4.8. It carries a CVSS base score of 7.5 (high). CISA confirmed real-world exploitation by adding it to the Known Exploited Vulnerabilities catalog on 2025-02-04.

From the source record: .NET Framework Information Disclosure Vulnerability

Why it matters in practice: KEV-listed CVEs draw continuous internet-wide scanning. Any unpatched, internet-reachable installation is on borrowed time. The blast radius depends on how the affected service is exposed. An internet-facing instance with no compensating controls is the highest-risk configuration.

Am I affected?

You are affected if your installation of Microsoft .NET Framework 4.8 matches a version listed in the Affected row above.

On Windows, check the installed version with PowerShell:


# Generic - list installed product versions
Get-CimInstance Win32_Product | Where-Object Name -like "*Microsoft .NET Framework 4.8*" | Select-Object Name, Version
# Windows updates installed (KB lookup)
Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 20

How to fix CVE-2024-29059

Apply the vendor patch. Target a build at or above: 10.0.10240.20402, 3.0.30729.8959, 3.0.50727.8976, 4.7.04081.03, 4.8.04690.02 (see advisory). The runnable command set below covers the most common deployment patterns for Microsoft .NET Framework 4.8.

Windows (PowerShell, run as administrator)


# 1) Backup affected service config
$stamp = Get-Date -Format yyyyMMdd-HHmm
$backup = "C:\Backup\microsoft-$stamp"
New-Item -ItemType Directory -Path $backup -Force | Out-Null

# 2) Install the latest Windows security updates (the patch for CVE-2024-29059 ships here)
Install-Module PSWindowsUpdate -Force -Scope CurrentUser -ErrorAction SilentlyContinue
Import-Module PSWindowsUpdate
Get-WindowsUpdate -MicrosoftUpdate -AcceptAll -Install -AutoReboot

# 3) Confirm the patch landed
Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 10

Vendor-managed app on Windows (winget)


# Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-29059
winget upgrade --all --silent --accept-package-agreements --accept-source-agreements
# or target the specific package:
winget search "Microsoft .NET Framework 4.8"
winget upgrade --id <PackageId> --silent

Complete PowerShell patch script


# Patch Microsoft .NET Framework 4.8 for CVE-2024-29059
$log = "C:\Backup\CVE-2024-29059-patch.log"
"[{0}] Starting patch run" -f (Get-Date) | Tee-Object -FilePath $log -Append
try {
    $stamp = Get-Date -Format yyyyMMdd-HHmm
    $backup = "C:\Backup\microsoft-$stamp"
    New-Item -ItemType Directory -Path $backup -Force | Out-Null
    # Backup hook - tailor for the product
    # Copy-Item "C:\Program Files\Microsoft .NET Framework 4.8" $backup -Recurse -ErrorAction SilentlyContinue

    if (-not (Get-Module -ListAvailable PSWindowsUpdate)) {
        Install-Module PSWindowsUpdate -Force -Scope CurrentUser
    }
    Import-Module PSWindowsUpdate
    Get-WindowsUpdate -MicrosoftUpdate -AcceptAll -Install -AutoReboot:$false -IgnoreReboot
    "[{0}] Updates installed" -f (Get-Date) | Tee-Object -FilePath $log -Append
    # Verify
    Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 5 | Out-File $log -Append
    "[{0}] Patch run complete - reboot at next maintenance window" -f (Get-Date) | Tee-Object -FilePath $log -Append
} catch {
    "[{0}] ERROR: $_" -f (Get-Date) | Tee-Object -FilePath $log -Append
    exit 1
}

After applying the patch

  1. Restart the service or device so the patched binary loads.
  2. Confirm the running version matches the Fixed in row using the verification command below.
  3. Rotate credentials and API keys that the affected service could access if the asset was exposed during the disclosure window.

If you can't patch immediately

Until the patch lands, narrow the attack surface with these runnable controls.

Restrict the affected service via Windows Firewall


# Replace -RemoteAddress with your trusted admin range
New-NetFirewallRule -DisplayName "Block CVE-2024-29059 inbound" -Direction Inbound -Action Block -Protocol TCP -LocalPort 445,3389,5985
New-NetFirewallRule -DisplayName "Allow CVE-2024-29059 admin range" -Direction Inbound -Action Allow -Protocol TCP -LocalPort 445,3389,5985 -RemoteAddress 10.10.10.0/24

Disable the vulnerable feature if the vendor advisory allows it


# Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-29059
# Example: stopping a non-essential Windows service
Stop-Service -Name <ServiceName> -Force
Set-Service -Name <ServiceName> -StartupType Disabled

Mitigations are temporary. Apply the vendor patch as soon as a maintenance window opens.

How to verify the fix worked

Confirm the patched build is the one actually running.


# Confirm KB / hotfix is present
Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 10
# Confirm product version
Get-CimInstance Win32_Product | Where-Object Name -like "*Microsoft .NET Framework 4.8*" | Select-Object Name, Version

Expected: the patched build named in Fixed in (10.0.10240.20402, 3.0.30729.8959, 3.0.50727.8976, 4.7.04081.03, 4.8.04690.02 (see advisory)) appears in the version column.

Also worth doing: pull recent log windows for any indicators of compromise listed in the vendor advisory, and re-run an authenticated vulnerability scan with up-to-date signatures.

Frequently asked questions

Other vulnerabilities in the same area that are worth patching alongside this one:

Is CVE-2024-29059 being exploited in the wild?

Yes. CISA added CVE-2024-29059 to the Known Exploited Vulnerabilities catalog on 2025-02-04. KEV listing means at least one confirmed real-world exploitation report exists.

Do I have to take downtime to patch?

For most Microsoft .NET Framework 4.8 deployments, the patched build needs a service restart or device reboot. HA pairs and clusters can roll the upgrade by patching the standby first, failing over, then patching the former primary.

Will a WAF or IDS rule alone close CVE-2024-29059?

No. Network filters cut down opportunistic scans but they do not remove the flaw. The vendor patch is the only durable fix.

How quickly should I act on CVE-2024-29059?

Within the standard patch cycle if the asset is internal-only. Inside one to two weeks for any internet-facing instance, sooner if compensating controls are not in place.

References


*Assembled from the official vendor advisory, the NVD record, and the CISA KEV listing on 2026-05-25. Always confirm against the vendor advisory before applying changes in production.*