Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pycsw
  4. ›
  5. CVE-2016-8640

CVE-2016-8640: SQL Injection in pycsw

August 15, 2018 (updated October 21, 2024)

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.

References

  • github.com/advisories/GHSA-hg4c-rgvm-964g
  • github.com/geopython/pycsw
  • github.com/geopython/pycsw/commit/522873e5ce48bb9cbd4e7e8168ca881ce709c222
  • github.com/geopython/pycsw/commit/69546e13527c82e4f9191769215490381ad511b2
  • github.com/geopython/pycsw/commit/daaf09b4b920708a415be3c7f446739661ba3753
  • github.com/geopython/pycsw/pull/474/files
  • github.com/pypa/advisory-database/tree/main/vulns/pycsw/PYSEC-2018-98.yaml
  • nvd.nist.gov/vuln/detail/CVE-2016-8640
  • patch-diff.githubusercontent.com/raw/geopython/pycsw/pull/474.patch

Code Behaviors & Features

Detect and mitigate CVE-2016-8640 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.8.6, all versions starting from 1.10.0 before 1.10.5, all versions starting from 2.0.0 before 2.0.2

Fixed versions

  • 2.0.2
  • 1.8.6
  • 1.10.5

Solution

Upgrade to versions 1.10.5, 1.8.6, 2.0.2 or above.

Impact 9.1 CRITICAL

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

pypi/pycsw/CVE-2016-8640.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:58 +0000.