Injection SQL dans symfony/cache (CVE-2026-45073)
Résumé
Injection SQL dans symfony/cache (CVE-2026-45073). Risque d'opérations non autorisées ou de divulgation. Exploitable via AbstractAdapterTrait. Atténuation : mise à jour vers 8.0.12 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Description
Symfony\Component\Cache\Adapter\PdoAdapter is the PDO-backed cache adapter. Its clear($prefix) method (inherited from AbstractAdapterTrait) is documented to delete cache items whose key starts with $prefix.
In the non-versioning code path, the caller-supplied $prefix is concatenated into $namespace = $this->namespace.$prefix and passed to PdoAdapter::doClear(), which builds:
DELETE FROM WHERE LIKE '%'
The value is interpolated directly into the SQL text and executed with PDO::exec(): $namespace is not bound. A caller able to influence $prefix can break out of the literal and inject SQL, expanding deletion scope from the intended prefix to arbitrary rows, or otherwise reshape query semantics.
Most applications don't expose clear($prefix) to untrusted input directly, but the contract of the method is to safely accept any prefix string, so the lack of escaping is a defect of the adapter itself.
Resolution
AbstractAdapterTrait::clear() now rejects any $prefix containing characters outside [-+.A-Za-z0-9]: when an invalid prefix is supplied, the method logs a warning and returns false instead of reaching the SQL layer. This blocks quotes, %, null bytes and other characters that would let an attacker break out of the LIKE literal.
The patch for this issue is available here for branch 5.4.
Credits
Symfony would like to t…
Source: GitHub Security Advisories (Global) 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-2026-45073 a été découverte dans symfony/cache.
Des attaquants peuvent cibler un point d'entrée spécifique comme AbstractAdapterTrait à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation. Score CVSS : 7.3/10.
Action : mettez à jour symfony/cache vers 8.0.12 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « symfony/cache CVE-2026-45073 » sur le site de l'éditeur.
CVE-2026-45073 (symfony/cache) — CWE-89 / CVSS v3 7.3
Vecteur d'attaque : distant (réseau) / non authentifié / sans interaction utilisateur
Surface d'attaque : AbstractAdapterTrait / false / LIKE
Correctif : 8.0.12 — 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 injection SQL (CWE-89) affecte symfony/cache. Les attaquants atteignent le code vulnérable via AbstractAdapterTrait sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de symfony/cache. Surface d'attaque : AbstractAdapterTrait / false / LIKE.
Gravité : Élevée (CVSS 7.3/10). Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 8.0.12.
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 'symfony/cache' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
symfony/cacheを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade symfony/cache to 8.0.12ステージング環境で 8.0.12 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
État des correctifs par distribution
Paquets corrigés publiés par chaque distribution pour cette CVE
- Debian DEBIAN-CVE-2026-45073 symfony
- Ubuntu UBUNTU-CVE-2026-45073 symfony
Références
- package github.com
- patch security-advisories@github.com
- patch security-advisories@github.com
- web github.com
- web github.com
- web github.com
- web symfony.com
- web github.com
- web security-advisories@github.com
- web security-advisories@github.com
- web security-advisories@github.com
- web security-advisories@github.com