CWE-134
AllowedUse of Externally-Controlled Format String
Abstraction: Base · Status: Draft
The product uses a function that accepts a format string as an argument, but the format string originates from an external source.
501 vulnerabilities reference this CWE, most recent first.
GHSA-GHWM-JM66-72J7
Vulnerability from github – Published: 2022-04-29 01:27 – Updated: 2022-04-29 01:27Format string vulnerability in AMX 0.9.2 and earlier, a plugin for Valve Software's Half-Life Server, allows remote attackers to execute arbitrary commands via format string specifiers in the amx_say command.
{
"affected": [],
"aliases": [
"CVE-2003-1381"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2003-12-31T05:00:00Z",
"severity": "MODERATE"
},
"details": "Format string vulnerability in AMX 0.9.2 and earlier, a plugin for Valve Software\u0027s Half-Life Server, allows remote attackers to execute arbitrary commands via format string specifiers in the amx_say command.",
"id": "GHSA-ghwm-jm66-72j7",
"modified": "2022-04-29T01:27:59Z",
"published": "2022-04-29T01:27:59Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2003-1381"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/11427"
},
{
"type": "WEB",
"url": "http://securityreason.com/securityalert/3258"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/313273"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/6968"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-GJ4Q-M5Q3-4WFQ
Vulnerability from github – Published: 2022-05-02 03:47 – Updated: 2022-05-02 03:47Format string vulnerability in the h_readrequest function in http.c in httpdx Web Server 1.4 allows remote attackers to cause a denial of service (crash) or execute arbitrary code via format string specifiers in the Host header.
{
"affected": [],
"aliases": [
"CVE-2009-3663"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2009-10-11T22:30:00Z",
"severity": "HIGH"
},
"details": "Format string vulnerability in the h_readrequest function in http.c in httpdx Web Server 1.4 allows remote attackers to cause a denial of service (crash) or execute arbitrary code via format string specifiers in the Host header.",
"id": "GHSA-gj4q-m5q3-4wfq",
"modified": "2022-05-02T03:47:22Z",
"published": "2022-05-02T03:47:22Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2009-3663"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/53205"
},
{
"type": "WEB",
"url": "http://httpdx.sourceforge.net/downloads/changelog.log"
},
{
"type": "WEB",
"url": "http://osvdb.org/58129"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/36734"
},
{
"type": "WEB",
"url": "http://www.exploit-db.com/exploits/9657"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2009/2654"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-GJQP-7XQ4-7MR3
Vulnerability from github – Published: 2022-04-30 18:18 – Updated: 2022-04-30 18:18Format string vulnerability in the administration function in Cisco Secure Access Control Server (ACS) for Windows, 2.6.x and earlier and 3.x through 3.01 (build 40), allows remote attackers to crash the CSADMIN module only (denial of service of administration function) or execute arbitrary code via format strings in the URL to port 2002.
{
"affected": [],
"aliases": [
"CVE-2002-0159"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2002-04-22T04:00:00Z",
"severity": "HIGH"
},
"details": "Format string vulnerability in the administration function in Cisco Secure Access Control Server (ACS) for Windows, 2.6.x and earlier and 3.x through 3.01 (build 40), allows remote attackers to crash the CSADMIN module only (denial of service of administration function) or execute arbitrary code via format strings in the URL to port 2002.",
"id": "GHSA-gjqp-7xq4-7mr3",
"modified": "2022-04-30T18:18:39Z",
"published": "2022-04-30T18:18:39Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2002-0159"
},
{
"type": "WEB",
"url": "http://marc.info/?l=bugtraq\u0026m=101787248913611\u0026w=2"
},
{
"type": "WEB",
"url": "http://www.cisco.com/warp/public/707/ACS-Win-Web.shtml"
},
{
"type": "WEB",
"url": "http://www.iss.net/security_center/static/8742.php"
},
{
"type": "WEB",
"url": "http://www.osvdb.org/2062"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/4416"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-GQ6X-9GV4-V98H
Vulnerability from github – Published: 2026-02-10 18:30 – Updated: 2026-05-12 15:31A use of externally-controlled format string vulnerability in Fortinet FortiOS 7.6.0 through 7.6.4, FortiOS 7.4.0 through 7.4.9, FortiOS 7.2.0 through 7.2.11, FortiOS 7.0 all versions allows an authenticated admin to execute unauthorized code or commands via specifically crafted configuration.
{
"affected": [],
"aliases": [
"CVE-2025-64157"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-02-10T16:16:09Z",
"severity": "MODERATE"
},
"details": "A use of externally-controlled format string vulnerability in Fortinet FortiOS 7.6.0 through 7.6.4, FortiOS 7.4.0 through 7.4.9, FortiOS 7.2.0 through 7.2.11, FortiOS 7.0 all versions allows an authenticated admin to execute unauthorized code or commands via specifically crafted configuration.",
"id": "GHSA-gq6x-9gv4-v98h",
"modified": "2026-05-12T15:31:14Z",
"published": "2026-02-10T18:30:38Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-64157"
},
{
"type": "WEB",
"url": "https://cert-portal.siemens.com/productcert/html/ssa-975644.html"
},
{
"type": "WEB",
"url": "https://fortiguard.fortinet.com/psirt/FG-IR-25-795"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-GQVF-FXMV-5GJ9
Vulnerability from github – Published: 2023-06-07 09:30 – Updated: 2024-04-04 04:39On Triangle MicroWorks' SCADA Data Gateway version <= v5.01.03, an unauthenticated attacker can send a specially crafted broadcast message including format string characters to the SCADA Data Gateway to perform unrestricted memory reads.An unauthenticated user can use this format string vulnerability to repeatedly crash the GTWWebMonitor.exe process to DoS the Web Monitor. Furthermore, an authenticated user can leverage this vulnerability to leak memory from the GTWWebMonitor.exe process. This could be leveraged in an exploit chain to gain code execution.
{
"affected": [],
"aliases": [
"CVE-2023-2186"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2023-06-07T07:15:08Z",
"severity": "CRITICAL"
},
"details": "On Triangle MicroWorks\u0027 SCADA Data Gateway version \u003c= v5.01.03, an unauthenticated attacker can send a specially crafted broadcast message including format string characters to the SCADA Data Gateway to perform unrestricted memory reads.An unauthenticated user can use this format string vulnerability to repeatedly crash the GTWWebMonitor.exe process to DoS the Web Monitor. Furthermore, an authenticated user can leverage this vulnerability to leak memory from the GTWWebMonitor.exe process. This could be leveraged in an exploit chain to gain code execution.",
"id": "GHSA-gqvf-fxmv-5gj9",
"modified": "2024-04-04T04:39:08Z",
"published": "2023-06-07T09:30:32Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-2186"
},
{
"type": "WEB",
"url": "https://www.trellix.com/en-us/about/newsroom/stories/research/industrial-and-manufacturing-cves.html"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-GQVM-4224-VPW5
Vulnerability from github – Published: 2024-10-08 15:32 – Updated: 2024-10-08 15:32A use of externally-controlled format string in Fortinet FortiAnalyzer versions 7.4.0 through 7.4.3, 7.2.2 through 7.2.5 allows attacker to escalate its privileges via specially crafted requests.
{
"affected": [],
"aliases": [
"CVE-2024-45330"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-10-08T15:15:15Z",
"severity": "HIGH"
},
"details": "A use of externally-controlled format string in Fortinet FortiAnalyzer versions 7.4.0 through 7.4.3, 7.2.2 through 7.2.5 allows attacker to escalate its privileges via specially crafted requests.",
"id": "GHSA-gqvm-4224-vpw5",
"modified": "2024-10-08T15:32:46Z",
"published": "2024-10-08T15:32:46Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-45330"
},
{
"type": "WEB",
"url": "https://fortiguard.fortinet.com/psirt/FG-IR-24-196"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-GQWR-P67X-5FFF
Vulnerability from github – Published: 2022-05-03 03:15 – Updated: 2022-05-03 03:15Format string vulnerability in the SetImageInfo function in image.c for ImageMagick 6.2.3 and other versions, and GraphicsMagick, allows user-assisted attackers to cause a denial of service (crash) and possibly execute arbitrary code via a numeric format string specifier such as %d in the file name, a variant of CVE-2005-0397, and as demonstrated using the convert program.
{
"affected": [],
"aliases": [
"CVE-2006-0082"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2006-01-04T23:03:00Z",
"severity": "MODERATE"
},
"details": "Format string vulnerability in the SetImageInfo function in image.c for ImageMagick 6.2.3 and other versions, and GraphicsMagick, allows user-assisted attackers to cause a denial of service (crash) and possibly execute arbitrary code via a numeric format string specifier such as %d in the file name, a variant of CVE-2005-0397, and as demonstrated using the convert program.",
"id": "GHSA-gqwr-p67x-5fff",
"modified": "2022-05-03T03:15:27Z",
"published": "2022-05-03T03:15:27Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2006-0082"
},
{
"type": "WEB",
"url": "https://issues.rpath.com/browse/RPL-389"
},
{
"type": "WEB",
"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10717"
},
{
"type": "WEB",
"url": "http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=345876"
},
{
"type": "WEB",
"url": "http://rhn.redhat.com/errata/RHSA-2006-0178.html"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/18261"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/18607"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/18851"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/18871"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/19030"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/19183"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/19408"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/22998"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/23090"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/28800"
},
{
"type": "WEB",
"url": "http://securityreason.com/securityalert/500"
},
{
"type": "WEB",
"url": "http://securitytracker.com/id?1015623"
},
{
"type": "WEB",
"url": "http://slackware.com/security/viewer.php?l=slackware-security\u0026y=2006\u0026m=slackware-security.341682"
},
{
"type": "WEB",
"url": "http://sunsolve.sun.com/search/document.do?assetkey=1-26-231321-1"
},
{
"type": "WEB",
"url": "http://www.debian.org/security/2006/dsa-1213"
},
{
"type": "WEB",
"url": "http://www.gentoo.org/security/en/glsa/glsa-200602-06.xml"
},
{
"type": "WEB",
"url": "http://www.gentoo.org/security/en/glsa/glsa-200602-13.xml"
},
{
"type": "WEB",
"url": "http://www.mandriva.com/security/advisories?name=MDKSA-2006:024"
},
{
"type": "WEB",
"url": "http://www.novell.com/linux/security/advisories/2006_06_sr.html"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/452718/100/100/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/12717"
},
{
"type": "WEB",
"url": "http://www.ubuntu.com/usn/usn-246-1"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2008/0412"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-GQWW-H47C-Q37J
Vulnerability from github – Published: 2022-04-29 01:26 – Updated: 2022-04-29 01:26The calendar module in phpWebSite 0.9.x and earlier allows remote attackers to cause a denial of service (crash) via a long year parameter.
{
"affected": [],
"aliases": [
"CVE-2003-0738"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2003-10-20T04:00:00Z",
"severity": "HIGH"
},
"details": "The calendar module in phpWebSite 0.9.x and earlier allows remote attackers to cause a denial of service (crash) via a long year parameter.",
"id": "GHSA-gqww-h47c-q37j",
"modified": "2022-04-29T01:26:55Z",
"published": "2022-04-29T01:26:55Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2003-0738"
},
{
"type": "WEB",
"url": "http://marc.info/?l=bugtraq\u0026m=106062021711496\u0026w=2"
},
{
"type": "WEB",
"url": "http://marc.info/?l=bugtraq\u0026m=106252188522715\u0026w=2"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-GRR9-3239-9WFQ
Vulnerability from github – Published: 2024-06-19 00:31 – Updated: 2024-06-19 00:31Actiontec WCB6200Q Cookie Format String Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Actiontec WCB6200Q routers. Authentication is not required to exploit this vulnerability.
The specific flaw exists within the HTTP server. A crafted Cookie header in an HTTP request can trigger the use of a format specifier from a user-supplied string. An attacker can leverage this vulnerability to execute code in the context of the HTTP server. Was ZDI-CAN-21417.
{
"affected": [],
"aliases": [
"CVE-2024-6145"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-06-19T00:15:50Z",
"severity": "HIGH"
},
"details": "Actiontec WCB6200Q Cookie Format String Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Actiontec WCB6200Q routers. Authentication is not required to exploit this vulnerability.\n\nThe specific flaw exists within the HTTP server. A crafted Cookie header in an HTTP request can trigger the use of a format specifier from a user-supplied string. An attacker can leverage this vulnerability to execute code in the context of the HTTP server. Was ZDI-CAN-21417.",
"id": "GHSA-grr9-3239-9wfq",
"modified": "2024-06-19T00:31:58Z",
"published": "2024-06-19T00:31:58Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-6145"
},
{
"type": "WEB",
"url": "https://www.zerodayinitiative.com/advisories/ZDI-24-808"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-GRX9-955G-VJFG
Vulnerability from github – Published: 2022-08-05 00:00 – Updated: 2022-08-11 00:00Depending on the way the format strings in the card label are crafted it's possible to leak kernel stack memory. There is also the possibility for DoS due to the v4l2loopback kernel module crashing when providing the card label on request (reproduce e.g. with many %s modifiers in a row).
{
"affected": [],
"aliases": [
"CVE-2022-2652"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2022-08-04T10:15:00Z",
"severity": "MODERATE"
},
"details": "Depending on the way the format strings in the card label are crafted it\u0027s possible to leak kernel stack memory. There is also the possibility for DoS due to the v4l2loopback kernel module crashing when providing the card label on request (reproduce e.g. with many %s modifiers in a row).",
"id": "GHSA-grx9-955g-vjfg",
"modified": "2022-08-11T00:00:38Z",
"published": "2022-08-05T00:00:30Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-2652"
},
{
"type": "WEB",
"url": "https://github.com/umlaeute/v4l2loopback/commit/e4cd225557486c420f6a34411f98c575effd43dd"
},
{
"type": "WEB",
"url": "https://huntr.dev/bounties/1b055da5-7a9e-4409-99d7-030280d242d5"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:H",
"type": "CVSS_V3"
}
]
}
Mitigation
Choose a language that is not subject to this flaw.
Mitigation
Ensure that all format string functions are passed a static string which cannot be controlled by the user, and that the proper number of arguments are always sent to that function as well. If at all possible, use functions that do not support the %n operator in format strings. [REF-116] [REF-117]
Mitigation
Run compilers and linkers with high warning levels, since they may detect incorrect usage.
CAPEC-135: Format String Injection
An adversary includes formatting characters in a string input field on the target application. Most applications assume that users will provide static text and may respond unpredictably to the presence of formatting character. For example, in certain functions of the C programming languages such as printf, the formatting character %s will print the contents of a memory location expecting this location to identify a string and the formatting character %n prints the number of DWORD written in the memory. An adversary can use this to read or write to memory locations or files, or simply to manipulate the value of the resulting text in unexpected ways. Reading or writing memory may result in program crashes and writing memory could result in the execution of arbitrary code if the adversary can write to the program stack.
CAPEC-67: String Format Overflow in syslog()
This attack targets applications and software that uses the syslog() function insecurely. If an application does not explicitely use a format string parameter in a call to syslog(), user input can be placed in the format string parameter leading to a format string injection attack. Adversaries can then inject malicious format string commands into the function call leading to a buffer overflow. There are many reported software vulnerabilities with the root cause being a misuse of the syslog() function.