Description
Heap-based buffer overflow in the sql_prepare_where function (contrib/mod_sql.c) in ProFTPD before 1.3.3d, when mod_sql is enabled, allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via a crafted username containing substitution tags, which are not properly handled during construction of an SQL query.
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 14 | proftpd-dfsg | 1.3.3a-6 | — |
| Debian 13 | proftpd-dfsg | 1.3.3a-6 | — |
| Debian 12 | proftpd-dfsg | 1.3.3a-6 | — |
| Debian 5.0 | proftpd-dfsg | 1.3.1-17lenny6 | DSA-2191-1 |
Advisories 1
- DSA-2191-1 proftpd-dfsg - several Debian Security (DSA / DLA) · Mar 9, 2026
References
- FEDORA-2011-0610 vendor-advisory
- FEDORA-2011-0613 vendor-advisory
- DSA-2191 vendor-advisory
- http://proftpd.org/docs/RELEASE_NOTES-1.3.3d
- ADV-2011-0248 vdb-entry
- MDVSA-2011:023 vendor-advisory
- http://bugs.proftpd.org/show_bug.cgi?id=3536
- https://bugzilla.redhat.com/show_bug.cgi?id=670170
- 44933 vdb-entry
- ADV-2011-0331 vdb-entry
- http://phrack.org/issues.html?issue=67&id=7#article