When people talk about expensive software bugs, they usually mention security breaches.

Or outages.

Or deployment failures.

Those certainly cost money.

But the most expensive bug I've seen wasn't in code at all.