Cyberrisk

Open source vulnerability scanner found with a serious vulnerability in its own code

Share:

The flaw could allow attackers to bypass Nuclei’s template signature verification process to inject malicious codes into host systems.

A widely popular open-source tool, Nuclei, used for scanning vulnerabilities and weaknesses in websites, cloud applications, and networks is found to have a high-severity flaw that could potentially allow attackers to execute malicious codes on local systems.

The flaw tracked as CVE-2024-43405 is assigned a CVSS score of 7.4 out of 10 and is said to impact all versions of Nuclei later than 3.0.0.

Attackers could use maliciously crafted templates with arbitrary codes that can allow access to sensitive host data, according to the researchers at Cloud security firm Wiz, which was credited with the discovery of CVE-2024-43405. The bypass POC has been published with the description for users.

According to a description by ProjectDiscovery, the developer and maintainer of Nuclei, the flaw is present in the template signature verification process, specifically in the “signer” package.

“A vulnerability has been identified in Nuclei’s template signature verification system that could allow an attacker to bypass the signature check and possibly execute malicious code via custom code template,” ProjectDiscovery said in the description.

The flaw has received a patch in the Nuclei v3.3.2 rollout.

Spoofing Nuclei’s template verification

Nuclei has over 21,000 stars on GitHub and over 2.1 million downloads. The tool uses “templates,” in the form of YAML files, that define specific checks or tests for the vulnerability scanning process. Ensuring the authenticity of these templates is crucial to avoid tampered or malicious templates that are misleading or compromising the scanning process.

Nuclei has a Go regex-based signature verification process in place to ensure authenticity. The flaw stems from a discrepancy between how the signature verification process and the YAML parser handle newline characters, ProjectDiscovery explained. While Go’s verification logic considers “\r” part of the same line, the YAML parser treats it as a line break, thereby leaving room for attackers to insert malicious codes.

This, combined with the fact that Nuclei has flawed processing of multiple signature lines “digest:,” can potentially lead to an attacker injecting malicious content into a template while keeping the signature valid for the harmless portion of the template.

Both CLI and SDK users are affected

According to ProjectDiscovery, both CLI and SDK users of Nuclei are impacted and need to apply patches. CLI users include those executing custom code templates from unverified sources like third parties and unverified repositories.

SDK users are affected when developers integrating Nuclei into their platforms permit the execution of custom code templates by end-users.

Apart from upgrading to the fixed version that has been available since September 4, 2024, an interim measure could include refraining from using custom templates, ProjectDiscovery advised.

Source

Leave a Comment

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

loader-image
London, GB
1:22 pm, Apr 2, 2025
weather icon 15°C
L: 14° | H: 16°
scattered clouds
Humidity: 48 %
Pressure: 1021 mb
Wind: 24 mph ENE
Wind Gust: 0 mph
UV Index: 0
Precipitation: 0 mm
Clouds: 33%
Rain Chance: 0%
Visibility: 10 km
Sunrise: 6:33 am
Sunset: 7:34 pm
DailyHourly
Daily ForecastHourly Forecast
Today 10:00 pm
weather icon
14° | 16°°C 0 mm 0% 16 mph 68 % 1021 mb 0 mm/h
Tomorrow 10:00 pm
weather icon
9° | 16°°C 0 mm 0% 11 mph 85 % 1022 mb 0 mm/h
Fri Apr 04 10:00 pm
weather icon
10° | 18°°C 0 mm 0% 14 mph 82 % 1022 mb 0 mm/h
Sat Apr 05 10:00 pm
weather icon
6° | 17°°C 0 mm 0% 12 mph 79 % 1022 mb 0 mm/h
Sun Apr 06 10:00 pm
weather icon
7° | 14°°C 0 mm 0% 12 mph 76 % 1025 mb 0 mm/h
Today 4:00 pm
weather icon
15° | 15°°C 0 mm 0% 16 mph 50 % 1021 mb 0 mm/h
Today 7:00 pm
weather icon
13° | 14°°C 0 mm 0% 12 mph 57 % 1020 mb 0 mm/h
Today 10:00 pm
weather icon
10° | 10°°C 0 mm 0% 11 mph 68 % 1021 mb 0 mm/h
Tomorrow 1:00 am
weather icon
10° | 10°°C 0 mm 0% 10 mph 75 % 1021 mb 0 mm/h
Tomorrow 4:00 am
weather icon
9° | 9°°C 0 mm 0% 9 mph 80 % 1020 mb 0 mm/h
Tomorrow 7:00 am
weather icon
9° | 9°°C 0 mm 0% 9 mph 85 % 1020 mb 0 mm/h
Tomorrow 10:00 am
weather icon
12° | 12°°C 0 mm 0% 11 mph 63 % 1020 mb 0 mm/h
Tomorrow 1:00 pm
weather icon
16° | 16°°C 0 mm 0% 11 mph 51 % 1020 mb 0 mm/h
Name Price24H (%)
Bitcoin(BTC)
€78,527.88
0.95%
Ethereum(ETH)
€1,731.14
0.15%
Tether(USDT)
€0.93
0.01%
XRP(XRP)
€1.96
-1.28%
Solana(SOL)
€116.63
-1.23%
USDC(USDC)
€0.93
0.00%
Dogecoin(DOGE)
€0.159001
0.44%
Shiba Inu(SHIB)
€0.000011
-3.47%
Pepe(PEPE)
€0.000006
-2.01%
Scroll to Top