KeygraphLabs · CVE MCP

CVE-2016-8640 · redhat

CVE-2016-8640

A SQL injection vulnerability in pycsw all versions before 2.0.2, 1.10.5 and 1.8.6 that leads to read and extract of any data from any table in the pycsw database that the database user has access to. Also on PostgreSQL (at least) it is possible to perform updates/inserts/deletes and database modifications to any table the database user has access to.

Published 2018-08-01, last changed 2026-06-17. Weakness: CWE-89.

CVSS
9.1
critical, from NVD
EPSS
2.31%
percentile 83.9%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: pycsw 1.8.6, 1.10.5, 2.0.2 (PyPI) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in geopython/pycsw by pull request #474, 522873e5ce, 69546e1352. Functions changed by the fix: cql2fes1, _parse_condition, getrecords, _parse_constraint. Regression tests: tests/expected/suites_default_get_GetRecords-filter-cql-title-or-abstract.xml, tests/expected/suites_default_get_GetRecords-filter-cql-title.xml, tests/expected/suites_default_post_GetRecords-cql-title-and-abstract.xml, tests/suites/default/get/requests.txt. Confidence: verified (a record names this commit as the fix, and it changed these functions).

Timeline

2018-08-01Published
2018-08-01Package advisory PYSEC-2018-98
2018-08-15Package advisory GHSA-hg4c-rgvm-964g
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 2.31%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-hg4c-rgvm-964gpycsw (PyPI)2.0.2
GHSA-hg4c-rgvm-964gpycsw (PyPI)1.8.6
GHSA-hg4c-rgvm-964gpycsw (PyPI)1.10.5
PYSEC-2018-98pycsw (PyPI)1.8.6, 1.10.5, 2.0.2

Also known as: GHSA-hg4c-rgvm-964g, PYSEC-2018-98

Related

CVEPublishedCVSSSummary
CVE-2026-1106972026-11-119.9Quay: quay: sql like wildcard injection in robot listing leaks cross-tenant robot tokens
CVE-2026-712982026-10-056.4Maestro: sql identifier injection via properties.* search filter and orderby field
CVE-2026-560972026-10-016.5Rubygem-katello: sql injection in registry proxy via labels
CVE-2026-534742026-06-106.5Migration-planner: second-order sql injection via rvtools upload
CVE-2026-43242026-03-175.4Rubygem-katello: katello: denial of service and potential information disclosure via sql injection
CVE-2026-31182026-02-256.5Rhdh: graphql injection leading to platform-wide denial of service (dos) in rh developer hub orchestrator plugin
CVE-2026-06032026-01-238.3Org.hibernate/hibernate-core: hibernate: information disclosure and data deletion via second-order sql injection
CVE-2023-394172023-08-118.8Postgresql: extension script @substitutions@ within quoting allow sql injection

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2016-8640, or call /api/v1/vulnerabilities/CVE-2016-8640. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org