CVE-2016-8640
SQL Injection in pycsw
CVE-2016-8640 is a critical vulnerability (CVSS 9.1) in Https://github.com/geopython Pycsw, published August 1, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.31%, the 83rd percentile. Fixed in pycsw 1.8.6.
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
9.1
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.
- Record
CVE-2016-8640- CVSS 3.0
- 9.1 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-89
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2016-8640- Weakness
- CWE-89
- Updated
- 2026-11-02
EUVDEUVD-2018-0121 No score
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.
- Record
EUVD-2018-0121- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-hg4c-rgvm-964g
9.3
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.
- Record
GHSA-hg4c-rgvm-964g- CVSS 4.0
- 9.3 Critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N - CVSS 3.0
- 9.1 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-89
- Updated
- 2026-11-02
OSV
9.1
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.
- Record
CVE-2016-8640- CVSS 3.0
- 9.1 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2016-8640
9.1
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.
- Record
DEBIAN-CVE-2016-8640- CVSS 3.0
- 9.1 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - Updated
- 2026-11-02
OSVGHSA-hg4c-rgvm-964g
9.3
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.
- Record
GHSA-hg4c-rgvm-964g- CVSS 4.0
- 9.3 Critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N - CVSS 3.0
- 9.1 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-89
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2016-8640
9.1
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.
- Record
UBUNTU-CVE-2016-8640- CVSS 3.0
- 9.1 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - Updated
- 2026-11-02
OSVPYSEC-2018-98 No score
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.
- Record
PYSEC-2018-98- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
pycswPyPI |
before 1.8.6 | 1.8.6 |
pycswPyPI |
1.10.0 up to 1.10.5 | 1.10.5 |
pycswPyPI |
2.0.0 up to 2.0.2 | 2.0.2 |
pycswDebian:12 |
before 2.0.2+dfsg-1, plus listed versions 1.10.0+dfsg-11.10.1+dfsg-11.10.1+dfsg-21.10.4+dfsg-11.10.4+dfsg-2 Show 7 moreShow less2.0.0+dfsg-12.0.0+dfsg-1~exp12.0.0+dfsg-1~exp22.0.0+dfsg-1~exp32.0.0~rc1+dfsg-1~exp12.0.0~rc1+dfsg-1~exp22.0.1+dfsg-1 |
2.0.2+dfsg-1 |
pycswDebian:13 |
before 2.0.2+dfsg-1, plus listed versions 1.10.0+dfsg-11.10.1+dfsg-11.10.1+dfsg-21.10.4+dfsg-11.10.4+dfsg-2 Show 7 moreShow less2.0.0+dfsg-12.0.0+dfsg-1~exp12.0.0+dfsg-1~exp22.0.0+dfsg-1~exp32.0.0~rc1+dfsg-1~exp12.0.0~rc1+dfsg-1~exp22.0.1+dfsg-1 |
2.0.2+dfsg-1 |
pycswDebian:14 |
before 2.0.2+dfsg-1, plus listed versions 1.10.0+dfsg-11.10.1+dfsg-11.10.1+dfsg-21.10.4+dfsg-11.10.4+dfsg-2 Show 7 moreShow less2.0.0+dfsg-12.0.0+dfsg-1~exp12.0.0+dfsg-1~exp22.0.0+dfsg-1~exp32.0.0~rc1+dfsg-1~exp12.0.0~rc1+dfsg-1~exp22.0.1+dfsg-1 |
2.0.2+dfsg-1 |
pycswPyPI |
2.0.0 up to 2.0.2, plus listed versions 2.0.1 |
2.0.2 |
pycswPyPI |
before 1.8.6, plus listed versions 1.4.01.4.11.4.21.6.01.6.1 Show 9 moreShow less1.6.21.6.31.6.41.8.01.8.11.8.21.8.31.8.41.8.5 |
1.8.6 |
pycswPyPI |
1.10.0 up to 1.10.5, plus listed versions 1.10.11.10.21.10.31.10.4 |
1.10.5 |
pycswPyPI |
before 1.8.6, 1.10.0 up to 1.10.5, 2.0.0 up to 2.0.2, plus listed versions 1.10.11.10.21.10.31.10.41.4.0 Show 14 moreShow less1.4.11.4.21.6.01.6.11.6.21.6.31.6.41.8.01.8.11.8.21.8.31.8.41.8.52.0.1 |
1.8.61.10.52.0.2 |
pycswUbuntu:16.04:LTS |
All versions, plus listed versions 1.10.1+dfsg-2 |
None known |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
securityfocus.com/bid/94302
github.com/geopython/pycsw/pull/474/files
seclists.org/oss-sec/2016/q4/406
patch-diff.githubusercontent.com/raw/geopython/pycsw/pull/474.patch
nvd.nist.gov/vuln/detail/CVE-2016-8640
github.com/advisories/GHSA-hg4c-rgvm-964g
Show 8 moreShow less
github.com/geopython/pycsw/commit/522873e5ce48bb9cbd4e7e8168ca881ce709c222
github.com/geopython/pycsw/commit/69546e13527c82e4f9191769215490381ad511b2
github.com/geopython/pycsw/commit/daaf09b4b920708a415be3c7f446739661ba3753
github.com/pypa/advisory-database/tree/main/vulns/pycsw/PYSEC-2018-98.yaml
security-tracker.debian.org/tracker/CVE-2016-8640
github.com/geopython/pycsw
ubuntu.com/security/CVE-2016-8640
cve.org/CVERecord?id=CVE-2016-8640