Intel

AIKIDO-2024-10483

Hangfire.Core is vulnerable to Improper Handling of Exceptional Conditions

CVE-2024-21907Published Nov 28, 2024
November 28, 2024

75

CVE Score

High

Improper Handling of Exceptional Conditions

Are you affected? Scan for Free

TL;DR

Affected versions of this package use a vulnerable version of the Newtonsoft.Json library, specifically versions prior to 13.0.1. These versions are impacted by CVE-2024-21907, which stems from insecure defaults in handling deeply nested expressions. This can lead to a StackOverflowException or excessive CPU and memory consumption, resulting in a Denial of Service (DoS). Attackers can exploit this vulnerability by providing input with high nesting levels, overwhelming system resources and causing the application to crash or become unresponsive. However, the risk can be mitigated by manually configuring the MaxDepth property in JsonSerializerSettings to limit the depth of nested objects during serialization, which is done for Hangfire.Core in the patch version.

How do I fix this?

Upgrade the Hangfire.Core library to the patch version.

Who does this affect?

You are affected if you are using a version which is within vulnerability ranges

Versions

0.5 - 1.8.15

Fixed in 1.8.16

Background info

Hangfire.Core is vulnerable to Improper Handling of Exceptional Conditions in versions 0.5 - 1.8.15.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea