7.2
CWE
NVD-CWE-Other
Advisory Published
Updated

CVE-2004-1138

First published: Wed Dec 22 2004(Updated: )

VIM before 6.3 and gVim before 6.3 allow local users to execute arbitrary commands via a file containing a crafted modeline that is executed when the file is viewed using options such as (1) termcap, (2) printdevice, (3) titleold, (4) filetype, (5) syntax, (6) backupext, (7) keymap, (8) patchmode, or (9) langmenu.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
Vim by Vim Development Group=5.0
Vim by Vim Development Group=5.1
Vim by Vim Development Group=5.2
Vim by Vim Development Group=5.3
Vim by Vim Development Group=5.4
Vim by Vim Development Group=5.5
Vim by Vim Development Group=5.6
Vim by Vim Development Group=5.7
Vim by Vim Development Group=5.8
Vim by Vim Development Group=6.0
Vim by Vim Development Group=6.1
Vim by Vim Development Group=6.2
Vim by Vim Development Group=6.3.011
Vim by Vim Development Group=6.3.025
Vim by Vim Development Group=6.3.030
Vim by Vim Development Group=6.3.044

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-1138?

    CVE-2004-1138 is classified as a high severity vulnerability due to its ability to allow local users to execute arbitrary commands.

  • How do I fix CVE-2004-1138?

    To fix CVE-2004-1138, upgrade to Vim 6.3 or later which contains the necessary patches addressing this vulnerability.

  • Who is affected by CVE-2004-1138?

    CVE-2004-1138 affects local users of Vim versions prior to 6.3 across multiple versions including 5.0 to 6.2.

  • What vulnerabilities are similar to CVE-2004-1138?

    Similar vulnerabilities include various command injection vulnerabilities in text editors that allow arbitrary code execution through crafted files.

  • Can CVE-2004-1138 be exploited remotely?

    No, CVE-2004-1138 requires local access to the system to exploit the vulnerability.

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