Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 2048519 (CVE-2022-0413) - CVE-2022-0413 vim: Use after free in src/ex_cmds.c
Summary: CVE-2022-0413 vim: Use after free in src/ex_cmds.c
Alias: CVE-2022-0413
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 2048520 2048525 2048526 2048527 2048730
TreeView+ depends on / blocked
Reported: 2022-01-31 12:35 UTC by Sandipan Roy
Modified: 2022-07-14 17:11 UTC (History)
16 users (show)

Fixed In Version: vim 8.2.4269
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in vim. The vulnerability occurs due to using freed memory when the substitute uses a recursive function call, resulting in a use-after-free vulnerability. This flaw allows an attacker to input a specially crafted file, leading to a crash or code execution.
Clone Of:
Last Closed: 2022-03-15 16:31:27 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:0894 0 None None None 2022-03-15 10:21:23 UTC

Comment 1 Sandipan Roy 2022-01-31 12:35:50 UTC
Created vim tracking bugs for this issue:

Affects: fedora-all [bug 2048520]

Comment 4 juneau 2022-01-31 17:53:00 UTC
Marking Services affected/delegated/low for presence of affected code.

In the vast majority of cases, the relevant package exists in a container image consumed by the service.
Recommend updating or replacing the container image (to update or remove the package) as appropriate.

Comment 7 errata-xmlrpc 2022-03-15 10:21:20 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:0894

Comment 8 Product Security DevOps Team 2022-03-15 16:31:24 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

Note You need to log in before you can comment on or make changes to this bug.