Anatomy of an Automated Patch: Fixing a File Upload RCE CVE-2025-59304