1. Archivio CVE
  2. 2026
  3. CVE-2026-71569

CVE-2026-71569

4.8 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N 4.8 – Media

Descrizione

Server-Side Request Forgery (SSRF) vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0 before 4.22.2. WebhookUrlValidator classified a push notification webhook host in two places that did not agree. A host written as an IP literal was matched against a list of string prefixes that named the IPv6 unique local range fc00::/7, while a host reached through a name was resolved and the resulting address classified with the InetAddress predicates isLoopbackAddress, isAnyLocalAddress, isLinkLocalAddress and isSiteLocalAddress. Those predicates do not cover the same ground as the prefix list: isSiteLocalAddress reports the deprecated fec0::/10 block and not the fc00::/7 unique local addresses that replaced it, and the JDK carries no predicate for them at all. The same address was therefore accepted or rejected depending on how it was written, and a webhook URL whose host name resolved into fc00::/7 passed a guard that refused the identical address given as a literal. PushNotificationDispatcher then sent the push notification to that address, together with any Authorization header carried in the same configuration, whose scheme and credentials the registering caller supplies. The webhook URL arrives as TaskPushNotificationConfig.url from the caller registering the push notification, so it is attacker-controlled, and allowLocalWebhookUrls is false by default, which is the configuration in which the guard is expected to hold. The response is not relayed back to the caller who registered the configuration, so what the gap yields is a blind outbound HTTPS request from the Camel process to an internal address the guard was written to refuse; reaching a service that way additionally requires that the name resolve into fc00::/7 in the target environment, that an HTTPS service be listening on that address, and that the TLS handshake succeed for the name being requested, which is why the severity is assessed medium. The same string pre-check was also wrong in the other direction: it matched the raw host string without first establishing that the host was an IP literal, so any name merely beginning with fc or fd, such as fcm.googleapis.com, was refused outright. Users are recommended to upgrade to version 4.23.0, which fixes the issue. If users are on the 4.22.x releases stream, then they are suggested to upgrade to 4.22.2. The 4.21.x release line reached end of life before this issue was resolved and will not receive a fix, so deployments on it must move to a supported release. Both the literal and the resolved path now classify the address from its raw bytes with one shared classifier, which recognises fc00::/7 and the shared address space 100.64.0.0/10, as well as IPv4-compatible, NAT64 (64:ff9b::/96) and 6to4 (2002::/16) addresses whose embedded IPv4 address is not globally routable. For deployments that cannot upgrade immediately, place authentication in front of the A2A push notification configuration path so that the webhook URL does not arrive from an untrusted caller, and deny egress from the Camel process to fc00::/7 at the network level; where the deployment has no need of IPv6, starting the JVM with -Djava.net.preferIPv4Stack=true removes the address class the gap turns on. Note that allowLocalWebhookUrls=false is already the default and does not by itself close the gap.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
apache software foundation apache camel >= 4.21.0 < 4.22.2 –
Tutte le 72 vulnerabilità di Apache Software Foundation Apache Camel

Tipo di vulnerabilità

CWE-918 Server-Side Request Forgery (SSRF)

Il server riceve un indirizzo (URL) dall’esterno e ne scarica il contenuto senza verificare a sufficienza che la richiesta vada verso una destinazione prevista: può quindi essere usato per raggiungere sistemi interni.

Impatto sui sistemi

AmbitoImpatto
Riservatezza Leggere i dati dell’applicazione
Integrità Eseguire codice o comandi non autorizzati
Controllo degli accessi Aggirare i meccanismi di protezione
Fornendo URL che puntano a host o porte non previsti, un attaccante può far sembrare che la richiesta parta dal server, aggirando così controlli di accesso come i firewall che gli impediscono di raggiungere quegli indirizzi direttamente. Il server può essere usato come proxy per scansionare le porte dei sistemi della rete interna, leggere documenti presenti sul sistema (con file://) o usare altri protocolli come gopher:// o tftp://, che danno un controllo ancora maggiore sul contenuto delle richieste.

Come si previene

Sviluppo · Esercizio Se esiste un elenco noto di applicazioni, indirizzi IP, nomi host o domini con cui il prodotto può comunicare, usa un elenco di destinazioni ammesse per limitare a queste le richieste in uscita. L’elenco può stare nel codice dell’applicazione o essere imposto da firewall o dalla segmentazione della rete.
Sviluppo · Esercizio Se il prodotto deve potersi collegare a indirizzi IP o domini arbitrari, valuta un elenco di destinazioni vietate che includa gli indirizzi delle reti private, i nomi di dominio interni e simili. L’elenco può stare nel codice dell’applicazione o essere imposto da firewall o dalla segmentazione della rete.
Sviluppo · Validazione dell’input Considera ogni input come potenzialmente malevolo. Adotta una validazione per «elenco di valori ammessi»: accetta solo gli input che rispettano rigorosamente le specifiche e rifiuta, o trasforma in qualcosa di conforme, tutto il resto. Nel validare considera tutte le proprietà rilevanti: lunghezza, tipo, intervallo dei valori ammessi, input mancanti o in più, sintassi, coerenza tra campi collegati e rispetto delle regole di business (per esempio «barca» è sintatticamente valido perché contiene solo lettere, ma non lo è se il campo deve contenere solo colori come rosso o blu). Non limitarti a cercare input malevoli o malformati: quasi certamente ne sfuggirà qualcuno, soprattutto se l’ambiente del codice cambia, lasciando all’attaccante lo spazio per aggirare la validazione. Le liste di valori vietati restano utili per rilevare possibili attacchi o scartare subito gli input più malformati. Nel costruire richieste in uscita a partire da stringhe di input, usa elenchi rigorosi che limitino i caratteri in base al valore atteso del parametro: riduce indirettamente la portata di un attacco, ma conta meno di una corretta codifica ed escaping dell’output.

Tutte le 4.115 CVE di tipo CWE-918, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org