CVE-2025-13035
HighSummary
Wtyczka Code Snippets dla WordPressa jest podatna na wstrzykiwanie kodu PHP we wszystkich wersjach do 3.9.1 włącznie. Problem wynika z użycia funkcji extract() na atrybutach shortcode kontrolowanych przez atakującego, co pozwala na nadpisanie zmiennej `$filepath` i wykonanie dowolnego kodu PHP na serwerze.
Risk Assessment
Atakujący z dostępem na poziomie Contributor i wyżej mogą wykorzystać tę podatność do wykonania złośliwego kodu PHP, co stwarza poważne zagrożenie dla bezpieczeństwa serwera i danych organizacji.
Recommendation
Zaleca się aktualizację wtyczki Code Snippets do najnowszej wersji oraz sprawdzenie ustawień dotyczących wykonania plików, aby zminimalizować ryzyko wstrzykiwania kodu.
Related vulnerabilities
- CVE-2025-12999Critical
A vulnerability in Open VSX allows an unauthenticated attacker to poison the per-extension metadata cache by supplying a crafted X-Forwarded-Host header, replacing download, signature, and public-key URLs with attacker-controlled ones. The cache keys do not include the host, so poisoned entries are served to all clients for the entry's lifetime (1 hour by default, cluster-wide with Redis).
- CVE-2026-82187Critical
The Web to Print Online Designer WordPress plugin before 2.15.0 does not validate the type or extension of uploaded files, and hands the token protecting those uploads to any visitor who asks for it. This allows unauthenticated attackers to upload arbitrary files, including PHP ones, and run code on the server.
- CVE-2026-94101Critical
A security vulnerability has been detected in Netcore NBR200V2 1.3.241127.071246. The affected function is vlan_load_form_uci in /usr/bin/routerd, where manipulation of the wan_num argument leads to buffer overflow. The attack can be initiated remotely and the exploit is publicly disclosed.
- CVE-2026-94100Critical
A weakness has been identified in Netcore NBR200V2 1.3.241127.071246. The affected function is wan_config_set_vlan in /usr/bin/routerd, where manipulation of the vlan_wanX.ports argument leads to buffer overflow. The attack can be performed remotely and the exploit is publicly available.
- CVE-2026-94099Critical
A security flaw has been discovered in Netcore NBR200V2 1.3.241127.071246. The issue affects the restore.cgi file in the Backup Restore component, where manipulation of the QUERY_STRING argument results in command injection. The attack can be carried out remotely and the exploit is publicly released.
- CVE-2026-94098Critical
A vulnerability was identified in Netcore NBR200V2 1.3.241127.071246. The vulnerability affects the /www/cgi-bin/upgrade file in the Firmware Upgrade CGI Endpoint component, where manipulation of the QUERY_STRING argument leads to command injection. The attack can be executed remotely and the exploit is publicly available.
- CVE-2026-94097Critical
A vulnerability was determined in Netcore NBR200V2 1.3.241127.071246. The vulnerability affects the /www/cgi-bin/network_tools file in the CGI Diagnostic Endpoint component, where manipulation of the param/key/val arguments causes command injection. Remote exploitation is possible and the exploit has been publicly disclosed.
- CVE-2026-94096Critical
A vulnerability was found in Netcore NBR200V2 1.3.241127.071246. The vulnerability affects the /usr/bin/network_tools file in the LAN IP Configuration Handler component, where manipulation of the ipv4 argument results in command injection. The attack may be launched remotely and the exploit has been made public.
- CVE-2026-94095Critical
A vulnerability has been found in Netcore NBR200V2 1.3.241127.071246. The vulnerability affects the /usr/bin/network_tools file in the Traceroute Diagnostic Feature component, where manipulation of the url argument leads to command injection. The attack may be initiated remotely and the exploit has been disclosed publicly.
- CVE-2026-94089Critical
A vulnerability was found in D-Link DIR-868L 2.01b05 in the strcpy function of the file /webfa_authentication.cgi in the Authentication Handler component. Manipulating the id/password arguments leads to a stack-based buffer overflow. The attack can be executed remotely, and the exploit has been publicly disclosed.
Original NVD description (English source)
The Code Snippets plugin for WordPress is vulnerable to PHP Code Injection in all versions up to, and including, 3.9.1. This is due to the plugin's use of extract() on attacker-controlled shortcode attributes within the `evaluate_shortcode_from_flat_file` method, which can be used to overwrite the `$filepath` variable and subsequently passed to require_once. This makes it possible for authenticated attackers, with Contributor-level access and above, to execute arbitrary PHP code on the server via the `[code_snippet]` shortcode using PHP filter chains granted they can trick an administrator into enabling the "Enable file-based execution" setting and creating at least one active Content snippet.

