ALSA-2024:4256 - Important: less security update

less Updated 02 Oct 2025

Summary

02/07/2024
N/A
Yes i
Unrated
Not published

ALSA-2024:4256: Important: less security update. Affects less versions < 530-3.el8_10. Fixed in 530-3.el8_10. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The "less" utility is a text file browser that resembles "more", but allows users to move backwards in the file as well as forwards. It is designed to read and display text files in a terminal. Unlike traditional text editors, "less" does not load the entire file into memory at startup, making it faster for large files. The utility is commonly used for viewing log files, reading documentation, and navigating through long texts.

The vulnerability affects the "less" utility in AlmaLinux 8. It is important to keep this utility updated to ensure the security of the system.

Vulnerability Detail

The vulnerability in the "less" utility includes two security issues:

  1. OS command injection (CVE-2024-32487): This vulnerability allows an attacker to execute arbitrary commands on the system by injecting malicious commands through specially crafted input files. If a user opens a malicious file with the "less" utility, the injected commands can be executed with the privileges of the user running "less".

  2. Missing quoting of shell metacharacters in LESSCLOSE handling (CVE-2022-48624): This vulnerability allows an attacker to execute arbitrary commands during the handling of the LESSCLOSE environment variable. By manipulating the variable, an attacker can execute commands with the privileges of the user running "less".

These vulnerabilities can lead to unauthorized command execution and potential compromise of the system.

How To Fix

Minimum fixed version

530-3.el8_10

This is the first release that contains the fix.

sudo dnf update less

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The "less" utility in AlmaLinux 8 is vulnerable to OS command injection and shell metacharacter quoting issues. These vulnerabilities can allow an attacker to execute arbitrary commands on the system. It is crucial to update the "less" package to the fixed version to mitigate the risk of unauthorized access and potential compromise of the system.

See every vulnerability recorded for less →

Share this vulnerability

FAQ

These vulnerabilities can allow an attacker to execute arbitrary commands on the system, potentially leading to unauthorized access, data loss, or further compromise of the system.

No, only versions prior to 530-3.el8_10 in AlmaLinux 8 are affected. Updating to the fixed version will resolve the vulnerabilities.

At the time of this advisory, there are no known public exploits for these vulnerabilities. However, it is important to apply the security update as soon as possible to mitigate the risk.

No, these vulnerabilities require a user to open a specially crafted file using the "less" utility. Remote exploitation is not possible without user interaction.

Yes, there are alternative text file browsers available, such as "more" and "cat". However, it is recommended to update the "less" utility to the fixed version to ensure the security of the system.

Related vulnerabilities

Recent vulnerabilities recorded for less.

How To Fix

Minimum fixed version

530-3.el8_10

This is the first release that contains the fix.

sudo dnf update less

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback