Common Weakness Enumeration

CWE-134

Allowed

Use 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.

499 vulnerabilities reference this CWE, most recent first.

GHSA-VHHJ-MRPH-VF7J

Vulnerability from github – Published: 2022-05-01 23:37 – Updated: 2025-04-09 03:52
VLAI
Details

Format string vulnerability in the log_message function in lks.c in Linux Kiss Server 1.2, when background (daemon) mode is disabled, allows remote attackers to cause a denial of service (crash) or execute arbitrary code via format string specifiers in an invalid command.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2008-1206"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-134"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2008-03-08T00:44:00Z",
    "severity": "MODERATE"
  },
  "details": "Format string vulnerability in the log_message function in lks.c in Linux Kiss Server 1.2, when background (daemon) mode is disabled, allows remote attackers to cause a denial of service (crash) or execute arbitrary code via format string specifiers in an invalid command.",
  "id": "GHSA-vhhj-mrph-vf7j",
  "modified": "2025-04-09T03:52:17Z",
  "published": "2022-05-01T23:37:39Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2008-1206"
    },
    {
      "type": "WEB",
      "url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/41018"
    },
    {
      "type": "WEB",
      "url": "http://marc.info/?l=full-disclosure\u0026m=120468901813326\u0026w=2"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/29219"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/bid/28099"
    },
    {
      "type": "WEB",
      "url": "http://www.vashnukad.com"
    },
    {
      "type": "WEB",
      "url": "http://www.vupen.com/english/advisories/2008/0785"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}

GHSA-VMHM-F3XF-HV75

Vulnerability from github – Published: 2022-05-24 17:09 – Updated: 2022-05-24 17:09
VLAI
Details

An exploitable format string vulnerability exists in the iw_console conio_writestr functionality of the Moxa AWK-3131A firmware version 1.13. A specially crafted time server entry can cause an overflow of the time server buffer, resulting in remote code execution. An attacker can send commands while authenticated as a low privilege user to trigger this vulnerability.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2019-5143"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-134"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2020-02-25T16:15:00Z",
    "severity": "MODERATE"
  },
  "details": "An exploitable format string vulnerability exists in the iw_console conio_writestr functionality of the Moxa AWK-3131A firmware version 1.13. A specially crafted time server entry can cause an overflow of the time server buffer, resulting in remote code execution. An attacker can send commands while authenticated as a low privilege user to trigger this vulnerability.",
  "id": "GHSA-vmhm-f3xf-hv75",
  "modified": "2022-05-24T17:09:37Z",
  "published": "2022-05-24T17:09:37Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-5143"
    },
    {
      "type": "WEB",
      "url": "https://talosintelligence.com/vulnerability_reports/TALOS-2019-0932"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}

GHSA-VP33-R976-5VJP

Vulnerability from github – Published: 2022-05-01 23:35 – Updated: 2022-05-01 23:35
VLAI
Details

Format string vulnerability in mDNSResponderHelper in Apple Mac OS X 10.5.2 allows local users to execute arbitrary code via format string specifiers in the local hostname.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2008-0989"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-134"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2008-03-18T23:44:00Z",
    "severity": "MODERATE"
  },
  "details": "Format string vulnerability in mDNSResponderHelper in Apple Mac OS X 10.5.2 allows local users to execute arbitrary code via format string specifiers in the local hostname.",
  "id": "GHSA-vp33-r976-5vjp",
  "modified": "2022-05-01T23:35:33Z",
  "published": "2022-05-01T23:35:33Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2008-0989"
    },
    {
      "type": "WEB",
      "url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/41292"
    },
    {
      "type": "WEB",
      "url": "http://docs.info.apple.com/article.html?artnum=307562"
    },
    {
      "type": "WEB",
      "url": "http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/29420"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/bid/28304"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/bid/28339"
    },
    {
      "type": "WEB",
      "url": "http://www.securitytracker.com/id?1019662"
    },
    {
      "type": "WEB",
      "url": "http://www.us-cert.gov/cas/techalerts/TA08-079A.html"
    },
    {
      "type": "WEB",
      "url": "http://www.vupen.com/english/advisories/2008/0924/references"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}

