CVE-2022-48624 Command injection in n/a

High 7.8 Published Updated

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:8All versions530-2.el8_9
less AlmaLinux:9All versions590-3.el9_3
less Red Hat:enterprise_linux:8::baseosAll versions0:530-2.el8_9
less-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:530-2.el8_9
less-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:530-2.el8_9
less Red Hat:enterprise_linux:9::baseosAll versions0:590-3.el9_3
less-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:590-3.el9_3
less-debugsource Red Hat:enterprise_linux:9::baseosAll versions0:590-3.el9_3
less Red Hat:rhel_eus:8.6::baseosAll versions0:530-2.el8_6
less-debuginfo Red Hat:rhel_eus:8.6::baseosAll versions0:530-2.el8_6
less-debugsource Red Hat:rhel_eus:8.6::baseosAll versions0:530-2.el8_6
less Red Hat:rhel_eus:8.8::baseosAll versions0:530-2.el8_8
less-debuginfo Red Hat:rhel_eus:8.8::baseosAll versions0:530-2.el8_8
less-debugsource Red Hat:rhel_eus:8.8::baseosAll versions0:530-2.el8_8
less Rocky Linux:8All versions0:530-2.el8_9
less Rocky Linux:9All versions0:590-3.el9_3
less SUSE:Enterprise Storage 7.1All versions530-150000.3.6.2
less SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions530-150000.3.6.2
less SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions530-150000.3.6.2
less SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions590-150400.3.6.2
less SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions590-150400.3.6.2
less SUSE:Linux Enterprise Micro 5.1All versions530-150000.3.6.2
less SUSE:Linux Enterprise Micro 5.2All versions530-150000.3.6.2
less SUSE:Linux Enterprise Micro 5.3All versions590-150400.3.6.2
less SUSE:Linux Enterprise Micro 5.4All versions590-150400.3.6.2
less SUSE:Linux Enterprise Micro 5.5All versions590-150400.3.6.2
less SUSE:Linux Enterprise Module for Basesystem 15 SP5All versions590-150400.3.6.2
less SUSE:Linux Enterprise Server 12 SP5All versions458-7.12.1
less SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions530-150000.3.6.2
less SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions530-150000.3.6.2
less SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions590-150400.3.6.2
less SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions458-7.12.1
less SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions530-150000.3.6.2
less SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions530-150000.3.6.2
less SUSE:Linux Enterprise Server for SAP Applications 15 SP4All versions590-150400.3.6.2
less SUSE:Manager Proxy 4.3All versions590-150400.3.6.2
less SUSE:Manager Server 4.3All versions590-150400.3.6.2
less openSUSE:Leap 15.5All versions590-150400.3.6.2
less openSUSE:Leap Micro 5.3All versions590-150400.3.6.2
less openSUSE:Leap Micro 5.4All versions590-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.

Is CVE-2022-48624 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free