Every CVE Search/ Get API key

CVE-2022-48624

close_altfile in filename.c in less before 606 omits shell_quote calls for LESSCLOSE.

7.8 HighFix available

close_altfile in filename.c in less before 606 omits shell_quote calls for LESSCLOSE.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

1.06%Up 1.0 points since Feb 19, 2024
90%50%10%1%

What each source reports

NVD Score used 7.8

close_altfile in filename.c in less before 606 omits shell_quote calls for LESSCLOSE.

Record
CVE-2022-48624
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-78
Updated
2026-11-02
CVE List 7.8

close_altfile in filename.c in less before 606 omits shell_quote calls for LESSCLOSE.

Record
CVE-2022-48624
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-78
Updated
2026-11-02
EUVDEUVD-2022-51319 7.8

close_altfile in filename.c in less before 606 omits shell_quote calls for LESSCLOSE.

Record
EUVD-2022-51319
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
GitHub AdvisoriesGHSA-p647-4jrw-p827 7.8

close_altfile in filename.c in less before 606 omits shell_quote calls for LESSCLOSE.

close_altfile in filename.c in less before 606 omits shell_quote calls for LESSCLOSE.

Record
GHSA-p647-4jrw-p827
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-78
Updated
2026-11-02
OSVAZL-34458 7.8

CVE-2022-48624 affecting package less for versions less than 590-3

close_altfile in filename.c in less before 606 omits shell_quote calls for LESSCLOSE.

Record
AZL-34458
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSV 7.8

close_altfile in filename.c in less before 606 omits shell_quote calls for LESSCLOSE.

Record
CVE-2022-48624
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 29 moreShow less
OSVDEBIAN-CVE-2022-48624 7.8

close_altfile in filename.c in less before 606 omits shell_quote calls for LESSCLOSE.

Record
DEBIAN-CVE-2022-48624
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-03
OSVOESA-2024-1219 3.6

less security update

Less is a pager. A pager is a program that displays text files. Other pagers commonly in use are more and pg. Pagers are often used in command-line environments like the Unix shell and the MS-DOS command prompt to display files.

Security Fix(es):

close_altfile in filename.c in less before 606 omits shell_quote calls for LESSCLOSE.(CVE-2022-48624)

Record
OESA-2024-1219
CVSS 3.1
3.6 LowCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Updated
2026-11-02
OSVRHSA-2024:1610 7.0

Red Hat Security Advisory: less security update

Record
RHSA-2024:1610
CVSS 3.1
7.0 HighCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2024:1692 7.0

Red Hat Security Advisory: less security update

Record
RHSA-2024:1692
CVSS 3.1
7.0 HighCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2024:1875 7.0

Red Hat Security Advisory: less security update

Record
RHSA-2024:1875
CVSS 3.1
7.0 HighCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2024:1989 7.0

Red Hat Security Advisory: less security update

Record
RHSA-2024:1989
CVSS 3.1
7.0 HighCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2024:4256 8.6

Red Hat Security Advisory: less security update

Record
RHSA-2024:4256
CVSS 3.1
8.6 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Updated
2026-11-02
OSVRLSA-2024:4256 8.6

Important: less security update

The "less" utility is a text file browser that resembles "more", but allows users to move backwards in the file as well as forwards. Since "less" does not read the entire input file at startup, it also starts more quickly than ordinary text editors.

Security Fix(es):

  • less: OS command injection (CVE-2024-32487)

  • less: missing quoting of shell metacharacters in LESSCLOSE handling (CVE-2022-48624)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Record
RLSA-2024:4256
CVSS 3.1
8.6 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2022-48624 7.8

close_altfile in filename.c in less before 606 omits shell_quote calls for LESSCLOSE.

Record
UBUNTU-CVE-2022-48624
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVALSA-2024:1610 No score

Moderate: less security update

The "less" utility is a text file browser that resembles "more", but allows users to move backwards in the file as well as forwards. Since "less" does not read the entire input file at startup, it also starts more quickly than ordinary text editors.