GHSA-VQRH-PW2C-GFRH

Vulnerability from github – Published: 2022-05-01 17:49 – Updated: 2022-05-01 17:49
VLAI
Details

Multiple format string vulnerabilities in the gm_main_window_flash_message function in Ekiga before 2.0.5 allow attackers to cause a denial of service and possibly execute arbitrary code via a crafted Q.931 SETUP packet.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2007-1006"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-134"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2007-02-20T01:28:00Z",
    "severity": "HIGH"
  },
  "details": "Multiple format string vulnerabilities in the gm_main_window_flash_message function in Ekiga before 2.0.5 allow attackers to cause a denial of service and possibly execute arbitrary code via a crafted Q.931 SETUP packet.",
  "id": "GHSA-vqrh-pw2c-gfrh",
  "modified": "2022-05-01T17:49:15Z",
  "published": "2022-05-01T17:49:15Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2007-1006"
    },
    {
      "type": "WEB",
      "url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11642"
    },
    {
      "type": "WEB",
      "url": "http://fedoranews.org/cms/node/2682"
    },
    {
      "type": "WEB",
      "url": "http://fedoranews.org/cms/node/2683"
    },
    {
      "type": "WEB",
      "url": "http://labs.musecurity.com/advisories/MU-200702-01.txt"
    },
    {
      "type": "WEB",
      "url": "http://mail.gnome.org/archives/ekiga-list/2007-February/msg00060.html"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/24194"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/24228"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/24229"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/24271"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/24379"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/24680"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/25119"
    },
    {
      "type": "WEB",
      "url": "http://security.gentoo.org/glsa/glsa-200703-25.xml"
    },
    {
      "type": "WEB",
      "url": "http://www.debian.org/security/2007/dsa-1262"
    },
    {
      "type": "WEB",
      "url": "http://www.ekiga.org/index.php?rub=10\u0026archive=1"
    },
    {
      "type": "WEB",
      "url": "http://www.mandriva.com/security/advisories?name=MDKSA-2007:044"
    },
    {
      "type": "WEB",
      "url": "http://www.novell.com/linux/security/advisories/2007_9_sr.html"
    },
    {
      "type": "WEB",
      "url": "http://www.osvdb.org/31939"
    },
    {
      "type": "WEB",
      "url": "http://www.redhat.com/support/errata/RHSA-2007-0087.html"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/bid/22613"
    },
    {
      "type": "WEB",
      "url": "http://www.securitytracker.com/id?1017673"
    },
    {
      "type": "WEB",
      "url": "http://www.ubuntu.com/usn/usn-426-1"
    },
    {
      "type": "WEB",
      "url": "http://www.vupen.com/english/advisories/2007/0655"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}

GHSA-VV6M-9GCJ-8CF5

Vulnerability from github – Published: 2023-06-13 09:30 – Updated: 2024-04-04 04:45
VLAI
Details

A use of externally-controlled format string in Fortinet FortiOS version 7.2.0 through 7.2.4, FortiOS all versions 7.0, FortiOS all versions 6.4, FortiOS all versions 6.2, FortiProxy version 7.2.0 through 7.2.1, FortiProxy version 7.0.0 through 7.0.7 allows attacker to execute unauthorized code or commands via specially crafted commands.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2022-43953"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-134"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2023-06-13T09:15:16Z",
    "severity": "HIGH"
  },
  "details": "A use of externally-controlled format string in Fortinet FortiOS version 7.2.0 through 7.2.4, FortiOS all versions 7.0, FortiOS all versions 6.4, FortiOS all versions 6.2, FortiProxy version 7.2.0 through 7.2.1, FortiProxy version 7.0.0 through 7.0.7 allows attacker to execute unauthorized code or commands via specially crafted commands.",
  "id": "GHSA-vv6m-9gcj-8cf5",
  "modified": "2024-04-04T04:45:23Z",
  "published": "2023-06-13T09:30:19Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-43953"
    },
    {
      "type": "WEB",
      "url": "https://fortiguard.com/psirt/FG-IR-22-463"
    }
  ],
  "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-VWJ9-7CRP-G9MP

