The to_char function in PostgreSQL before 9.0.19, 9.1.x before 9.1.15, 9.2.x before 9.2.10, 9.3.x before 9.3.6, and 9.4.x before 9.4.1 allows remote authenticated users to cause a denial of service (crash) or possibly execute arbitrary code via a (1) large number of digits when processing a numeric formatting template, which triggers a buffer over-read, or (2) crafted timestamp formatting template, which triggers a buffer overflow.
The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer, leading to a buffer overflow.
Link | Tags |
---|---|
http://www.postgresql.org/docs/9.4/static/release-9-4-1.html | release notes vendor advisory |
http://www.postgresql.org/docs/current/static/release-9-0-19.html | release notes vendor advisory |
http://www.postgresql.org/docs/current/static/release-9-1-15.html | release notes vendor advisory |
http://www.postgresql.org/docs/current/static/release-9-2-10.html | release notes vendor advisory |
http://www.postgresql.org/docs/current/static/release-9-3-6.html | release notes vendor advisory |
http://www.postgresql.org/about/news/1569/ | vendor advisory |
http://www.debian.org/security/2015/dsa-3155 | third party advisory |