Skip to content
DoS Disclosed report Intermediate

Possible DoS in NumberHelpers

Active Support's number helpers accepted strings in scientific notation, so a string like a large exponent was parsed by BigDecimal into a number with an enormous number of digits. An application passing user input to a helper such as number_to_currency could be taken down by a single request through memory exhaustion or CPU use.

manun Follow

Originally disclosed on HackerOne

  • Triaged in 5 days
  • Fixed in 17 months
  • Disclosed after 23 months

Summary by the program

Active Support's number helpers accepted strings in scientific notation. BigDecimal parses a string such as "11288E822220222" into a number with hundreds of trillions of digits, and formatting that number exhausts memory or ties up the CPU. An application that passes user input to number_to_currency, number_to_percentage or another number helper can be taken down by a single request.

CVE-2026-33176 fixes this in Active Support 7.2.3.1, 8.0.4.1 and 8.1.2.1. The helpers now treat any string containing e or d as non-numeric and return it unchanged, as they already did for other non-numeric input.

Thanks to @manun for the report.

The original report as published on HackerOne, by manun. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the number helpers did not reject scientific-notation strings before passing them to BigDecimal, which expands the exponent into a full digit sequence.

Impact

A single request carrying such a string could exhaust memory or tie up the CPU, taking the application down (denial of service).

What the attacker needed

Application passes user input to a number helper

The fix

It was fixed in Active Support [redacted], [redacted] and [redacted] by treating any string containing 'e' or 'd' as non-numeric and returning it unchanged.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Some helper functions in the Ruby on Rails framework turn numbers into display text, for example currency amounts. They also accepted text written in scientific notation, a compact way of writing very large numbers such as a small digit followed by a huge exponent. The helper then tried to expand that into a full number, which needs an impossible amount of memory or processing time, so one request could stall or crash the server.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by manun

View all

2 more disclosed reports, best first.

More from Ruby on Rails

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.