CWE-134
Weakness 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.
Mapping guidance
This CWE entry is at the Base level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities.
Carefully read both the name and description to ensure that this mapping is an appropriate fit. Do not try to 'force' a mapping to a lower-level Base/Variant simply to comply with this preferred level of abstraction.
Relationships and members
Modes of introduction
The programmer rarely intends for a format string to be externally-controlled at all. This weakness is frequently introduced in code that constructs log messages, where a constant format string is omitted.
In cases such as localization and internationalization, the language-specific message repositories could be an avenue for exploitation, but the format string issue would be resultant, since attacker control of those repositories would also allow modification of message length, format, and content.
Detection methods
Automated Static Analysis
This weakness can often be detected using automated static analysis tools. Many modern tools use data flow analysis or constraint-based techniques to minimize the number of false positives.
Black Box
Since format strings often occur in rarely-occurring erroneous conditions (e.g. for error message logging), they can be difficult to detect using black box methods. It is highly likely that many latent issues exist in executables that do not have associated source code (or equivalent source.
Effectiveness: Limited
Automated Static Analysis - Binary or Bytecode
According to SOAR [REF-1479], the following detection techniques may be useful:
Highly cost effective:
Bytecode Weakness Analysis - including disassembler + source code weakness analysis
Binary Weakness Analysis - including disassembler + source code weakness analysis
Cost effective for partial coverage:
Binary / Bytecode simple extractor - strings, ELF readers, etc.
Effectiveness: High
Manual Static Analysis - Binary or Bytecode
According to SOAR [REF-1479], the following detection techniques may be useful:
Cost effective for partial coverage:
Binary / Bytecode disassembler - then use manual analysis for vulnerabilities & anomalies
Effectiveness: SOAR Partial
Dynamic Analysis with Automated Results Interpretation
According to SOAR [REF-1479], the following detection techniques may be useful:
Cost effective for partial coverage:
Web Application Scanner
Web Services Scanner
Database Scanners
Effectiveness: SOAR Partial
Dynamic Analysis with Manual Results Interpretation
According to SOAR [REF-1479], the following detection techniques may be useful:
Cost effective for partial coverage:
Fuzz Tester
Framework-based Fuzzer
Effectiveness: SOAR Partial
Manual Static Analysis - Source Code
According to SOAR [REF-1479], the following detection techniques may be useful:
Highly cost effective:
Manual Source Code Review (not inspections)
Cost effective for partial coverage:
Focused Manual Spotcheck - Focused manual analysis of source
Effectiveness: High
Automated Static Analysis - Source Code
According to SOAR [REF-1479], the following detection techniques may be useful:
Highly cost effective:
Source code Weakness Analyzer
Context-configured Source Code Weakness Analyzer
Cost effective for partial coverage:
Warning Flags
Effectiveness: High
Architecture or Design Review
According to SOAR [REF-1479], the following detection techniques may be useful:
Highly cost effective:
Formal Methods / Correct-By-Construction
Cost effective for partial coverage:
Inspection (IEEE 1028 standard) (can apply to requirements, design, source code, etc.)
Effectiveness: High
Notes
Applicable Platform
This weakness is possible in any programming language that support format strings.
Other
In some circumstances, such as internationalization, the set of format strings is externally controlled by design. If the source of these format strings is trusted (e.g. only contained in library files that are only modifiable by the system administrator), then the external control might not itself pose a vulnerability.
While Format String vulnerabilities typically fall under the Buffer Overflow category, technically they are not overflowed buffers. The Format String vulnerability is fairly new (circa 1999) and stems from the fact that there is no realistic way for a function that takes a variable number of arguments to determine just how many arguments were passed in. The most common functions that take a variable number of arguments, including C-runtime functions, are the printf() family of calls. The Format String problem appears in a number of ways. A *printf() call without a format specifier is dangerous and can be exploited. For example, printf(input); is exploitable, while printf(y, input); is not exploitable in that context. The result of the first call, used incorrectly, allows for an attacker to be able to peek at stack memory since the input string will be used as the format specifier. The attacker can stuff the input string with format specifiers and begin reading stack values, since the remaining parameters will be pulled from the stack. Worst case, this improper use may give away enough control to allow an arbitrary value (or values in the case of an exploit program) to be written into the memory of the running program.
Frequently targeted entities are file names, process names, identifiers.
Format string problems are a classic C/C++ issue that are now rare due to the ease of discovery. One main reason format string vulnerabilities can be exploited is due to the %n operator. The %n operator will write the number of characters, which have been printed by the format string therefore far, to the memory pointed to by its argument. Through skilled creation of a format string, a malicious user may use values on the stack to create a write-what-where condition. Once this is achieved, they can execute arbitrary code. Other operators can be used as well; for example, a %9999s operator could also trigger a buffer overflow, or when used in file-formatting functions like fprintf, it can generate a much larger output than intended.
Research Gap
Format string issues are under-studied for languages other than C. Memory or disk consumption, control flow or variable alteration, and data corruption may result from format string exploitation in applications written in other languages such as Perl, PHP, Python, etc.
Content history
added/updated white box definitions
updated Applicable_Platforms, Common_Consequences, Detection_Factors, Modes_of_Introduction, Relationships, Other_Notes, Research_Gaps, Taxonomy_Mappings, Weakness_Ordinalities
updated Relationships, Taxonomy_Mappings
updated Relationships
updated Demonstrative_Examples
Improved the White_Box_Definition
updated White_Box_Definitions
updated Detection_Factors, References, Relationships, Taxonomy_Mappings
updated Common_Consequences, Relationships, Taxonomy_Mappings
updated Modes_of_Introduction, Relationships
updated Potential_Mitigations, References, Relationships, Taxonomy_Mappings
updated Observed_Examples, References, Related_Attack_Patterns, Relationships, Taxonomy_Mappings
updated Demonstrative_Examples, Detection_Factors, Relationships, Taxonomy_Mappings
updated Description, Modes_of_Introduction, Name, Relationships
updated Applicable_Platforms, Causal_Nature, Functional_Areas, Likelihood_of_Exploit, Other_Notes, References, Relationships, Taxonomy_Mappings, White_Box_Definitions
updated References
updated References, Relationships, Taxonomy_Mappings
updated Relationships
updated Relationships
updated Detection_Factors, Relationships
updated Relationships
updated Common_Consequences, Relationships
updated Potential_Mitigations, Relationships
updated Description
updated References, Relationships
updated Mapping_Notes
updated Common_Consequences, Demonstrative_Examples, Description, Diagram, Other_Notes
updated Detection_Factors, Functional_Areas, References
updated Applicable_Platforms
updated Applicable_Platforms, References, Relationships, Taxonomy_Mappings
592 vulnerabilities reference this CWE, most recent first.
GHSA-VP33-R976-5VJP
Vulnerability from github – Published: 2022-05-01 23:35 – Updated: 2022-05-01 23:35Format 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.
{
"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:49Multiple 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.
{
"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:45A 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.
{
"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:55Format 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").
{
"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:09Format 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.
{
"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-VXWQ-JQHM-W2R6
Vulnerability from github – Published: 2026-10-13 21:37 – Updated: 2026-10-13 21:37Use of externally-controlled format string in SQL Server allows an authorized attacker to deny service over a network.
{
"affected": [],
"aliases": [
"CVE-2026-94520"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-10-13T21:19:58Z",
"severity": "MODERATE"
},
"details": "Use of externally-controlled format string in SQL Server allows an authorized attacker to deny service over a network.",
"id": "GHSA-vxwq-jqhm-w2r6",
"modified": "2026-10-13T21:37:34Z",
"published": "2026-10-13T21:37:34Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-94520"
},
{
"type": "WEB",
"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-94520"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-W3GC-CRW4-RMRM
Vulnerability from github – Published: 2023-02-16 21:30 – Updated: 2023-02-24 21:30A 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.
{
"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:32Format 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.
{
"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:11Multiple 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.
{
"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": []
}
GHSA-W7RP-Q53M-MXF8
Vulnerability from github – Published: 2023-10-25 18:32 – Updated: 2023-11-02 21:30A vulnerability regarding use of externally-controlled format string is found in the cgi component. This allows remote attackers to execute arbitrary code via unspecified vectors. The following models with Synology Camera Firmware versions before 1.0.5-0185 may be affected: BC500 and TC500.
{
"affected": [],
"aliases": [
"CVE-2023-5746"
],
"database_specific": {
"cwe_ids": [
"CWE-134"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2023-10-25T18:17:44Z",
"severity": "CRITICAL"
},
"details": "A vulnerability regarding use of externally-controlled format string is found in the cgi component. This allows remote attackers to execute arbitrary code via unspecified vectors. The following models with Synology Camera Firmware versions before 1.0.5-0185 may be affected: BC500 and TC500.",
"id": "GHSA-w7rp-q53m-mxf8",
"modified": "2023-11-02T21:30:19Z",
"published": "2023-10-25T18:32:26Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-5746"
},
{
"type": "WEB",
"url": "https://www.synology.com/en-global/security/advisory/Synology_SA_23_11"
}
],
"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"
}
]
}
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.