CISA urges devs to weed out OS command injection vulnerabilities

Share:

​CISA and the FBI urged software companies on Wednesday to review their products and eliminate path OS command injection vulnerabilities before shipping.

The advisory was released in response to recent attacks that exploited multiple OS command injection security flaws (CVE-2024-20399, CVE-2024-3400, and CVE-2024-21887) to compromise Cisco, Palo Alto, and Ivanti network edge devices.

Velvet Ant, the Chinese state-sponsored threat actor that coordinated these attacks, deployed custom malware to gain persistence on hacked devices as part of a cyber espionage campaign.

“OS command injection vulnerabilities arise when manufacturers fail to properly validate and sanitize user input when constructing commands to execute on the underlying OS,” today’s joint advisory explains.

“Designing and developing software that trusts user input without proper validation or sanitization can allow threat actors to execute malicious commands, putting customers at risk.”

CISA advises developers to implement well-known mitigations to prevent OS command injection vulnerabilities at scale while designing and developing software products:

  • Use built-in library functions that separate commands from their arguments whenever possible instead of constructing raw strings fed into a general-purpose system command.
  • Use input parameterization to keep data separate from commands; validate and sanitize all user-supplied input.
  • Limit the parts of commands constructed by user input to only what is necessary.

Tech leaders should be actively involved in the software development process. They can do this by ensuring that the software uses functions that generate commands safely while preserving the command’s intended syntax and arguments.

Additionally, they should review threat models, use modern component libraries, conduct code reviews, and implement rigorous product testing to ensure the quality and security of their code throughout the development lifecycle.

 

“OS command injection vulnerabilities have long been preventable by clearly separating user input from the contents of a command. Despite this finding, OS command injection vulnerabilities—many of which result from CWE-78—are still a prevalent class of vulnerability,” CISA and the FBI added.

“CISA and FBI urge CEOs and other business leaders at technology manufacturers to request their technical leaders to analyze past occurrences of this class of defect and develop a plan to eliminate them in the future.”

OS command injection security bugs took the fifth spot in MITRE’s top 25 most dangerous software weaknesses, surpassed only by out-of-bounds write, cross-site scripting, SQL injection, and use-after-free flaws.

In May and March, two other “Secure by Design” alerts urged tech executives and software developers to weed out path traversal and SQL injection (SQLi) security vulnerabilities.

Leave a Comment

Your email address will not be published. Required fields are marked *

loader-image
London, GB
9:58 pm, May 9, 2025
weather icon 13°C
L: 12° | H: 14°
clear sky
Humidity: 57 %
Pressure: 1021 mb
Wind: 12 mph E
Wind Gust: 0 mph
UV Index: 0
Precipitation: 0 mm
Clouds: 10%
Rain Chance: 0%
Visibility: 10 km
Sunrise: 5:17 am
Sunset: 8:35 pm
DailyHourly
Daily ForecastHourly Forecast
Today 10:00 pm
weather icon
12° | 14°°C 0 mm 0% 8 mph 57 % 1021 mb 0 mm/h
Tomorrow 10:00 pm
weather icon
10° | 20°°C 0 mm 0% 11 mph 77 % 1021 mb 0 mm/h
Sun May 11 10:00 pm
weather icon
11° | 22°°C 0.66 mm 66% 11 mph 80 % 1015 mb 0 mm/h
Mon May 12 10:00 pm
weather icon
13° | 21°°C 0.38 mm 38% 14 mph 91 % 1014 mb 0 mm/h
Tue May 13 10:00 pm
weather icon
13° | 20°°C 1 mm 100% 10 mph 83 % 1020 mb 0 mm/h
Today 10:00 pm
weather icon
12° | 13°°C 0 mm 0% 8 mph 57 % 1021 mb 0 mm/h
Tomorrow 1:00 am
weather icon
11° | 12°°C 0 mm 0% 6 mph 62 % 1021 mb 0 mm/h
Tomorrow 4:00 am
weather icon
10° | 11°°C 0 mm 0% 4 mph 77 % 1020 mb 0 mm/h
Tomorrow 7:00 am
weather icon
11° | 11°°C 0 mm 0% 6 mph 76 % 1020 mb 0 mm/h
Tomorrow 10:00 am
weather icon
16° | 16°°C 0 mm 0% 9 mph 40 % 1019 mb 0 mm/h
Tomorrow 1:00 pm
weather icon
18° | 18°°C 0 mm 0% 11 mph 30 % 1018 mb 0 mm/h
Tomorrow 4:00 pm
weather icon
20° | 20°°C 0 mm 0% 11 mph 34 % 1017 mb 0 mm/h
Tomorrow 7:00 pm
weather icon
17° | 17°°C 0 mm 0% 10 mph 41 % 1016 mb 0 mm/h
Name Price24H (%)
Bitcoin(BTC)
€91,822.46
0.93%
Ethereum(ETH)
€2,073.81
7.64%
Tether(USDT)
€0.89
0.00%
XRP(XRP)
€2.09
2.37%
Solana(SOL)
€153.35
6.32%
USDC(USDC)
€0.89
0.00%
Dogecoin(DOGE)
€0.182341
5.62%
Shiba Inu(SHIB)
€0.000013
5.25%
Pepe(PEPE)
€0.000011
9.66%
Peanut the Squirrel(PNUT)
€0.320741
68.14%
Scroll to Top