SSRF (Falsification de requête côté serveur) dans surrealdb (CVE-2025-71398)
Résumé
SSRF dans surrealdb (CVE-2025-71398). Des informations confidentielles peuvent être exposées. Exploitable via SURREAL_CAPS_ALLOW_NET. Atténuation : mise à jour vers 2.0.5 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
SurrealDB offers http functions that can access external network endpoints. A typical, albeit not recommended configuration would be to start SurrealDB with all network connections allowed with the exception of a deny list. For example, surreal start --allow-net --deny-net 10.0.0.0/8 will allow all network connections except to the 10.0.0.0/8 block.
An authenticated user of SurrealDB can use redirects to bypass this restriction. For example by hosting a server on the public internet which redirects to the IP addresses blocked by the administrator of the SurrealDB server via HTTP 301 or 307 response codes.
When sending SurrealDB statements containing the http::* functions to the attacker controlled host, the SurrealDB server will follow the redirects to the blocked IP address. Because the statements also return the responses to the attacker, this issue constitutes a full SSRF vulnerability.
This issue was discovered and patched during an code audit and penetration test of SurrealDB by cure53, the severity as defined within cure53's preliminary finding is Medium, matched by our CVSS v4 assessment.
Impact
The impact of this vulnerability is circumvention of the --deny-net capability and resulting impact on systems external to SurrealDB. The ultimate impact is dependent on the deployment scenario.
For example, if the SurrealDB serve…
Source: NIST National Vulnerability Database NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2025-71398 a été découverte dans surrealdb.
Des attaquants peuvent cibler un point d'entrée spécifique comme SURREAL_CAPS_ALLOW_NET à distance pour détourner le produit.
Des informations confidentielles peuvent être exposées. Score CVSS : 7.6/10.
Action : mettez à jour surrealdb vers 2.0.5 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « surrealdb CVE-2025-71398 » sur le site de l'éditeur.
CVE-2025-71398 (surrealdb) — CWE-918 / CVSS v3 7.6
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : SURREAL_CAPS_ALLOW_NET / SURREAL_CAPS_DENY_NET
Correctif : 2.0.5 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une SSRF (CWE-918) affecte surrealdb. Les attaquants atteignent le code vulnérable via SURREAL_CAPS_ALLOW_NET.
Consultez l'avis de l'éditeur pour les versions affectées de surrealdb. Surface d'attaque : SURREAL_CAPS_ALLOW_NET / SURREAL_CAPS_DENY_NET.
Gravité : Élevée (CVSS 7.6/10). Des informations confidentielles peuvent être exposées.
Mettre à jour vers 2.0.5.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'surrealdb' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
surrealdbを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade surrealdb to 2.0.5ステージング環境で 2.0.5 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory nvd.nist.gov
- package github.com
- web github.com
- web vulncheck.com
- web github.com
- web github.com
- web github.com