{
  "id": "CVE-2026-29090",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-29090",
  "published_at": "2026-05-06T17:21:24.141Z",
  "title": "Rucio SQL injection in postgres_meta DID search path compromises PostgreSQL metadata database",
  "vendor": "rucio",
  "product": "rucio",
  "cvss": {
    "score": 9,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "### Summary\n\nA SQL injection vulnerability exists in Rucio versions 1.30.0 and later before 35.8.5, 38.5.5, 39.4.2, and 40.1.1, in `FilterEngine.create_postgres_query()`. This allows any authenticated Rucio user to execute arbitrary SQL against the PostgreSQL metadata database through the DID search endpoint (`GET /dids/\u003cscope\u003e/dids/search`). When the `postgres_meta` metadata plugin is configured, attacker-controlled filter keys and values are interpolated directly into raw SQL strings via Python `.format()`, then passed to `psycopg3`'s `sql.SQL()` which treats the string as trusted SQL syntax. \n\nDepending on the database privileges assigned to the service account, exploitation can expose sensitive tables, modify or delete metadata, access server-side files, or achieve code execution through PostgreSQL features such as COPY ... FROM PROGRAM. This issue affects deployments that explicitly use the postgres_meta metadata plugin. This vulnerability has been fixed in versions 35.8.5, 38.5.5, 39.4.2, and 40.1.1.",
  "cwe": "CWE-89",
  "cpes": [
    "cpe:2.3:a:cern:rucio:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9,
    "nvd": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "rucio",
        "product": "rucio",
        "ranges": [
          "\u003e= 1.30.0, \u003c 35.8.5",
          "\u003e= 35.9.0, \u003c 38.5.5",
          "\u003e= 38.6.0, \u003c 39.4.2",
          "\u003e= 40.0.0, \u003c 40.1.1"
        ],
        "fixed_in": [
          "35.8.5",
          "38.5.5",
          "39.4.2",
          "40.1.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade rucio to 35.8.5 or 38.5.5 or 39.4.2 or 40.1.1 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/rucio/rucio/security/advisories/GHSA-6j7p-qjhg-9947"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