Security Fix(es):

  • less: missing quoting of shell metacharacters in LESSCLOSE handling (CVE-2022-48624)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Record
ALSA-2024:1610
Updated
2026-11-02
OSVALSA-2024:1692 No score

Moderate: less security update

The "less" utility is a text file browser that resembles "more", but allows users to move backwards in the file as well as forwards. Since "less" does not read the entire input file at startup, it also starts more quickly than ordinary text editors.

Security Fix(es):

  • less: missing quoting of shell metacharacters in LESSCLOSE handling (CVE-2022-48624)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Record
ALSA-2024:1692
Updated
2026-11-02
OSVALSA-2024:4256 No score

Important: less security update

The "less" utility is a text file browser that resembles "more", but allows users to move backwards in the file as well as forwards. Since "less" does not read the entire input file at startup, it also starts more quickly than ordinary text editors.

Security Fix(es):

  • less: OS command injection (CVE-2024-32487)
  • less: missing quoting of shell metacharacters in LESSCLOSE handling (CVE-2022-48624)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Record
ALSA-2024:4256
Updated
2026-11-02
OSVCLSA-2024-1713523278 No score

less: Fix of CVE-2022-48624

  • CVE-2022-48624: shell-quote filenames when invoking LESSCLOSE
Record
CLSA-2024-1713523278
Updated
2026-11-02
OSVCLSA-2024-1713523598 No score

less: Fix of CVE-2022-48624

  • CVE-2022-48624: shell-quote filenames when invoking LESSCLOSE
Record
CLSA-2024-1713523598
Updated
2026-11-02
OSVCLSA-2024-1713523762 No score

Fix CVE(s): CVE-2022-48624

  • SECURITY UPDATE: shell-quote filenames when invoking LESSCLOSE.
    • debian/patches/CVE-2022-48624.patch: Fix close_altfile in filename.c in less before 606 omits shell_quote calls for LESSCLOSE.
    • CVE-2022-48624
Record
CLSA-2024-1713523762
Updated
2026-11-02
OSVCLSA-2024-1714065925 No score

less: Fix of CVE-2022-48624

  • Fix CVE-2022-48624: filename.c (close_altfile): before 606 omits shell_quote calls for LESSCLOSE.
Record
CLSA-2024-1714065925
Updated
2026-11-02
OSVCLSA-2024-1714066220 No score

Fix CVE(s): CVE-2022-48624

  • SECURITY UPDATE: shell-quote filenames when invoking LESSCLOSE.
    • debian/patches/CVE-2022-48624.patch: Fix close_altfile in filename.c in less before 606 omits shell_quote calls for LESSCLOSE.
    • CVE-2022-48624
Record
CLSA-2024-1714066220
Updated
2026-11-02
OSVCLSA-2024-1716271951 No score

less: Fix of CVE-2022-48624

  • CVE-2022-48624: shell-quote filenames when invoking LESSCLOSE.
Record
CLSA-2024-1716271951
Updated
2026-11-02
OSVCLSA-2024-1716272169 No score

less: Fix of CVE-2022-48624

  • CVE-2022-48624: filename.c: shell-quote filenames when invoking LESSCLOSE.
Record
CLSA-2024-1716272169
Updated
2026-11-02
OSVCLSA-2024-1716272273 No score

less: Fix of CVE-2022-48624

  • CVE-2022-48624: filename.c: shell-quote filenames when invoking LESSCLOSE.
Record
CLSA-2024-1716272273
Updated
2026-11-02
OSVCLSA-2026-1777470383 No score

less: Fix of 2 CVEs

  • Extend ELS coverage to rhel7els, oraclelinux7els and cloudlinux7els.
  • CVE-2022-48624 and CVE-2024-32487 were already fixed in 458-10.tuxcare.els1; this release reships those fixes to the additional platforms.
Record
CLSA-2026-1777470383
Updated
2026-11-02
OSVCLSA-2026-1777471237 No score

