CVE-2022-48624 Command injection in n/a
Attackers can execute arbitrary commands via the LESSCLOSE environment variable due to missing shell quoting in the less utility.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-48624?
CVE-2022-48624 is a high-severity command injection vulnerability in n/a, published on 19 Feb 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
close_altfile in filename.c in less before 606 omits shell_quote calls for LESSCLOSE.
Weakness: CWE-78
Which versions are affected by CVE-2022-48624?
It affects 1 product.
Linux distribution packages (40)
less AlmaLinux:8 | All versions | 530-2.el8_9 |
less AlmaLinux:9 | All versions | 590-3.el9_3 |
less Red Hat:enterprise_linux:8::baseos | All versions | 0:530-2.el8_9 |
less-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:530-2.el8_9 |
less-debugsource Red Hat:enterprise_linux:8::baseos | All versions | 0:530-2.el8_9 |
less Red Hat:enterprise_linux:9::baseos | All versions | 0:590-3.el9_3 |
less-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:590-3.el9_3 |
less-debugsource Red Hat:enterprise_linux:9::baseos | All versions | 0:590-3.el9_3 |
less Red Hat:rhel_eus:8.6::baseos | All versions | 0:530-2.el8_6 |
less-debuginfo Red Hat:rhel_eus:8.6::baseos | All versions | 0:530-2.el8_6 |
less-debugsource Red Hat:rhel_eus:8.6::baseos | All versions | 0:530-2.el8_6 |
less Red Hat:rhel_eus:8.8::baseos | All versions | 0:530-2.el8_8 |
less-debuginfo Red Hat:rhel_eus:8.8::baseos | All versions | 0:530-2.el8_8 |
less-debugsource Red Hat:rhel_eus:8.8::baseos | All versions | 0:530-2.el8_8 |
less Rocky Linux:8 | All versions | 0:530-2.el8_9 |
less Rocky Linux:9 | All versions | 0:590-3.el9_3 |
less SUSE:Enterprise Storage 7.1 | All versions | 530-150000.3.6.2 |
less SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 530-150000.3.6.2 |
less SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 530-150000.3.6.2 |
less SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 590-150400.3.6.2 |
less SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 590-150400.3.6.2 |
less SUSE:Linux Enterprise Micro 5.1 | All versions | 530-150000.3.6.2 |
less SUSE:Linux Enterprise Micro 5.2 | All versions | 530-150000.3.6.2 |
less SUSE:Linux Enterprise Micro 5.3 | All versions | 590-150400.3.6.2 |
less SUSE:Linux Enterprise Micro 5.4 | All versions | 590-150400.3.6.2 |
less SUSE:Linux Enterprise Micro 5.5 | All versions | 590-150400.3.6.2 |
less SUSE:Linux Enterprise Module for Basesystem 15 SP5 | All versions | 590-150400.3.6.2 |
less SUSE:Linux Enterprise Server 12 SP5 | All versions | 458-7.12.1 |
less SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 530-150000.3.6.2 |
less SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 530-150000.3.6.2 |
less SUSE:Linux Enterprise Server 15 SP4-LTSS | All versions | 590-150400.3.6.2 |
less SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 458-7.12.1 |
less SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | All versions | 530-150000.3.6.2 |
less SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | All versions | 530-150000.3.6.2 |
less SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | All versions | 590-150400.3.6.2 |
less SUSE:Manager Proxy 4.3 | All versions | 590-150400.3.6.2 |
less SUSE:Manager Server 4.3 | All versions | 590-150400.3.6.2 |
less openSUSE:Leap 15.5 | All versions | 590-150400.3.6.2 |
less openSUSE:Leap Micro 5.3 | All versions | 590-150400.3.6.2 |
less openSUSE:Leap Micro 5.4 | All versions | 590-150400.3.6.2 |
Products include Greenwoodsoftware Less.
How do I fix CVE-2022-48624?
Upgrade to a fixed version.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-48624 being exploited?
There is no known exploitation of CVE-2022-48624 in the wild and no public exploit code.
Sources
Also known as ALSA-2024:1610, ALSA-2024:1692, AZL-34458, CLSA-2024-1713523278, CLSA-2024-1713523598, CLSA-2024-1713523762 and 20 more.