Descrizione
A security flaw has been discovered in Ollama up to 0.20.2. This affects the function digestToPath of the file x/imagegen/transfer/transfer.go of the component Tensor Model Transfer Handler. The manipulation of the argument digest results in path traversal. The attack may be performed from remote. This attack is characterized by high complexity. The exploitability is reported as difficult. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 3.7.
Versioni da aggiornare
- Ollama Ollama: vulnerabili le versioni dalla
0.20.0fino alla0.20.2inclusa → aggiornare a una release successiva alla0.20.2.
Patch e advisory
- Advisory di terze parti: vuldb.com/vuln/359599
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Filtrare le sequenze di path traversal sul reverse proxy/WAF ed eseguire il servizio con permessi minimi sul filesystem.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Ollama | Ollama | ≥ 0.20.0 ≤ 0.20.2 | — |
Riferimenti
- Exploit pubblicohttps://vuldb.com/submit/797576
- Advisory di terze partihttps://vuldb.com/vuln/359599
- Exploit pubblicohttps://vuldb.com/submit/797576
- Riferimentohttps://vuldb.com/vuln/359599/cti