Description
Heap-based buffer overflow in the repeat() function for PostgreSQL before 7.2.2 allows attackers to execute arbitrary code by causing repeat() to generate a large string.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 3.0 | postgresql | 7.2.1-2woody2 | DSA-165 |
Advisories 1
- DSA-165 postgresql - buffer overflows Debian Security (DSA / DLA) · Mar 9, 2026
References
- http://marc.info/?l=postgresql-announce&m=103062536330644
- CLA-2002:524 vendor-advisory
- 20020820 @(#)Mordred Labs advisory 0x0003: Buffer overflow in PostgreSQL mailing-list
- 8034 third-party-advisory
- RHSA-2003:001 vendor-advisory
- MDKSA-2002:062 vendor-advisory
- SuSE-SA:2002:038 vendor-advisory
- 20020826 GLSA: PostgreSQL mailing-list
- 20020824 Fwd: [GENERAL] PostgreSQL 7.2.2: Security Release mailing-list
- http://archives.postgresql.org/pgsql-announce/2002-08/msg00004.php