Gallery before 1.5.9, and 2.x before 2.2.6, does not properly handle ZIP archives containing symbolic links, which allows remote authenticated users to conduct directory traversal attacks and read arbitrary files via vectors related to the archive upload (aka zip upload) functionality.
https://www.redhat.com/archives/fedora-package-announce/2008-December/msg00832.html
https://www.redhat.com/archives/fedora-package-announce/2008-December/msg00794.html
https://exchange.xforce.ibmcloud.com/vulnerabilities/45228
http://www.securityfocus.com/bid/31231
http://security.gentoo.org/glsa/glsa-200811-02.xml
http://secunia.com/advisories/33144
http://secunia.com/advisories/32662
http://secunia.com/advisories/31912