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.
526 vulnerabilities reference this CWE, most recent first.
GHSA-Q8WR-MC75-9WJP
Vulnerability from github – Published: 2022-05-02 03:35 – Updated: 2022-05-02 03:35Multiple format string vulnerabilities in the dispatch_command function in libmysqld/sql_parse.cc in mysqld in MySQL 4.0.0 through 5.0.83 allow remote authenticated users to cause a denial of service (daemon crash) and possibly have unspecified other impact via format string specifiers in a database name in a (1) COM_CREATE_DB or (2) COM_DROP_DB request. NOTE: some of these details are obtained from third party information.
{
"affected": [],
"aliases": [
"CVE-2009-2446"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2009-07-13T17:30:00Z",
"severity": "HIGH"
},
"details": "Multiple format string vulnerabilities in the dispatch_command function in libmysqld/sql_parse.cc in mysqld in MySQL 4.0.0 through 5.0.83 allow remote authenticated users to cause a denial of service (daemon crash) and possibly have unspecified other impact via format string specifiers in a database name in a (1) COM_CREATE_DB or (2) COM_DROP_DB request. NOTE: some of these details are obtained from third party information.",
"id": "GHSA-q8wr-mc75-9wjp",
"modified": "2022-05-02T03:35:19Z",
"published": "2022-05-02T03:35:19Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2009-2446"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/51614"
},
{
"type": "WEB",
"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11857"
},
{
"type": "WEB",
"url": "http://archives.neohapsis.com/archives/fulldisclosure/2009-07/0058.html"
},
{
"type": "WEB",
"url": "http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/35767"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/36566"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/38517"
},
{
"type": "WEB",
"url": "http://securitytracker.com/id?1022533"
},
{
"type": "WEB",
"url": "http://support.apple.com/kb/HT4077"
},
{
"type": "WEB",
"url": "http://ubuntu.com/usn/usn-897-1"
},
{
"type": "WEB",
"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2009:179"
},
{
"type": "WEB",
"url": "http://www.osvdb.org/55734"
},
{
"type": "WEB",
"url": "http://www.redhat.com/support/errata/RHSA-2009-1289.html"
},
{
"type": "WEB",
"url": "http://www.redhat.com/support/errata/RHSA-2010-0110.html"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/504799/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/35609"
},
{
"type": "WEB",
"url": "http://www.ubuntu.com/usn/USN-1397-1"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2009/1857"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-QCFM-CMFW-F4X4
Vulnerability from github – Published: 2026-07-18 15:31 – Updated: 2026-07-18 15:31SurrealDB before 1.1.1 contains a format string vulnerability in the rquickjs Exception::throw_type function when scripting is enabled. Attackers with scripting privileges can supply format string sequences in error inputs to read arbitrary memory or execute code with SurrealDB process privileges.
{
"affected": [],
"aliases": [
"CVE-2024-58366"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-07-18T14:17:09Z",
"severity": "CRITICAL"
},
"details": "SurrealDB before 1.1.1 contains a format string vulnerability in the rquickjs Exception::throw_type function when scripting is enabled. Attackers with scripting privileges can supply format string sequences in error inputs to read arbitrary memory or execute code with SurrealDB process privileges.",
"id": "GHSA-qcfm-cmfw-f4x4",
"modified": "2026-07-18T15:31:49Z",
"published": "2026-07-18T15:31:49Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/surrealdb/surrealdb/security/advisories/GHSA-q3gg-m8hr-h4x4"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-58366"
},
{
"type": "WEB",
"url": "https://www.vulncheck.com/advisories/surrealdb-before-format-string-via-scripting-functions"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"type": "CVSS_V4"
}
]
}
GHSA-QF5R-6WJW-CJ95
Vulnerability from github – Published: 2022-05-01 23:56 – Updated: 2022-05-01 23:56Format string vulnerability in dx8render.dll in Snail Game (aka Suzhou Snail Electronic Company) 5th street (aka Hot Step or High Street 5) allows remote attackers to execute arbitrary code via format string specifiers in a chat message.
{
"affected": [],
"aliases": [
"CVE-2008-3116"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2008-07-10T17:41:00Z",
"severity": "HIGH"
},
"details": "Format string vulnerability in dx8render.dll in Snail Game (aka Suzhou Snail Electronic Company) 5th street (aka Hot Step or High Street 5) allows remote attackers to execute arbitrary code via format string specifiers in a chat message.",
"id": "GHSA-qf5r-6wjw-cj95",
"modified": "2022-05-01T23:56:44Z",
"published": "2022-05-01T23:56:44Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-3116"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/43370"
},
{
"type": "WEB",
"url": "http://securityreason.com/securityalert/3982"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/493649/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/29928"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-QG76-CC76-5JPX
Vulnerability from github – Published: 2022-10-25 19:00 – Updated: 2022-10-28 12:00Four format string injection vulnerabilities exist in the XCMD testWifiAP functionality of Abode Systems, Inc. iota All-In-One Security Kit 6.9X and 6.9Z. Specially-crafted configuration values can lead to memory corruption, information disclosure and denial of service. An attacker can modify a configuration value and then execute an XCMD to trigger these vulnerabilities.This vulnerability arises from format string injection via the default_key_id and key configuration parameters, as used within the testWifiAP XCMD handler
{
"affected": [],
"aliases": [
"CVE-2022-35876"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2022-10-25T17:15:00Z",
"severity": "CRITICAL"
},
"details": "Four format string injection vulnerabilities exist in the XCMD testWifiAP functionality of Abode Systems, Inc. iota All-In-One Security Kit 6.9X and 6.9Z. Specially-crafted configuration values can lead to memory corruption, information disclosure and denial of service. An attacker can modify a configuration value and then execute an XCMD to trigger these vulnerabilities.This vulnerability arises from format string injection via the `default_key_id` and `key` configuration parameters, as used within the `testWifiAP` XCMD handler",
"id": "GHSA-qg76-cc76-5jpx",
"modified": "2022-10-28T12:00:35Z",
"published": "2022-10-25T19:00:28Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-35876"
},
{
"type": "WEB",
"url": "https://talosintelligence.com/vulnerability_reports/TALOS-2022-1581"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-QHM2-PX33-58V8
Vulnerability from github – Published: 2026-05-14 15:31 – Updated: 2026-05-14 15:31Externally-controlled format string in PostgreSQL timeofday() function allows an attacker to retrieve portions of server memory, via crafted timezone zones. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.
{
"affected": [],
"aliases": [
"CVE-2026-6474"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-05-14T14:16:24Z",
"severity": "MODERATE"
},
"details": "Externally-controlled format string in PostgreSQL timeofday() function allows an attacker to retrieve portions of server memory, via crafted timezone zones. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.",
"id": "GHSA-qhm2-px33-58v8",
"modified": "2026-05-14T15:31:58Z",
"published": "2026-05-14T15:31:58Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-6474"
},
{
"type": "WEB",
"url": "https://www.postgresql.org/support/security/CVE-2026-6474"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-QPG7-HXPW-2PCJ
Vulnerability from github – Published: 2022-05-01 18:24 – Updated: 2022-05-01 18:24Format string vulnerability in ALPass 2.7 English and 3.02 Korean might allow user-assisted remote attackers to execute arbitrary code via format string specifiers in an fnm field in a folder-name record in an ALPASS DB (APW) file.
{
"affected": [],
"aliases": [
"CVE-2007-4550"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2007-08-28T00:17:00Z",
"severity": "MODERATE"
},
"details": "Format string vulnerability in ALPass 2.7 English and 3.02 Korean might allow user-assisted remote attackers to execute arbitrary code via format string specifiers in an fnm field in a folder-name record in an ALPASS DB (APW) file.",
"id": "GHSA-qpg7-hxpw-2pcj",
"modified": "2022-05-01T18:24:46Z",
"published": "2022-05-01T18:24:46Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2007-4550"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/36256"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/26616"
},
{
"type": "WEB",
"url": "http://vuln.sg/alpass27-en.html"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/25435"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-QQ3G-2VHJ-H4WR
Vulnerability from github – Published: 2022-05-14 02:39 – Updated: 2022-05-14 02:39Format string vulnerability in the vinagre_utils_show_error function (src/vinagre-utils.c) in Vinagre 0.5.x before 0.5.2 and 2.x before 2.24.2 might allow remote attackers to execute arbitrary code via format string specifiers in a crafted URI or VNC server response.
{
"affected": [],
"aliases": [
"CVE-2008-5660"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2008-12-17T20:30:00Z",
"severity": "MODERATE"
},
"details": "Format string vulnerability in the vinagre_utils_show_error function (src/vinagre-utils.c) in Vinagre 0.5.x before 0.5.2 and 2.x before 2.24.2 might allow remote attackers to execute arbitrary code via format string specifiers in a crafted URI or VNC server response.",
"id": "GHSA-qq3g-2vhj-h4wr",
"modified": "2022-05-14T02:39:43Z",
"published": "2022-05-14T02:39:43Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-5660"
},
{
"type": "WEB",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=475070"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/7401"
},
{
"type": "WEB",
"url": "https://www.redhat.com/archives/fedora-package-announce/2008-December/msg00473.html"
},
{
"type": "WEB",
"url": "https://www.redhat.com/archives/fedora-package-announce/2008-December/msg00485.html"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/33041"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/33046"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/33082"
},
{
"type": "WEB",
"url": "http://www.coresecurity.com/content/vinagre-format-string"
},
{
"type": "WEB",
"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2008:240"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/499057/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.ubuntu.com/usn/usn-689-1"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2008/3362"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-QRQQ-J9PV-4JJP
Vulnerability from github – Published: 2022-05-17 05:14 – Updated: 2022-05-17 05:14Format string vulnerability in the nsrd RPC service in EMC NetWorker 7.6.3 and 7.6.4 before 7.6.4.1, and 8.0 before 8.0.0.1, allows remote attackers to execute arbitrary code via format string specifiers in a message.
{
"affected": [],
"aliases": [
"CVE-2012-2288"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2012-09-04T11:04:00Z",
"severity": "HIGH"
},
"details": "Format string vulnerability in the nsrd RPC service in EMC NetWorker 7.6.3 and 7.6.4 before 7.6.4.1, and 8.0 before 8.0.0.1, allows remote attackers to execute arbitrary code via format string specifiers in a message.",
"id": "GHSA-qrqq-j9pv-4jjp",
"modified": "2022-05-17T05:14:11Z",
"published": "2022-05-17T05:14:11Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2012-2288"
},
{
"type": "WEB",
"url": "http://archives.neohapsis.com/archives/bugtraq/2012-08/0219.html"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/55330"
},
{
"type": "WEB",
"url": "http://www.securitytracker.com/id?1027459"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-QV74-54R8-P8X7
Vulnerability from github – Published: 2022-05-14 03:52 – Updated: 2022-05-14 03:52Format string vulnerability in the log_message_cb function in otr-plugin.c in the Off-the-Record Messaging (OTR) pidgin-otr plugin before 3.2.1 for Pidgin might allow remote attackers to execute arbitrary code via format string specifiers in data that generates a log message.
{
"affected": [],
"aliases": [
"CVE-2012-2369"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2012-05-23T20:55:00Z",
"severity": "HIGH"
},
"details": "Format string vulnerability in the log_message_cb function in otr-plugin.c in the Off-the-Record Messaging (OTR) pidgin-otr plugin before 3.2.1 for Pidgin might allow remote attackers to execute arbitrary code via format string specifiers in data that generates a log message.",
"id": "GHSA-qv74-54r8-p8x7",
"modified": "2022-05-14T03:52:48Z",
"published": "2022-05-14T03:52:48Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2012-2369"
},
{
"type": "WEB",
"url": "http://lists.opensuse.org/opensuse-security-announce/2012-06/msg00003.html"
},
{
"type": "WEB",
"url": "http://openwall.com/lists/oss-security/2012/05/16/2"
},
{
"type": "WEB",
"url": "http://security.gentoo.org/glsa/glsa-201207-05.xml"
},
{
"type": "WEB",
"url": "http://www.debian.org/security/2012/dsa-2476"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-QVJF-C2JG-Q2RH
Vulnerability from github – Published: 2022-05-01 23:39 – Updated: 2022-05-01 23:39Format string vulnerability in the Net Inspector HTTP server (mghttpd) in MG-SOFT Net Inspector 6.5.0.828 and earlier for Windows allows remote attackers to execute arbitrary code via format string specifiers in the URI, which is recorded in a log file.
{
"affected": [],
"aliases": [
"CVE-2008-1401"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2008-03-20T10:44:00Z",
"severity": "MODERATE"
},
"details": "Format string vulnerability in the Net Inspector HTTP server (mghttpd) in MG-SOFT Net Inspector 6.5.0.828 and earlier for Windows allows remote attackers to execute arbitrary code via format string specifiers in the URI, which is recorded in a log file.",
"id": "GHSA-qvjf-c2jg-q2rh",
"modified": "2022-05-01T23:39:53Z",
"published": "2022-05-01T23:39:53Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-1401"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/5269"
},
{
"type": "WEB",
"url": "http://aluigi.altervista.org/adv/netinsp-adv.txt"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/29421"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/489704/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/28266"
}
],
"schema_version": "1.4.0",
"severity": []
}
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.