SQL Injection in pycsw
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | pycsw | >= 2.0.0, < 2.0.2, < 1.8.6, >= 1.10.0, < 1.10.5 | 2.0.2, 1.8.6, 1.10.5 |
References
- https://patch-diff.githubusercontent.com/raw/geopython/pycsw/pull/474.patch
- https://github.com/geopython/pycsw/pull/474/files
- http://seclists.org/oss-sec/2016/q4/406
- http://www.securityfocus.com/bid/94302
- https://github.com/advisories/GHSA-hg4c-rgvm-964g
- https://nvd.nist.gov/vuln/detail/CVE-2016-8640
- https://github.com/geopython/pycsw/commit/522873e5ce48bb9cbd4e7e8168ca881ce709c222
- https://github.com/geopython/pycsw/commit/69546e13527c82e4f9191769215490381ad511b2
- https://github.com/geopython/pycsw/commit/daaf09b4b920708a415be3c7f446739661ba3753
- https://github.com/geopython/pycsw
- https://github.com/pypa/advisory-database/tree/main/vulns/pycsw/PYSEC-2018-98.yaml
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N- Weakness (CWE)
CWE-89- Platform
- Python (PyPI)
- Package
pycsw- Disclosed
- 01.08.2018
- Updated
- 11.10.2026 12:19
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2018-98 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-hg4c-rgvm-964g - CC BY 4.0
Vulnerability history: pycsw
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.