CVE-2016-8640
SQL Injection in pycsw
Reported by redhat · Published August 1, 2018
pycsw is fixed in 2.0.2, 1.10.5 and 1.8.6 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| pycsw | PyPI | 2.0.2, 1.10.5, 1.8.6 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| https://github.com/geopython | pycsw | all versions before 2.0.2, 1.10.5 and 1.8.6 |
| https://github.com/geopython | pycsw | * |
| PyPI | pycsw | 2.0.0, 0, 1.10.0 |
Timeline
- Aug 1, 2018 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Mar 9, 2026 Security Advisory
- Jun 17, 2026 CVE Updated
- Oct 6, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2016-8640
vulnetix vdb fixes CVE-2016-8640
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2016-8640/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 94302 vdb-entryx_refsource_BID
- x_refsource_CONFIRM
- [oss-security] 20161111 CVE-2016-8640 pycsw SQL injection issue mailing-listx_refsource_MLIST
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2016-8640 advisory
- https://github.com/advisories/GHSA-hg4c-rgvm-964g advisory
- https://github.com/geopython/pycsw/commit/522873e5ce48bb9cbd4e7e8168ca881ce709c222 patch
- https://github.com/geopython/pycsw/commit/69546e13527c82e4f9191769215490381ad511b2 patch
- https://github.com/geopython/pycsw/commit/daaf09b4b920708a415be3c7f446739661ba3753 patch
- https://github.com/geopython/pycsw url
- https://github.com/pypa/advisory-database/tree/main/vulns/pycsw/PYSEC-2018-98.yaml advisory