# App Rejected from Play Store, vulnerable version of libpng

**URL:** <https://forums.unrealengine.com/t/app-rejected-from-play-store-vulnerable-version-of-libpng/372236>\
**Category:** C++\
**Tags:** Google-Play, libraries, unreal-engine, CPP, question\
**Created:** [October 2, 2016, 4:58pm UTC](https://forums.unrealengine.com/t/app-rejected-from-play-store-vulnerable-version-of-libpng/372236 "2016-10-02T16:58:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![1PercentPlankton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@1PercentPlankton](https://forums.unrealengine.com/u/1PercentPlankton)\
**Post date:** [October 2, 2016, 4:58pm UTC](https://forums.unrealengine.com/t/app-rejected-from-play-store-vulnerable-version-of-libpng/372236/1 "2016-10-02T16:58:26Z")

</div>

Hi,

My app is ready for beta testing, but Google Play rejected it with the following message:

> **Vulnerability**
> 
> Libpng library
> 
> The vulnerabilities were fixed in  
> libpng v1.0.66, v.1.2.56, v.1.4.19,  
> v1.5.26 or higher. You can find more  
> information about how resolve the  
> issue in [this Google Help Center article](https://support.google.com/faqs/answer/7011127).

I guess I’m have to compile in a specific version of libpng - does anyone know if this library was updated for 4.13? How would I check such a thing? If it’s not updated, is there a way to compile in a specific version of a library?

Forgive me if these questions are a bit basic, but this is my first real project with UE4 so I’m still learning the finer points of managing C++ projects.

Thanks!

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [October 2, 2016, 7:31pm UTC](https://forums.unrealengine.com/t/app-rejected-from-play-store-vulnerable-version-of-libpng/372236/2 "2016-10-02T19:31:48Z")

</div>

In UE4 libpng is complied as static library you can find it in Source/ThirdParty/libpng. My 4.13.0 setup from github has 1.5.2 not sure abourt latest stable update. I will move your question to bug raports, since if it’s really not updated this needs to be fixed

---

<div class="post-metadata">

**Author:** ![1PercentPlankton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@1PercentPlankton](https://forums.unrealengine.com/u/1PercentPlankton)\
**Post date:** [October 2, 2016, 7:47pm UTC](https://forums.unrealengine.com/t/app-rejected-from-play-store-vulnerable-version-of-libpng/372236/3 "2016-10-02T19:47:15Z")

</div>

I checked the github source and release branch still has 1.5.2. Assuming I can figure out compiling my own static libraries with a newer version, how would I include them in my project? Can I just drop newer libraries into the engine source, edit the UElibpng.build.cs and go for it?

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [October 3, 2016, 1:40pm UTC](https://forums.unrealengine.com/t/app-rejected-from-play-store-vulnerable-version-of-libpng/372236/4 "2016-10-03T13:40:18Z")

</div>

Hi cgardner,

The fix for this missed the cut-off for 4.13.1, unfortunately.

You can find the fix here and integrate the changes to get your project in order to be submitted without the rejection for this particular issue.

> **[libpng security vulnerability](https://forums.unrealengine.com/showthread.php?124327-libpng-security-vulnerability)**
>
> The current Unreal Engine 4 releases use libpng 1.5.2 which has a security vulnerability. Google Play store is flagging any APK with this issue: https://support.google.com/faqs/answer/7011127?hl=en. I have updated UE4 for Android to libpng 1.5.27...

As it stands right now, the fix for this will be integrated in 4.14 without the need to manually update this.

Thank you!

---

<div class="post-metadata">

**Author:** ![1PercentPlankton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@1PercentPlankton](https://forums.unrealengine.com/u/1PercentPlankton)\
**Post date:** [October 3, 2016, 3:48pm UTC](https://forums.unrealengine.com/t/app-rejected-from-play-store-vulnerable-version-of-libpng/372236/5 "2016-10-03T15:48:21Z")

</div>

Thanks ! I appreciate the help and response!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7a1cbe4e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7a1cbe4e](https://forums.unrealengine.com/u/anonymous_user_7a1cbe4e)\
**Post date:** [October 29, 2016, 1:16pm UTC](https://forums.unrealengine.com/t/app-rejected-from-play-store-vulnerable-version-of-libpng/372236/6 "2016-10-29T13:16:45Z")

</div>

Hi cgardener,

I had this problem the las week. To fix it I had to update the engine to 4.13.2, however my app had a video embebed and know it doesn´t work. The sound plays but there is no image and I am still waiting for the solution…

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [October 31, 2016, 2:46pm UTC](https://forums.unrealengine.com/t/app-rejected-from-play-store-vulnerable-version-of-libpng/372236/7 "2016-10-31T14:46:13Z")

</div>

To add to this since my original post. 4.13.2 now solves the LibPNG issue. We had not originally planned to do a 4.13.2 hotfix, but had two other pertinent issues to resolve as well that allowed us to slip this in before 4.14 without having to manually integrate the changes yourself.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ccc7179f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ccc7179f](https://forums.unrealengine.com/u/anonymous_user_ccc7179f)\
**Post date:** [November 20, 2016, 12:09am UTC](https://forums.unrealengine.com/t/app-rejected-from-play-store-vulnerable-version-of-libpng/372236/8 "2016-11-20T00:09:53Z")

</div>

Is there any way to check what version is included in the build?  
We are still getting this problem even though we upgraded to 4.13.2  
We tried the github version and the other fixes that are listed.

Can a plugin cause the same issue?

Best  
-D

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [November 21, 2016, 2:20pm UTC](https://forums.unrealengine.com/t/app-rejected-from-play-store-vulnerable-version-of-libpng/372236/9 "2016-11-21T14:20:15Z")

</div>

@Boldarc_Dan

You can open up your Engine\Source\ThirdParty\LibPNG folder to see what version is listed.

Should be for 4.13/4.14 two folders for libPNG-1.5.2 and libPNG-1.5.27.

It’s possible that plugin could cause it, but I’m not sure. Probably best to make a new post in Packaging and Deployment section with all relevant information and logs.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ccc7179f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ccc7179f](https://forums.unrealengine.com/u/anonymous_user_ccc7179f)\
**Post date:** [November 21, 2016, 3:52pm UTC](https://forums.unrealengine.com/t/app-rejected-from-play-store-vulnerable-version-of-libpng/372236/10 "2016-11-21T15:52:20Z")

</div>

The issue was resolved. UE 4 engine version was using the right version.

The AR Toolkit plugin had a libPNG.a file that caused the problem.  
Deleted the file after communication with the plugin developer and now it works fine.

Thank you for your reply
