CVE-2021-41238
C# vulnerability analysis and mitigation

Overview

Hangfire, an open-source system for background job processing in .NET and .NET Core applications, was affected by a security vulnerability in version 1.7.25. The vulnerability (CVE-2021-41238) involved a regression in the Dashboard UI's default authorization settings, where no authorization filters were being used by default, allowing unauthorized remote access to sensitive data (GitHub Advisory).

Technical details

The vulnerability stems from a change in version 1.7.25 where the default LocalRequestsOnlyAuthorizationFilter was not being applied to the Dashboard UI. This filter was designed to allow only local requests and prohibit remote requests as a security measure. Without this filter, remote requests could succeed without proper authorization. The issue specifically affects installations using the UseHangfireDashboard method with default DashboardOptions.Authorization property value (GitHub Advisory).

Impact

The vulnerability allows unauthorized remote access to the Hangfire Dashboard UI, potentially exposing sensitive data and system information to unauthorized users. This affects installations where no custom authorization rules are configured, which is a common default setup as recommended in the documentation (GitHub Advisory).

Mitigation and workarounds

The issue was patched in version 1.7.26, which restored the default authorization rules to prohibit remote requests by including the LocalRequestsOnlyAuthorizationFilter. For users unable to upgrade, a workaround is available by explicitly configuring the LocalRequestsOnlyAuthorizationFilter in the Dashboard UI setup. This can be done by adding the filter to the DashboardOptions.Authorization property (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related C# vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-64095CRITICAL9.8
  • C#C#
  • DNN.PLATFORM
NoYesOct 28, 2025
CVE-2025-62594MEDIUM5.5
  • C#C#
  • Magick.NET-Q8-OpenMP-arm64
NoYesOct 27, 2025
CVE-2025-64094MEDIUM5.4
  • C#C#
  • DotNetNuke.Core
NoYesOct 28, 2025
CVE-2025-65955MEDIUM4.9
  • C#C#
  • Magick.NET-Q8-arm64
NoYesDec 02, 2025
CVE-2025-62802MEDIUM4.3
  • C#C#
  • Dnn.Platform
NoYesOct 28, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management