less: Fix of 2 CVEs

  • Extend ELS coverage to rhel7els, oraclelinux7els and cloudlinux7els.
  • CVE-2022-48624 and CVE-2024-32487 were already fixed in 458-10.tuxcare.els1; this release reships those fixes to the additional platforms.
Record
CLSA-2026-1777471237
Updated
2026-11-02
OSVRLSA-2024:1610 No score

Moderate: less security update

The "less" utility is a text file browser that resembles "more", but allows users to move backwards in the file as well as forwards. Since "less" does not read the entire input file at startup, it also starts more quickly than ordinary text editors.

Security Fix(es):

  • less: missing quoting of shell metacharacters in LESSCLOSE handling (CVE-2022-48624)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Record
RLSA-2024:1610
Updated
2026-11-02
OSVRLSA-2024:1692 No score

Moderate: less security update

The "less" utility is a text file browser that resembles "more", but allows users to move backwards in the file as well as forwards. Since "less" does not read the entire input file at startup, it also starts more quickly than ordinary text editors.

Security Fix(es):

  • less: missing quoting of shell metacharacters in LESSCLOSE handling (CVE-2022-48624)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Record
RLSA-2024:1692
Updated
2026-11-02
OSVSUSE-SU-2024:1189-1 No score

Security update for less