Vulnerability from github – Published: 2022-05-01 01:55 – Updated: 2022-05-01 01:55
VLAI
Details

Format string vulnerability in cgi.c for Monkey daemon (monkeyd) before 0.9.1 allows remote attackers to cause a denial of service and possibly execute arbitrary code via an HTTP GET request containing double-encoded format string specifiers (aka "double expansion error").

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2005-1122"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-134"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2005-04-14T04:00:00Z",
    "severity": "HIGH"
  },
  "details": "Format string vulnerability in cgi.c for Monkey daemon (monkeyd) before 0.9.1 allows remote attackers to cause a denial of service and possibly execute arbitrary code via an HTTP GET request containing double-encoded format string specifiers (aka \"double expansion error\").",
  "id": "GHSA-vwj9-7crp-g9mp",
  "modified": "2022-05-01T01:55:39Z",
  "published": "2022-05-01T01:55:39Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2005-1122"
    },
    {
      "type": "WEB",
      "url": "http://bugs.gentoo.org/show_bug.cgi?id=87916"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/14953"
    },
    {
      "type": "WEB",
      "url": "http://security.gentoo.org/glsa/glsa-200504-14.xml"
    },
    {
      "type": "WEB",
      "url": "http://www.osvdb.org/15511"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}

GHSA-VX28-8M2J-873P

Vulnerability from github – Published: 2022-05-01 07:09 – Updated: 2022-05-01 07:09
VLAI
Details

Format string vulnerability in time.cc in MySQL Server 4.1 before 4.1.21 and 5.0 before 1 April 2006 allows remote authenticated users to cause a denial of service (crash) via a format string instead of a date as the first parameter to the date_format function, which is later used in a formatted print call to display the error message.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2006-3469"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-134"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2006-07-21T14:03:00Z",
    "severity": "MODERATE"
  },
  "details": "Format string vulnerability in time.cc in MySQL Server 4.1 before 4.1.21 and 5.0 before 1 April 2006 allows remote authenticated users to cause a denial of service (crash) via a format string instead of a date as the first parameter to the date_format function, which is later used in a formatted print call to display the error message.",
  "id": "GHSA-vx28-8m2j-873p",
  "modified": "2022-05-01T07:09:20Z",
  "published": "2022-05-01T07:09:20Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2006-3469"
    },
    {
      "type": "WEB",
      "url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9827"
    },
    {
      "type": "WEB",
      "url": "http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=375694"
    },
    {
      "type": "WEB",
      "url": "http://bugs.mysql.com/bug.php?id=20729"
    },
    {
      "type": "WEB",
      "url": "http://dev.mysql.com/doc/refman/4.1/en/news-4-1-21.html"
    },
    {
      "type": "WEB",
      "url": "http://docs.info.apple.com/article.html?artnum=305214"
    },
    {
      "type": "WEB",
      "url": "http://lists.apple.com/archives/security-announce/2007/Mar/msg00002.html"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/21147"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/21366"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/24479"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/31226"
    },
    {
      "type": "WEB",
      "url": "http://security.gentoo.org/glsa/glsa-200608-09.xml"
    },
    {
      "type": "WEB",
      "url": "http://www.debian.org/security/2006/dsa-1112"
    },
    {
      "type": "WEB",
      "url": "http://www.redhat.com/support/errata/RHSA-2008-0768.html"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/bid/19032"
    },
    {
      "type": "WEB",
      "url": "http://www.ubuntu.com/usn/usn-321-1"
    },
    {
      "type": "WEB",
      "url": "http://www.us-cert.gov/cas/techalerts/TA07-072A.html"
    },
    {
      "type": "WEB",
      "url": "http://www.vupen.com/english/advisories/2007/0930"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}

GHSA-W3GC-CRW4-RMRM

