CWE
NVD-CWE-Other 119
Advisory Published
Updated

CVE-2004-1304: Buffer Overflow

First published: Wed Dec 22 2004(Updated: )

Stack-based buffer overflow in the ELF header parsing code in file before 4.12 allows attackers to execute arbitrary code via a crafted ELF file.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
File File=4.7
File File=4.5
File File=4.4
File File=4.1
File File=4.10
File File=4.2
File File=4.9
File File=4.6
File File=4.3
File File=4.8
File File=4.0
File File=4.11
Trustix Secure Linux=2.0
Trustix Secure Linux=2.1
Trustix Secure Linux=2.2
Gentoo Linux

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2004-1304?

    CVE-2004-1304 is classified as a high-severity vulnerability due to its potential to allow arbitrary code execution.

  • How do I fix CVE-2004-1304?

    To fix CVE-2004-1304, update to a patched version of the 'file' utility that is newer than 4.12.

  • What systems are affected by CVE-2004-1304?

    CVE-2004-1304 affects multiple versions of the 'file' utility including versions 4.0 through 4.11.

  • What type of vulnerability is CVE-2004-1304?

    CVE-2004-1304 is a stack-based buffer overflow vulnerability that occurs in the ELF header parsing code.

  • Can CVE-2004-1304 be exploited remotely?

    Yes, CVE-2004-1304 can be exploited remotely by delivering a crafted ELF file to the vulnerable system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203