CVE-2010-1170: Medium severity PostgreSQL postgresql vulnerability

Published Apr 16, 2010
·
Updated

A flaw was found in the way the PostgreSQL enforced permission checks on scripts written in PL/Tcl. Once the PL/Tcl procedural language was registered on particular database, a remote, authenticated user, privileged to create databases, running a specially-crafted PL/Tcl script, could use this flaw to bypass intended PL/Tcl trusted mode restrictions, allowing them to run arbitrary Tcl scripts with the privileges of the database server.

References: [1] PostgreSQL PL/Tcl procedural language manual page: http://www.postgresql.org/docs/8.1/interactive/pltcl.html

Other sources

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 pltclmodules 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.

Red Hat

Affected Software

113 affected componentsFixes available
redhat/postgresql<0:7.4.29-1.el4_8.1
0:7.4.29-1.el4_8.1
redhat/postgresql<0:8.1.21-1.el5_5.1
0:8.1.21-1.el5_5.1
redhat/postgresql84<0:8.4.4-1.el5_5.1
0:8.4.4-1.el5_5.1
PostgreSQL postgresql=7.4
PostgreSQL postgresql=7.4.1
PostgreSQL postgresql=7.4.2
PostgreSQL postgresql=7.4.3
PostgreSQL postgresql=7.4.4
PostgreSQL postgresql=7.4.5
PostgreSQL postgresql=7.4.6
PostgreSQL postgresql=7.4.7
PostgreSQL postgresql=7.4.8
PostgreSQL postgresql=7.4.9
PostgreSQL postgresql=7.4.10
PostgreSQL postgresql=7.4.11
PostgreSQL postgresql=7.4.12
PostgreSQL postgresql=7.4.13
PostgreSQL postgresql=7.4.14
PostgreSQL postgresql=7.4.15
PostgreSQL postgresql=7.4.16
PostgreSQL postgresql=7.4.17
PostgreSQL postgresql=7.4.18
PostgreSQL postgresql=7.4.19
PostgreSQL postgresql=7.4.20
PostgreSQL postgresql=7.4.21
PostgreSQL postgresql=7.4.22
PostgreSQL postgresql=7.4.23
PostgreSQL postgresql=7.4.24
PostgreSQL postgresql=7.4.25
PostgreSQL postgresql=7.4.26
PostgreSQL postgresql=7.4.27
PostgreSQL postgresql=7.4.28
PostgreSQL postgresql=8.0
PostgreSQL postgresql=8.0.0
PostgreSQL postgresql=8.0.1
PostgreSQL postgresql=8.0.2
PostgreSQL postgresql=8.0.3
PostgreSQL postgresql=8.0.4
PostgreSQL postgresql=8.0.5
PostgreSQL postgresql=8.0.6
PostgreSQL postgresql=8.0.7
PostgreSQL postgresql=8.0.8
PostgreSQL postgresql=8.0.9
PostgreSQL postgresql=8.0.10
PostgreSQL postgresql=8.0.11
PostgreSQL postgresql=8.0.12
PostgreSQL postgresql=8.0.13
PostgreSQL postgresql=8.0.14
PostgreSQL postgresql=8.0.15
PostgreSQL postgresql=8.0.16
PostgreSQL postgresql=8.0.17
PostgreSQL postgresql=8.0.18
PostgreSQL postgresql=8.0.19
PostgreSQL postgresql=8.0.20
PostgreSQL postgresql=8.0.21
PostgreSQL postgresql=8.0.22
PostgreSQL postgresql=8.0.23
PostgreSQL postgresql=8.0.24
PostgreSQL postgresql=8.1
PostgreSQL postgresql=8.1.0
PostgreSQL postgresql=8.1.1
PostgreSQL postgresql=8.1.2
PostgreSQL postgresql=8.1.3
PostgreSQL postgresql=8.1.4
PostgreSQL postgresql=8.1.5
PostgreSQL postgresql=8.1.6
PostgreSQL postgresql=8.1.7
PostgreSQL postgresql=8.1.8
PostgreSQL postgresql=8.1.9
PostgreSQL postgresql=8.1.10
PostgreSQL postgresql=8.1.11
PostgreSQL postgresql=8.1.12
PostgreSQL postgresql=8.1.13
PostgreSQL postgresql=8.1.14
PostgreSQL postgresql=8.1.15
PostgreSQL postgresql=8.1.16
PostgreSQL postgresql=8.1.17
PostgreSQL postgresql=8.1.18
PostgreSQL postgresql=8.1.19
PostgreSQL postgresql=8.1.20
PostgreSQL postgresql=8.2
PostgreSQL postgresql=8.2.1
PostgreSQL postgresql=8.2.2
PostgreSQL postgresql=8.2.3
PostgreSQL postgresql=8.2.4
PostgreSQL postgresql=8.2.5
PostgreSQL postgresql=8.2.6
PostgreSQL postgresql=8.2.7
PostgreSQL postgresql=8.2.8
PostgreSQL postgresql=8.2.9
PostgreSQL postgresql=8.2.10
PostgreSQL postgresql=8.2.11
PostgreSQL postgresql=8.2.12
PostgreSQL postgresql=8.2.13
PostgreSQL postgresql=8.2.14
PostgreSQL postgresql=8.2.15
PostgreSQL postgresql=8.2.16
PostgreSQL postgresql=8.3
PostgreSQL postgresql=8.3.1
PostgreSQL postgresql=8.3.2
PostgreSQL postgresql=8.3.3
PostgreSQL postgresql=8.3.4
PostgreSQL postgresql=8.3.5
PostgreSQL postgresql=8.3.6
PostgreSQL postgresql=8.3.7
PostgreSQL postgresql=8.3.8
PostgreSQL postgresql=8.3.9
PostgreSQL postgresql=8.3.10
PostgreSQL postgresql=8.4
PostgreSQL postgresql=8.4.1
PostgreSQL postgresql=8.4.2
PostgreSQL postgresql=8.4.3
PostgreSQL postgresql=9.0.0-beta1

Event History

Apr 16, 2010
Data Sourced
via Red Hat·03:30 PM
DescriptionSeverityAffected Software
May 17, 2010
CVE Published
via Red Hat·12:00 AM
May 19, 2010
CVE Published
via MITRE·06:13 PM
Data Sourced
via MITRE·06:13 PM
Description
Data Sourced
via NVD·06:30 PM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2010-1170?

CVE-2010-1170 has a severity rating classified as medium due to its potential to allow unauthorized security access.

2

How do I fix CVE-2010-1170?

To fix CVE-2010-1170, upgrade your PostgreSQL version to at least 7.4.29, 8.0.25, 8.1.21, or 8.2.17.

3

Which PostgreSQL versions are affected by CVE-2010-1170?

CVE-2010-1170 affects PostgreSQL versions 7.4 prior to 7.4.29, 8.0 prior to 8.0.25, 8.1 prior to 8.1.21, 8.2 prior to 8.2.17, 8.3 prior to 8.3.11, 8.4 prior to 8.4.4, and 9.0 Beta before 9.0 Beta 2.

4

What type of attack can exploit CVE-2010-1170?

CVE-2010-1170 can be exploited to load Tcl code from the pltcl_modules table, which could lead to remote code execution.

5

Is there a workaround for CVE-2010-1170 if I cannot upgrade?

If upgrading is not an option, you can restrict access to the pltcl_modules table and ensure proper permission settings to mitigate the risk.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203