> For the complete documentation index, see [llms.txt](https://www.ctfrecipes.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.ctfrecipes.com/pwn/stack-exploitation/stack-buffer-overflow/dangerous-functions.md).

# Dangerous functions

The following functions are known to be vulnerable to buffer overflows:

{% content-ref url="/pages/cIWABwoUb9qSFAnnzGiL" %}
[gets](/pwn/stack-exploitation/stack-buffer-overflow/dangerous-functions/gets.md)
{% endcontent-ref %}

{% content-ref url="/pages/p4a9lm1J9f59kSyuRWZ3" %}
[memcpy](/pwn/stack-exploitation/stack-buffer-overflow/dangerous-functions/memcpy.md)
{% endcontent-ref %}

{% content-ref url="/pages/FabVtX780aC9AqZuGpbn" %}
[sprintf](/pwn/stack-exploitation/stack-buffer-overflow/dangerous-functions/sprintf.md)
{% endcontent-ref %}

{% content-ref url="/pages/qxsHYL2Sy0GL6pt5SzSM" %}
[strcat](/pwn/stack-exploitation/stack-buffer-overflow/dangerous-functions/strcat.md)
{% endcontent-ref %}

{% content-ref url="/pages/alItBy3vpFuhEXXnfQlB" %}
[strcpy](/pwn/stack-exploitation/stack-buffer-overflow/dangerous-functions/strcpy.md)
{% endcontent-ref %}
