CVE-2025-57613
7.5rust-ffmpeg · rust-ffmpeg
A null pointer dereference in the rust-ffmpeg input constructor allows an unauthenticated attacker to trigger a denial of service.
Executive summary
A null pointer dereference vulnerability in rust-ffmpeg version 0.3.0 exposes systems to potential denial of service attacks through improper error handling.
Vulnerability
The vulnerability resides in the input constructor function where a failed avio_alloc_context call returns a NULL pointer. This pointer is subsequently dereferenced by the Io struct's Drop implementation, which can be triggered by an unauthenticated attacker to crash the application.
Business impact
Successful exploitation of this vulnerability results in a denial of service condition, rendering the affected application or service unavailable. Given the CVSS score of 7.5, this high severity flaw poses a significant risk to operational continuity, as it allows unauthenticated remote attackers to disrupt services without requiring prior access or interaction.
Remediation
Immediate Action: Monitor the official rust-ffmpeg GitHub repository for a patch or updated crate release, as no official fix is currently confirmed.
Proactive Monitoring: Review application logs for crashes or unexpected service termination patterns that correlate with media processing tasks.
Compensating Controls: Implement resource limits and input validation at the application boundary to minimize the impact of malformed inputs that might trigger failure conditions in the underlying library.
Exploitation status
Public Exploit Available: Unknown.
Analyst recommendation
Due to the potential for unauthenticated denial of service, users of rust-ffmpeg 0.3.0 should evaluate their exposure to untrusted media inputs. Organizations should prioritize testing and deploying security updates as soon as the maintainers provide a resolution to the identified null pointer dereference.