a weak moment
A moment when one fails to have the discipline to act according to one's principles or better judgment and instead does something regrettable. I admit that, in a weak moment, I accepted a bribe to allow development to proceed without proper safety measures in place. I'm so sorry I cheated on you. It was a weak moment, and I'm ashamed of what I did.