REDHAT-BUG-2450907: Command Injection

Published Mar 24, 2026
·
Updated

Vim is an open source, command line text editor. Prior to version 9.2.0202, a command injection vulnerability exists in Vim's glob() function on Unix-like systems. By including a newline character (\n) in a pattern passed to glob(), an attacker may be able to execute arbitrary shell commands. This vulnerability depends on the user's 'shell' setting. This issue has been patched in version 9.2.0202.

Affected Software

1 affected component
vim Vim<9.2.0202

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Vim to a version that resolves this vulnerability.

    Fixed in 9.2.0202
  2. Configuration

    Because the glob() command injection depends on Vim's user's 'shell' setting, review the user's Vim 'shell' configuration and set it to a trusted/expected shell environment before using glob() (exact mitigation parameters not specified in the provided text).

    Vim shell = (not specified)

Event History

Mar 24, 2026
Data Sourced
via Red Hat·08:02 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2450907?

The severity of REDHAT-BUG-2450907 is high due to the potential for arbitrary code execution.

2

How do I fix REDHAT-BUG-2450907?

To fix REDHAT-BUG-2450907, you should update Vim to version 9.2.0202 or later.

3

What systems are affected by REDHAT-BUG-2450907?

REDHAT-BUG-2450907 affects Unix-like systems running Vim versions prior to 9.2.0202.

4

What specific vulnerability is associated with REDHAT-BUG-2450907?

REDHAT-BUG-2450907 is associated with a command injection vulnerability in Vim's glob() function.

5

Can REDHAT-BUG-2450907 be exploited remotely?

Yes, if an attacker can craft input patterns containing newline characters, REDHAT-BUG-2450907 can potentially be exploited remotely.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203