Permissions, Privileges, and Access Controls in PostgreSQL - CVE-2010-1170

 

Permissions, Privileges, and Access Controls in PostgreSQL - CVE-2010-1170

Published: September 19, 2017 / Updated: June 23, 2025


Vulnerability identifier: #VU111769
CSH Severity: Medium
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2010-1170
CWE-ID: CWE-264
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to read and manipulate data.

The PL/Tcl implementation in PostgreSQL 7.4 before 7.4.29, 8.0 before 8.0.25, 8.1 before 8.1.21, 8.2 before 8.2.17, 8.3 before 8.3.11, 8.4 before 8.4.4, and 9.0 Beta before 9.0 Beta 2 loads Tcl code from the pltcl_modules table regardless of the table's ownership and permissions, which allows remote authenticated users, with database-creation privileges, to execute arbitrary Tcl code by creating this table and inserting a crafted Tcl script.


Affected software

PostgreSQL
Gentoo Linux
Debian Linux
Ubuntu
postgresql-pltcl-8.1 (Ubuntu package)
postgresql-plperl-8.1 (Ubuntu package)
postgresql-pltcl-8.3 (Ubuntu package)
postgresql-plperl-8.3 (Ubuntu package)
postgresql-8.3 (Debian package)
postgresql-plperl-8.4 (Ubuntu package)
postgresql-pltcl-8.4 (Ubuntu package)
dev-db/postgresql
dev-db/postgresql-server

How to mitigate CVE-2010-1170

Install update from vendor's website.

PostgreSQL - addressed in versions 7.4.29, 8.0.25, 8.1.21, 8.2.17, 8.3.11, 8.4.4
postgresql-pltcl-8.1 (Ubuntu package) - update to 8.1.21-0ubuntu0.6.06
postgresql-plperl-8.1 (Ubuntu package) - update to 8.1.21-0ubuntu0.6.06
postgresql-pltcl-8.3 (Ubuntu package) - addressed in versions 8.3.11-0ubuntu8.04, 8.3.11-0ubuntu9.04
postgresql-plperl-8.3 (Ubuntu package) - addressed in versions 8.3.11-0ubuntu8.04, 8.3.11-0ubuntu9.04
postgresql-8.3 (Debian package) - update to 8.3.11-0lenny1
postgresql-plperl-8.4 (Ubuntu package) - addressed in versions 8.4.4-0ubuntu9.10, 8.4.4-0ubuntu10.04
postgresql-pltcl-8.4 (Ubuntu package) - addressed in versions 8.4.4-0ubuntu9.10, 8.4.4-0ubuntu10.04
dev-db/postgresql - update to 9.0.5
dev-db/postgresql-server - update to 9.0.5

External References

Related Security Bulletins