<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/all-php-applications-are-vulnerable-fnr8la1v3" -->

---
title: All PHP Applications are Vulnerable | daily.dev
description: A 24-year-old bug in the GBC library can be exploited to take over virtually any PHP application.
canonical: https://daily.dev/posts/all-php-applications-are-vulnerable-fnr8la1v3
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: All PHP Applications are Vulnerable | daily.dev
og:description: A 24-year-old bug in the GBC library can be exploited to take over virtually any PHP application.
og:url: https://daily.dev/posts/all-php-applications-are-vulnerable-fnr8la1v3
og:image: https://api.daily.dev/og/posts/fnr8la1v3.png
og:image:alt: All PHP Applications are Vulnerable
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# All PHP Applications are Vulnerable

**[Mental Outlaw](https://daily.dev/sources/mentaloutlaw)** · 8 min read · 21 upvotes · 3 comments

## Summary

A 24-year-old bug in the GBC library can be exploited to take over virtually any PHP application.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=u8jLUjpCWrs>

## Community discussion

Top comments from developers on daily.dev.

**@yewolf** · 11 upvotes

> Just a disclaimer for anyone watching, it is not a bug in PHP and only affects you if you convert TO the specific charset (not from), this is unlikely to lead to an RCE and more likely will lead to a DOS

**@n1m4** · 5 upvotes

> https://www.php.net/archive/2024.php#2024-04-24-1

**@friedrich** · 0 upvotes

> This is freaking !
>
> A such dangerous bug found after more than twenty years.

---

Tags: [#security](https://daily.dev/tags/security), [#webdev](https://daily.dev/tags/webdev), [#vulnerability](https://daily.dev/tags/vulnerability), [#php](https://daily.dev/tags/php)

[View this post on daily.dev](https://daily.dev/posts/all-php-applications-are-vulnerable-fnr8la1v3)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"All PHP Applications are Vulnerable","url":"https://daily.dev/posts/all-php-applications-are-vulnerable-fnr8la1v3","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/all-php-applications-are-vulnerable-fnr8la1v3"},"datePublished":"2024-04-22T23:52:12.946Z","dateModified":"2024-04-22T23:52:10.991Z","description":"A 24-year-old bug in the GBC library can be exploited to take over virtually any PHP application.","image":"https://i.ytimg.com/vi/u8jLUjpCWrs/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/u8jLUjpCWrs/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Mental Outlaw","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Mental Outlaw","logo":"https://media.daily.dev/image/upload/s---3xRV5E---/f_auto/v1712315214/logos/mentaloutlaw","url":"https://daily.dev/sources/mentaloutlaw"},"commentCount":3,"discussionUrl":"https://daily.dev/posts/all-php-applications-are-vulnerable-fnr8la1v3","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":21},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":3}],"keywords":"security,webdev,vulnerability,php","timeRequired":"PT8M","video":{"@type":"VideoObject","name":"All PHP Applications are Vulnerable","description":"A 24-year-old bug in the GBC library can be exploited to take over virtually any PHP application.","thumbnailUrl":"https://i.ytimg.com/vi/u8jLUjpCWrs/sddefault.jpg","uploadDate":"2024-04-22T23:52:12.946Z","duration":"PT8M","url":"https://api.daily.dev/r/fnr8la1v3","embedUrl":"https://www.youtube.com/embed/u8jLUjpCWrs"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Mental Outlaw","item":"https://daily.dev/sources/mentaloutlaw"},{"@type":"ListItem","position":3,"name":"All PHP Applications are Vulnerable"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/all-php-applications-are-vulnerable-fnr8la1v3","comment":[{"@type":"Comment","text":"Just a disclaimer for anyone watching, it is not a bug in PHP and only affects you if you convert TO the specific charset (not from), this is unlikely to lead to an RCE and more likely will lead to a DOS","datePublished":"2024-04-25T06:13:58.641Z","url":"https://daily.dev/posts/fnr8la1v3#c-BBnT1GtZe","author":{"@type":"Person","name":"Yewolf","url":"https://daily.dev/yewolf","image":"https://avatars.githubusercontent.com/u/31407909?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":11}},{"@type":"Comment","text":"https://www.php.net/archive/2024.php#2024-04-24-1","datePublished":"2024-04-25T08:52:10.064Z","url":"https://daily.dev/posts/fnr8la1v3#c-wpn83LE2h","author":{"@type":"Person","name":"NF","url":"https://daily.dev/n1m4","image":"https://lh3.googleusercontent.com/a/ACg8ocIoHYF16PXnakGXgmkufTQhWN5gP1w0VQUnjhWX4ccoX0H21A=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5}},{"@type":"Comment","text":"This is freaking !\nA such dangerous bug found after more than twenty years.","datePublished":"2024-04-24T17:23:53.784Z","url":"https://daily.dev/posts/fnr8la1v3#c-W472tvEfr","author":{"@type":"Person","name":"Friedrich WT","url":"https://daily.dev/friedrich","image":"https://avatars.githubusercontent.com/u/136119888?v=4"}}]}
```