Vulnerability from github – Published: 2023-02-16 21:30 – Updated: 2023-02-24 21:30
VLAI
Details

A use of externally-controlled format string in Fortinet FortiWeb version 7.0.0 through 7.0.1, FortiWeb 6.4 all versions allows attacker to execute unauthorized code or commands via specially crafted command arguments.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2023-23783"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-134"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2023-02-16T19:15:00Z",
    "severity": "HIGH"
  },
  "details": "A use of externally-controlled format string in Fortinet FortiWeb version 7.0.0 through 7.0.1, FortiWeb 6.4 all versions allows attacker to execute unauthorized code or commands via specially crafted command arguments.",
  "id": "GHSA-w3gc-crw4-rmrm",
  "modified": "2023-02-24T21:30:18Z",
  "published": "2023-02-16T21:30:28Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-23783"
    },
    {
      "type": "WEB",
      "url": "https://fortiguard.com/psirt/FG-IR-22-187"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}

GHSA-W3JP-P4XG-PFWX

Vulnerability from github – Published: 2022-05-02 03:32 – Updated: 2022-05-02 03:32
VLAI
Details

Format string vulnerability in Login Window in Apple Mac OS X 10.4.11 and 10.5 before 10.5.8 allows attackers to execute arbitrary code or cause a denial of service (application crash) via format string specifiers in an application name.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2009-2191"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-134"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2009-08-06T16:30:00Z",
    "severity": "HIGH"
  },
  "details": "Format string vulnerability in Login Window in Apple Mac OS X 10.4.11 and 10.5 before 10.5.8 allows attackers to execute arbitrary code or cause a denial of service (application crash) via format string specifiers in an application name.",
  "id": "GHSA-w3jp-p4xg-pfwx",
  "modified": "2022-05-02T03:32:44Z",
  "published": "2022-05-02T03:32:43Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2009-2191"
    },
    {
      "type": "WEB",
      "url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/52428"
    },
    {
      "type": "WEB",
      "url": "http://lists.apple.com/archives/security-announce/2009/Aug/msg00001.html"
    },
    {
      "type": "WEB",
      "url": "http://osvdb.org/56840"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/36096"
    },
    {
      "type": "WEB",
      "url": "http://support.apple.com/kb/HT3757"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/bid/35954"
    },
    {
      "type": "WEB",
      "url": "http://www.us-cert.gov/cas/techalerts/TA09-218A.html"
    },
    {
      "type": "WEB",
      "url": "http://www.vupen.com/english/advisories/2009/2172"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}

GHSA-W4GH-86GF-2HC3

Vulnerability from github – Published: 2022-05-17 02:11 – Updated: 2022-05-17 02:11
VLAI
Details

Multiple format string vulnerabilities in the SSI filter in Xitami Web Server 2.5c2, and possibly other versions, allow remote attackers to cause a denial of service (daemon crash) and possibly execute arbitrary code via format string specifiers in a URI that ends in (1) .ssi, (2) .shtm, or (3) .shtml, which triggers incorrect logging code involving the sendfmt function in the SMT kernel.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2008-6520"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-134"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2009-03-25T18:30:00Z",
    "severity": "HIGH"
  },
  "details": "Multiple format string vulnerabilities in the SSI filter in Xitami Web Server 2.5c2, and possibly other versions, allow remote attackers to cause a denial of service (daemon crash) and possibly execute arbitrary code via format string specifiers in a URI that ends in (1) .ssi, (2) .shtm, or (3) .shtml, which triggers incorrect logging code involving the sendfmt function in the SMT kernel.",
  "id": "GHSA-w4gh-86gf-2hc3",
  "modified": "2022-05-17T02:11:14Z",
  "published": "2022-05-17T02:11:14Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2008-6520"
    },
    {
      "type": "WEB",
      "url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/41645"
    },
    {
      "type": "WEB",
      "url": "http://www.bratax.be/advisories/b013.html"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/bid/28603"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}

Mitigation
Requirements

Choose a language that is not subject to this flaw.

Mitigation
Implementation

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
Build and Compilation

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.