{
  "id": "CVE-2025-1094",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-1094",
  "published_at": "2025-02-13T13:00:02.061Z",
  "title": "PostgreSQL quoting APIs miss neutralizing quoting syntax in text that fails encoding validation",
  "product": "PostgreSQL",
  "cvss": {
    "score": 8.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2025-02-13T12:51:46Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 0,
    "source": "metasploit",
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/beyondtrust_pra_rs_unauth_rce.rb"
  },
  "poc_repo_count": 5,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Improper neutralization of quoting syntax in PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() allows a database input provider to achieve SQL injection in certain usage patterns.  Specifically, SQL injection requires the application to use the function result to construct input to psql, the PostgreSQL interactive terminal.  Similarly, improper neutralization of quoting syntax in PostgreSQL command line utility programs allows a source of command line arguments to achieve SQL injection when client_encoding is BIG5 and server_encoding is one of EUC_TW or MULE_INTERNAL.  Versions before PostgreSQL 17.3, 16.7, 15.11, 14.16, and 13.19 are affected.",
  "cwe": "CWE-149",
  "cvss_by_source": {
    "cna": 8.1
  },
  "repos": [
    {
      "repo": "B1ack4sh/Blackash-CVE-2025-1094",
      "url": "https://github.com/B1ack4sh/Blackash-CVE-2025-1094",
      "created_at": null,
      "first_seen_at": "2026-11-14T21:59:14.787Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "shacojx/CVE-2025-1094-Exploit",
      "url": "https://github.com/shacojx/CVE-2025-1094-Exploit",
      "created_at": null,
      "first_seen_at": "2026-11-14T21:59:14.787Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "soltanali0/CVE-2025-1094-Exploit",
      "url": "https://github.com/soltanali0/CVE-2025-1094-Exploit",
      "created_at": "2025-02-27T11:08:10Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 39,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-07-13T12:59:54Z"
    },
    {
      "repo": "ishwardeepp/CVE-2025-1094-PoC-Postgre-SQLi",
      "url": "https://github.com/ishwardeepp/CVE-2025-1094-PoC-Postgre-SQLi",
      "created_at": "2025-03-14T20:21:57Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 6,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-11-27T18:45:04Z"
    },
    {
      "repo": "aninfosec/CVE-2025-1094",
      "url": "https://github.com/aninfosec/CVE-2025-1094",
      "created_at": "2025-06-18T15:18:33Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-05-23T12:02:07Z"
    },
    {
      "repo": "PinkArmor/CVE-2025-1094-Lab-Setup",
      "url": "https://github.com/PinkArmor/CVE-2025-1094-Lab-Setup",
      "created_at": "2025-10-19T18:08:06Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "README gives an archive password"
      ],
      "status": "analyzed",
      "owner_created_at": "2022-12-09T06:33:57Z"
    },
    {
      "repo": "RedTanny/Poc_Automation_vulnerability",
      "url": "https://github.com/RedTanny/Poc_Automation_vulnerability",
      "created_at": "2025-11-09T08:37:27Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "list",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-03-05T05:50:48Z"
    },
    {
      "repo": "TranDongA3/POC-CVE-2025-1094",
      "url": "https://github.com/TranDongA3/POC-CVE-2025-1094",
      "created_at": "2026-05-10T11:48:28Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-02-13T12:48:55Z"
    },
    {
      "repo": "skraft9/CVE-2024-12356",
      "url": "https://github.com/skraft9/CVE-2024-12356",
      "created_at": "2026-09-04T20:22:29Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 2,
      "is_poc": "no",
      "kind": "detection",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-09-21T14:51:25Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "n/a",
        "product": "PostgreSQL",
        "ranges": [
          "\u003e= 17, \u003c 17.3",
          "\u003e= 16, \u003c 16.7",
          "\u003e= 15, \u003c 15.11",
          "\u003e= 14, \u003c 14.16",
          "\u003c 13.19"
        ],
        "fixed_in": [
          "17.3",
          "16.7",
          "15.11",
          "14.16",
          "13.19"
        ]
      }
    ],
    "upgrade": [
      "Upgrade PostgreSQL to 17.3 or 16.7 or 15.11 or 14.16 or 13.19 or later."
    ],
    "workarounds": [
      "Confirm input passes encoding validation before quoting it."
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/beyondtrust_pra_rs_unauth_rce.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: BeyondTrust Privileged Remote Access (PRA) and Remote Support (RS) unauthenticated Remote Code Execution (exploit/linux/http/beyondtrust_pra_rs_unauth_rce)",
      "published_at": "2025-02-13T12:51:46Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/vuln-endpoint",
      "body_markers": [
        "input=\"",
        "input=\"\"SELECT lo_export(\n  (SELECT convert_from(pg_read_file('/etc/passwd'), 'UTF8')), \n  '/tmp/payload'\n)"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        5000
      ],
      "protocol": "http",
      "repos": [
        "ishwardeepp/CVE-2025-1094-PoC-Postgre-SQLi",
        "soltanali0/CVE-2025-1094-Exploit"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "ishwardeepp/CVE-2025-1094-PoC-Postgre-SQLi/files/cve-2025-1094-exploit.py:18",
        "soltanali0/CVE-2025-1094-Exploit/exploit.py:20"
      ]
    },
    {
      "method": "POST",
      "path_template": "/search",
      "body_markers": [
        "name=hax\\xc0'; \\! id; \\! ls /tmp; #"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        5000
      ],
      "protocol": "http",
      "repos": [
        "TranDongA3/POC-CVE-2025-1094"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "TranDongA3/POC-CVE-2025-1094/exolit.py:14"
      ]
    }
  ],
  "rules": []
}