This update for less fixes the following issues:

  • CVE-2022-48624: Fixed LESSCLOSE handling in less that does not quote shell metacharacters (bsc#1219901).
Record
SUSE-SU-2024:1189-1
Updated
2026-11-02
OSVSUSE-SU-2024:1190-1 No score

Security update for less

This update for less fixes the following issues:

  • CVE-2022-48624: Fixed LESSCLOSE handling in less that does not quote shell metacharacters (bsc#1219901).
Record
SUSE-SU-2024:1190-1
Updated
2026-11-02
OSVSUSE-SU-2024:1192-1 No score

Security update for less

This update for less fixes the following issues:

  • CVE-2022-48624: Fixed LESSCLOSE handling in less that does not quote shell metacharacters (bsc#1219901).
Record
SUSE-SU-2024:1192-1
Updated
2026-11-02
OSVUSN-6664-1 No score

less vulnerability

It was discovered that less incorrectly handled certain file names. An attacker could possibly use this issue to cause a crash or execute arbitrary commands.

Record
USN-6664-1
Updated
2026-11-02
OSVUSN-8079-1 No score

less vulnerability

It was discovered that less incorrectly handled certain file names. An attacker could possibly use this issue to cause a denial of service or execute arbitrary commands.

Record
USN-8079-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
less
AlmaLinux:8
before 530-2.el8_9
530-2.el8_9
less
AlmaLinux:9
before 590-3.el9_3
590-3.el9_3
less
AlmaLinux:8
From an advisory covering 2 CVEs
before 530-3.el8_10
530-3.el8_10
less
Azure Linux:2
before 590-3
590-3
less
TuxCare:CentOS:6
before 436-13.el6.tuxcare.els1
436-13.el6.tuxcare.els1
less
TuxCare:OracleLinux:6
before 436-13.el6.tuxcare.els1
436-13.el6.tuxcare.els1
less
TuxCare:Ubuntu:16.04
before 481-2.1ubuntu0.2+tuxcare.els1
481-2.1ubuntu0.2+tuxcare.els1
less
TuxCare:CentOS:7
before 458-9.el7.tuxcare.els1
458-9.el7.tuxcare.els1
less
TuxCare:Ubuntu:18.04
before 487-0.1+tuxcare.els1
487-0.1+tuxcare.els1
less
TuxCare:AlmaLinux:9.2
before 590-2.el9_2.tuxcare.els2
590-2.el9_2.tuxcare.els2
Show 64 moreShow less
Affected packages
PackageAffectedFixed
less
TuxCare:CentOS:8.4
before 530-1.el8.tuxcare.els2
530-1.el8.tuxcare.els2
less
TuxCare:CentOS:8.5
before 530-1.el8.tuxcare.els2
530-1.el8.tuxcare.els2
less
TuxCare:OracleLinux:7
From an advisory covering 2 CVEs
before 458-10.el7_9.tuxcare.els2
458-10.el7_9.tuxcare.els2
less
TuxCare:RHEL:7
From an advisory covering 2 CVEs
before 458-10.el7_9.tuxcare.els2
458-10.el7_9.tuxcare.els2
less
Debian:12
before 590-2.1~deb12u2, plus listed versions
590-2590-2+hurd.1590-2.1~deb12u1
590-2.1~deb12u2
less
Debian:13
before 590-2.1
590-2.1
less
Debian:14
before 590-2.1
590-2.1
less
Debian:10
From an advisory covering 2 CVEs
before 487-0.1+deb10u1, plus listed versions
487-0.1
487-0.1+deb10u1
less
Debian:11
From an advisory covering 2 CVEs
before 551-2+deb11u2, plus listed versions
551-2551-2+deb11u1
551-2+deb11u2
less
Debian:12
From an advisory covering 2 CVEs
before 590-2.1~deb12u2, plus listed versions
590-2590-2+hurd.1590-2.1~deb12u1
590-2.1~deb12u2
less
openEuler:20.03-LTS-SP1
before 590-3.oe1
590-3.oe1
less
openEuler:20.03-LTS-SP4
before 590-3.oe2003sp4
590-3.oe2003sp4
less
openEuler:22.03-LTS
before 590-5.oe2203sp3
590-5.oe2203sp3
less
openEuler:22.03-LTS-SP1
before 590-5.oe2203sp1
590-5.oe2203sp1
less
openEuler:22.03-LTS-SP2
before 590-5.oe2203sp2
590-5.oe2203sp2
less
openEuler:22.03-LTS-SP3
before 590-5.oe2203sp3
590-5.oe2203sp3
less
Red Hat:enterprise_linux:8::baseos
before 0:530-2.el8_9
0:530-2.el8_9
less-debuginfo
Red Hat:enterprise_linux:8::baseos
before 0:530-2.el8_9
0:530-2.el8_9
less-debugsource
Red Hat:enterprise_linux:8::baseos
before 0:530-2.el8_9
0:530-2.el8_9
less
Red Hat:enterprise_linux:9::baseos
before 0:590-3.el9_3
0:590-3.el9_3
less-debuginfo
Red Hat:enterprise_linux:9::baseos
before 0:590-3.el9_3
0:590-3.el9_3
less-debugsource
Red Hat:enterprise_linux:9::baseos
before 0:590-3.el9_3
0:590-3.el9_3
less
Red Hat:rhel_eus:8.8::baseos
before 0:530-2.el8_8
0:530-2.el8_8
less-debuginfo
Red Hat:rhel_eus:8.8::baseos
before 0:530-2.el8_8
0:530-2.el8_8
less-debugsource
Red Hat:rhel_eus:8.8::baseos
before 0:530-2.el8_8
0:530-2.el8_8
less
Red Hat:rhel_eus:8.6::baseos
before 0:530-2.el8_6
0:530-2.el8_6
less-debuginfo
Red Hat:rhel_eus:8.6::baseos
before 0:530-2.el8_6
0:530-2.el8_6
less-debugsource
Red Hat:rhel_eus:8.6::baseos
before 0:530-2.el8_6
0:530-2.el8_6
less
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:530-3.el8_10
0:530-3.el8_10
less-debuginfo
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:530-3.el8_10
0:530-3.el8_10
less-debugsource
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:530-3.el8_10
0:530-3.el8_10
less
Rocky Linux:8
before 0:530-2.el8_9
0:530-2.el8_9
less
Rocky Linux:9
before 0:590-3.el9_3
0:590-3.el9_3
less
Rocky Linux:8
From an advisory covering 2 CVEs
before 0:530-3.el8_10
0:530-3.el8_10
less
SUSE:Linux Enterprise Server 12 SP5
before 458-7.12.1
458-7.12.1
less
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
before 458-7.12.1
458-7.12.1
less
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS
before 530-150000.3.6.2
530-150000.3.6.2
less
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS
before 530-150000.3.6.2
530-150000.3.6.2
less
SUSE:Linux Enterprise Server 15 SP2-LTSS
before 530-150000.3.6.2
530-150000.3.6.2
less
SUSE:Linux Enterprise Server 15 SP3-LTSS
before 530-150000.3.6.2
530-150000.3.6.2
less
SUSE:Linux Enterprise Server for SAP Applications 15 SP2
before 530-150000.3.6.2
530-150000.3.6.2
less
SUSE:Linux Enterprise Server for SAP Applications 15 SP3
before 530-150000.3.6.2
530-150000.3.6.2
less
SUSE:Linux Enterprise Micro 5.1
before 530-150000.3.6.2
530-150000.3.6.2
less
SUSE:Linux Enterprise Micro 5.2
before 530-150000.3.6.2
530-150000.3.6.2
less
SUSE:Enterprise Storage 7.1
before 530-150000.3.6.2
530-150000.3.6.2
less
SUSE:Linux Enterprise Micro 5.3
before 590-150400.3.6.2
590-150400.3.6.2
less
SUSE:Linux Enterprise Micro 5.4
before 590-150400.3.6.2
590-150400.3.6.2
less
SUSE:Linux Enterprise Micro 5.5
before 590-150400.3.6.2
590-150400.3.6.2
less
SUSE:Linux Enterprise Module for Basesystem 15 SP5
before 590-150400.3.6.2
590-150400.3.6.2
less
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS
before 590-150400.3.6.2
590-150400.3.6.2
less
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS
before 590-150400.3.6.2
590-150400.3.6.2
less
SUSE:Linux Enterprise Server 15 SP4-LTSS
before 590-150400.3.6.2
590-150400.3.6.2
less
SUSE:Linux Enterprise Server for SAP Applications 15 SP4
before 590-150400.3.6.2
590-150400.3.6.2
less
SUSE:Manager Proxy 4.3
before 590-150400.3.6.2
590-150400.3.6.2
less
SUSE:Manager Server 4.3
before 590-150400.3.6.2
590-150400.3.6.2
less
openSUSE:Leap Micro 5.3
before 590-150400.3.6.2
590-150400.3.6.2
less
openSUSE:Leap Micro 5.4
before 590-150400.3.6.2
590-150400.3.6.2
less
openSUSE:Leap 15.5
before 590-150400.3.6.2
590-150400.3.6.2
less
Ubuntu:Pro:14.04:LTS
before 458-2ubuntu0.1~esm2, plus listed versions
458-2458-2ubuntu0.1~esm1
458-2ubuntu0.1~esm2
less
Ubuntu:Pro:16.04:LTS
before 481-2.1ubuntu0.2+esm1, plus listed versions
458-3458-3ubuntu1481-2481-2ubuntu1481-2.1481-2.1ubuntu0.1481-2.1ubuntu0.2
481-2.1ubuntu0.2+esm1
less
Ubuntu:Pro:18.04:LTS
before 487-0.1ubuntu0.1~esm1, plus listed versions
481-2.1ubuntu2481-2.1ubuntu3487-0.1
487-0.1ubuntu0.1~esm1
less
Ubuntu:20.04:LTS
before 551-1ubuntu0.2, plus listed versions
487-0.1build1551-1551-1ubuntu0.1
551-1ubuntu0.2
less
Ubuntu:22.04:LTS
before 590-1ubuntu0.22.04.2, plus listed versions
551-2551-2build1590-1590-1build1590-1ubuntu0.22.04.1
590-1ubuntu0.22.04.2
less
Ubuntu:24.04:LTS
before 590-2ubuntu1, plus listed versions
590-2
590-2ubuntu1

History

History
RecordedChangedSources
affected, factsOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2022-48624 is a high vulnerability (CVSS 7.8) in Greenwoodsoftware Less, published February 19, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.06%, the 64th percentile. Fixed in less 530-2.el8_9.

References

Show 50 moreShow less
MoveEnter Open