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.
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-01 | Published |
| 2018-08-01 | Package advisory PYSEC-2018-98 |
| 2018-08-15 | Package advisory GHSA-hg4c-rgvm-964g |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 2.31% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-hg4c-rgvm-964g | pycsw (PyPI) | 2.0.2 |
| GHSA-hg4c-rgvm-964g | pycsw (PyPI) | 1.8.6 |
| GHSA-hg4c-rgvm-964g | pycsw (PyPI) | 1.10.5 |
| PYSEC-2018-98 | pycsw (PyPI) | 1.8.6, 1.10.5, 2.0.2 |
Also known as: GHSA-hg4c-rgvm-964g, PYSEC-2018-98
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-110697 | 2026-11-11 | 9.9 | Quay: quay: sql like wildcard injection in robot listing leaks cross-tenant robot tokens |
| CVE-2026-71298 | 2026-10-05 | 6.4 | Maestro: sql identifier injection via properties.* search filter and orderby field |
| CVE-2026-56097 | 2026-10-01 | 6.5 | Rubygem-katello: sql injection in registry proxy via labels |
| CVE-2026-53474 | 2026-06-10 | 6.5 | Migration-planner: second-order sql injection via rvtools upload |
| CVE-2026-4324 | 2026-03-17 | 5.4 | Rubygem-katello: katello: denial of service and potential information disclosure via sql injection |
| CVE-2026-3118 | 2026-02-25 | 6.5 | Rhdh: graphql injection leading to platform-wide denial of service (dos) in rh developer hub orchestrator plugin |
| CVE-2026-0603 | 2026-01-23 | 8.3 | Org.hibernate/hibernate-core: hibernate: information disclosure and data deletion via second-order sql injection |
| CVE-2023-39417 | 2023-08-11 | 8.8 | Postgresql: 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.