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.
8325 vulnerabilities reference this CWE, most recent first.
CVE-2011-10011 (GCVE-0-2011-10011)
Vulnerability from cvelistv5 – Published: 2025-08-13 20:55 – Updated: 2026-05-15 11:13 Unsupported When Assigned- CWE-94 - Improper Control of Generation of Code ('Code Injection')
| URL | Tags |
|---|---|
| https://raw.githubusercontent.com/rapid7/metasplo… | exploit |
| https://www.exploit-db.com/exploits/17487 | exploit |
| https://www.exploit-db.com/exploits/18934 | exploit |
| https://web.archive.org/web/20121024110058/http:/… | vendor-advisorypatch |
| https://sourceforge.net/projects/simpleauction/ | product |
| https://www.vulncheck.com/advisories/webid-remote… | third-party-advisory |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2011-10011",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "total"
}
],
"role": "CISA Coordinator",
"timestamp": "2025-08-14T13:43:53.690210Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2025-08-14T14:51:36.611Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"references": [
{
"tags": [
"exploit"
],
"url": "https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/linux/http/webid_converter.rb"
}
],
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unknown",
"modules": [
"converter.php"
],
"product": "WeBid",
"vendor": "WeBid",
"versions": [
{
"lessThanOrEqual": "1.0.2",
"status": "affected",
"version": "0",
"versionType": "semver"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:webidsupport:webid:*:*:*:*:*:*:*:*",
"versionEndIncluding": "1.0.2",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "OR"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "EgiX"
}
],
"datePublic": "2011-07-04T00:00:00.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "WeBid 1.0.2 contains a remote code injection vulnerability in the converter.php script, where unsanitized input in the to parameter of a POST request is written directly into includes/currencies.php. This allows unauthenticated attackers to inject arbitrary PHP code, resulting in persistent remote code execution when the modified script is accessed or included by the application."
}
],
"value": "WeBid 1.0.2 contains a remote code injection vulnerability in the converter.php script, where unsanitized input in the to parameter of a POST request is written directly into includes/currencies.php. This allows unauthenticated attackers to inject arbitrary PHP code, resulting in persistent remote code execution when the modified script is accessed or included by the application."
}
],
"impacts": [
{
"capecId": "CAPEC-242",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-242 Code Injection"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 10,
"baseSeverity": "CRITICAL",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "HIGH",
"subConfidentialityImpact": "HIGH",
"subIntegrityImpact": "HIGH",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "HIGH",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-94",
"description": "CWE-94 Improper Control of Generation of Code (\u0027Code Injection\u0027)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-05-15T11:13:39.739Z",
"orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
"shortName": "VulnCheck"
},
"references": [
{
"tags": [
"exploit"
],
"url": "https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/linux/http/webid_converter.rb"
},
{
"tags": [
"exploit"
],
"url": "https://www.exploit-db.com/exploits/17487"
},
{
"tags": [
"exploit"
],
"url": "https://www.exploit-db.com/exploits/18934"
},
{
"tags": [
"vendor-advisory",
"patch"
],
"url": "https://web.archive.org/web/20121024110058/http://www.webidsupport.com/forums/showthread.php?3892"
},
{
"tags": [
"product"
],
"url": "https://sourceforge.net/projects/simpleauction/"
},
{
"tags": [
"third-party-advisory"
],
"url": "https://www.vulncheck.com/advisories/webid-remote-php-code-injection"
}
],
"source": {
"discovery": "UNKNOWN"
},
"tags": [
"unsupported-when-assigned"
],
"title": "WeBid 1.0.2 converter.php Remote PHP Code Injection",
"x_generator": {
"engine": "vulncheck"
}
}
},
"cveMetadata": {
"assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
"assignerShortName": "VulnCheck",
"cveId": "CVE-2011-10011",
"datePublished": "2025-08-13T20:55:07.652Z",
"dateReserved": "2025-08-11T19:11:34.638Z",
"dateUpdated": "2026-05-15T11:13:39.739Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2010-20120 (GCVE-0-2010-20120)
Vulnerability from cvelistv5 – Published: 2025-08-21 20:12 – Updated: 2026-05-15 11:13- CWE-94 - Improper Control of Generation of Code ('Code Injection')
| URL | Tags |
|---|---|
| https://www.maplesoft.com/products/maple/ | product |
| https://www.exploit-db.com/exploits/16308 | exploit |
| https://raw.githubusercontent.com/rapid7/metasplo… | exploit |
| https://www.juniper.net/us/en/threatlabs/ips-sign… | third-party-advisory |
| https://www.vulncheck.com/advisories/maple-maplet… | third-party-advisory |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2010-20120",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"role": "CISA Coordinator",
"timestamp": "2025-08-22T15:25:39.797469Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2025-08-22T15:25:43.410Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"references": [
{
"tags": [
"exploit"
],
"url": "https://www.exploit-db.com/exploits/16308"
},
{
"tags": [
"exploit"
],
"url": "https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/multi/fileformat/maple_maplet.rb"
}
],
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"modules": [
"Maplet framework (specifically .maplet file execution logic)"
],
"product": "Maple",
"vendor": "Maplesoft",
"versions": [
{
"lessThanOrEqual": "13",
"status": "affected",
"version": "0",
"versionType": "custom"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:maplesoft:maple_t.a.:*:*:*:*:*:*:*:*",
"versionEndIncluding": "13",
"versionStartIncluding": "0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "OR"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "scriptjunkie"
}
],
"datePublic": "2010-09-20T00:00:00.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "Maple versions up to and including 13\u0027s Maplet framework allows embedded commands to be executed automatically when a .maplet file is opened. This behavior bypasses standard security restrictions that normally prevent code execution in regular Maple worksheets. The vulnerability enables attackers to craft malicious .maplet files that execute arbitrary code without user interaction."
}
],
"value": "Maple versions up to and including 13\u0027s Maplet framework allows embedded commands to be executed automatically when a .maplet file is opened. This behavior bypasses standard security restrictions that normally prevent code execution in regular Maple worksheets. The vulnerability enables attackers to craft malicious .maplet files that execute arbitrary code without user interaction."
}
],
"impacts": [
{
"capecId": "CAPEC-242",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-242 Code Injection"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "LOCAL",
"baseScore": 8.4,
"baseSeverity": "HIGH",
"exploitMaturity": "NOT_DEFINED",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "ACTIVE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "HIGH",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-94",
"description": "CWE-94 Improper Control of Generation of Code (\u0027Code Injection\u0027)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-05-15T11:13:35.808Z",
"orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
"shortName": "VulnCheck"
},
"references": [
{
"tags": [
"product"
],
"url": "https://www.maplesoft.com/products/maple/"
},
{
"tags": [
"exploit"
],
"url": "https://www.exploit-db.com/exploits/16308"
},
{
"tags": [
"exploit"
],
"url": "https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/multi/fileformat/maple_maplet.rb"
},
{
"tags": [
"third-party-advisory"
],
"url": "https://www.juniper.net/us/en/threatlabs/ips-signatures/detail.HTTP:MISC:MAPLE-MAPLET-CMD-EXEC.html"
},
{
"tags": [
"third-party-advisory"
],
"url": "https://www.vulncheck.com/advisories/maple-maplet-file-creation-command-execution"
}
],
"source": {
"discovery": "UNKNOWN"
},
"title": "Maple \u003c= v13 Maplet File Creation and Command Execution",
"x_generator": {
"engine": "vulncheck"
}
}
},
"cveMetadata": {
"assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
"assignerShortName": "VulnCheck",
"cveId": "CVE-2010-20120",
"datePublished": "2025-08-21T20:12:54.367Z",
"dateReserved": "2025-08-20T20:33:55.844Z",
"dateUpdated": "2026-05-15T11:13:35.808Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
GHSA-223M-FHFM-47HR
Vulnerability from github – Published: 2022-05-02 03:16 – Updated: 2022-05-02 03:16PHP remote file inclusion vulnerability in include/flatnux.php in FlatnuX CMS (aka Flatnuke3) 2009-01-27 and 2009-02-04, when register_globals is enabled and magic_quotes_gpc disabled, allows remote attackers to execute arbitrary PHP code via a URL in the _FNROOTPATH parameter to (1) index.php and (2) filemanager.php.
{
"affected": [],
"aliases": [
"CVE-2009-0572"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2009-02-13T17:30:00Z",
"severity": "MODERATE"
},
"details": "PHP remote file inclusion vulnerability in include/flatnux.php in FlatnuX CMS (aka Flatnuke3) 2009-01-27 and 2009-02-04, when register_globals is enabled and magic_quotes_gpc disabled, allows remote attackers to execute arbitrary PHP code via a URL in the _FNROOTPATH parameter to (1) index.php and (2) filemanager.php.",
"id": "GHSA-223m-fhfm-47hr",
"modified": "2022-05-02T03:16:41Z",
"published": "2022-05-02T03:16:41Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2009-0572"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/48491"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/7969"
},
{
"type": "WEB",
"url": "http://osvdb.org/51728"
},
{
"type": "WEB",
"url": "http://osvdb.org/51729"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/33721"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/500663/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/33599"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-227P-WWRH-M869
Vulnerability from github – Published: 2026-03-02 18:31 – Updated: 2026-03-02 18:31An issue in Twenty CRM v1.15.0 and before allows a remote attacker to execute arbitrary code via the local.driver.ts module.
{
"affected": [],
"aliases": [
"CVE-2026-26720"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-03-02T16:16:25Z",
"severity": "CRITICAL"
},
"details": "An issue in Twenty CRM v1.15.0 and before allows a remote attacker to execute arbitrary code via the local.driver.ts module.",
"id": "GHSA-227p-wwrh-m869",
"modified": "2026-03-02T18:31:44Z",
"published": "2026-03-02T18:31:44Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-26720"
},
{
"type": "WEB",
"url": "https://dillonkirsch.com/post/locally_hosted_twenty_rce_cve_2026_26720"
},
{
"type": "WEB",
"url": "https://github.com/dillonkirsch/CVE-2026-26720-Twenty-RCE"
},
{
"type": "WEB",
"url": "https://twenty.com"
}
],
"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-227X-7MH8-3CF6
Vulnerability from github – Published: 2025-09-25 16:39 – Updated: 2025-10-23 20:12Impact
A security vulnerability was discovered in Gardener when Terraformer is used for infrastructure provisioning. This vulnerability could allow a user with administrative privileges for a Gardener project to obtain control over the seed cluster where the shoot cluster is managed.
This CVE affects all Gardener installations where Terraformer is used/can be enabled for infrastructure provisioning with any of the affected components mentioned below.
Affected Components
• gardener-extension-provider-gcp • gardener-extension-provider-azure • gardener-extension-provider-openstack • gardener-extension-provider-aws
Affected Versions
• gardener-extension-provider-gcp < v1.46.0 • gardener-extension-provider-azure < v1.55.0 • gardener-extension-provider-openstack < v1.49.0 • gardener-extension-provider-aws < v1.64.0
Fixed versions
• gardener-extension-provider-gcp >= v1.46.0 • gardener-extension-provider-azure >= v1.55.0 • gardener-extension-provider-openstack >= v1.49.0 • gardener-extension-provider-aws >= v1.64.0
How do I mitigate this vulnerability?
Update to a fixed version.
{
"affected": [
{
"package": {
"ecosystem": "Go",
"name": "github.com/gardener/gardener-extension-provider-aws"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.64.0"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "Go",
"name": "github.com/gardener/gardener-extension-provider-gcp"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.46.0"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "Go",
"name": "github.com/gardener/gardener-extension-provider-azure"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.55.0"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "Go",
"name": "github.com/gardener/gardener-extension-provider-openstack"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.49.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2025-59823"
],
"database_specific": {
"cwe_ids": [
"CWE-20",
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2025-09-25T16:39:16Z",
"nvd_published_at": "2025-09-25T15:16:13Z",
"severity": "CRITICAL"
},
"details": "### Impact\n\nA security vulnerability was discovered in Gardener when [Terraformer](https://github.com/gardener/terraformer) is used for infrastructure provisioning. This vulnerability could allow a user with administrative privileges for a Gardener project to obtain control over the seed cluster where the shoot cluster is managed.\n\nThis CVE affects all Gardener installations where [Terraformer](https://github.com/gardener/terraformer) is used/can be enabled for infrastructure provisioning with any of the affected components mentioned below.\n\n### Affected Components\n\u2022 gardener-extension-provider-gcp\n\u2022 gardener-extension-provider-azure\n\u2022 gardener-extension-provider-openstack\n\u2022 gardener-extension-provider-aws\n\n### Affected Versions\n\u2022 gardener-extension-provider-gcp \u003c v1.46.0\n\u2022 gardener-extension-provider-azure \u003c v1.55.0\n\u2022 gardener-extension-provider-openstack \u003c v1.49.0\n\u2022 gardener-extension-provider-aws \u003c v1.64.0\n\n### Fixed versions\n\u2022 gardener-extension-provider-gcp \u003e= v1.46.0\n\u2022 gardener-extension-provider-azure \u003e= v1.55.0\n\u2022 gardener-extension-provider-openstack \u003e= v1.49.0\n\u2022 gardener-extension-provider-aws \u003e= v1.64.0\n\n### How do I mitigate this vulnerability?\nUpdate to a fixed version.",
"id": "GHSA-227x-7mh8-3cf6",
"modified": "2025-10-23T20:12:12Z",
"published": "2025-09-25T16:39:16Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/gardener/gardener-extension-provider-aws/security/advisories/GHSA-227x-7mh8-3cf6"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-59823"
},
{
"type": "WEB",
"url": "https://github.com/gardener/gardener-extension-provider-aws/commit/cb5045fc146248296994804bbfe27bd896938bf2"
},
{
"type": "WEB",
"url": "https://github.com/gardener/gardener-extension-provider-azure/commit/4573a4404969f89781ed6cf72e90554bc6ae2020"
},
{
"type": "WEB",
"url": "https://github.com/gardener/gardener-extension-provider-gcp/commit/51111b4f60c33c60dfdf18b1fc50f7ec8d8f70ac"
},
{
"type": "WEB",
"url": "https://github.com/gardener/gardener-extension-provider-openstack/commit/2ed6f0fe1be90fbef5d6093eb0b8325c8421b8d8"
},
{
"type": "PACKAGE",
"url": "https://github.com/gardener/gardener-extension-provider-aws"
},
{
"type": "WEB",
"url": "https://github.com/gardener/gardener-extension-provider-aws/releases/tag/v1.64.0"
},
{
"type": "WEB",
"url": "https://github.com/gardener/gardener-extension-provider-azure/releases/tag/v1.55.0"
},
{
"type": "WEB",
"url": "https://github.com/gardener/gardener-extension-provider-gcp/releases/tag/v1.46.0"
},
{
"type": "WEB",
"url": "https://github.com/gardener/gardener-extension-provider-openstack/releases/tag/v1.49.0"
},
{
"type": "WEB",
"url": "https://pkg.go.dev/vuln/GO-2025-3981"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "Gardener provider extensions vulnerable to code injection when Terraform is used for infrastructure provisioning"
}
GHSA-229H-MPM4-83QQ
Vulnerability from github – Published: 2022-05-02 03:34 – Updated: 2022-05-02 03:34Drupal 6.x before 6.13 does not prevent users from modifying user signatures after the associated comment format has been changed to an administrator-controlled input format, which allows remote authenticated users to inject arbitrary web script, HTML, and possibly PHP code via a crafted user signature.
{
"affected": [],
"aliases": [
"CVE-2009-2372"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2009-07-08T15:30:00Z",
"severity": "MODERATE"
},
"details": "Drupal 6.x before 6.13 does not prevent users from modifying user signatures after the associated comment format has been changed to an administrator-controlled input format, which allows remote authenticated users to inject arbitrary web script, HTML, and possibly PHP code via a crafted user signature.",
"id": "GHSA-229h-mpm4-83qq",
"modified": "2022-05-02T03:34:35Z",
"published": "2022-05-02T03:34:35Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2009-2372"
},
{
"type": "WEB",
"url": "http://drupal.org/node/507572"
},
{
"type": "WEB",
"url": "http://osvdb.org/55525"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/35681"
},
{
"type": "WEB",
"url": "http://www.securitytracker.com/id?1022497"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-229R-PQP6-8W6G
Vulnerability from github – Published: 2017-10-24 18:33 – Updated: 2023-08-29 15:58The unpack_zip function in archive_unpacker.rb in the sprout gem 0.7.246 for Ruby allows context-dependent attackers to execute arbitrary commands via shell metacharacters in a (1) filename or (2) path.
{
"affected": [
{
"package": {
"ecosystem": "RubyGems",
"name": "sprout"
},
"versions": [
"0.7.246"
]
}
],
"aliases": [
"CVE-2013-6421"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2020-06-16T20:50:49Z",
"nvd_published_at": "2013-12-12T18:55:16Z",
"severity": "HIGH"
},
"details": "The `unpack_zip` function in `archive_unpacker.rb` in the sprout gem 0.7.246 for Ruby allows context-dependent attackers to execute arbitrary commands via shell metacharacters in a (1) filename or (2) path.",
"id": "GHSA-229r-pqp6-8w6g",
"modified": "2023-08-29T15:58:19Z",
"published": "2017-10-24T18:33:36Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2013-6421"
},
{
"type": "PACKAGE",
"url": "https://github.com/lukebayes/project-sprouts"
},
{
"type": "WEB",
"url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sprout/CVE-2013-6421.yml"
},
{
"type": "WEB",
"url": "http://archives.neohapsis.com/archives/bugtraq/2013-12/0077.html"
},
{
"type": "WEB",
"url": "http://vapid.dhs.org/advisories/sprout-0.7.246-command-inj.html"
},
{
"type": "WEB",
"url": "http://www.openwall.com/lists/oss-security/2013/12/03/1"
},
{
"type": "WEB",
"url": "http://www.openwall.com/lists/oss-security/2013/12/03/6"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "sprout Arbitrary Code Execution vulnerability"
}
GHSA-22C2-9GWG-MJ59
Vulnerability from github – Published: 2025-05-20 18:01 – Updated: 2025-05-20 20:56Summary
LanceDocChatAgent uses pandas eval() through compute_from_docs():
https://github.com/langroid/langroid/blob/18667ec7e971efc242505196f6518eb19a0abc1c/langroid/vector_store/base.py#L136-L150
As a result, an attacker may be able to make the agent run malicious commands through QueryPlan.dataframe_calc compromising the host system.
Fix
Langroid 0.53.15 sanitizes input to the affected function by default to tackle the most common attack vectors, and added several warnings about the risky behavior in the project documentation.
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "langroid"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.53.15"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2025-46725"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2025-05-20T18:01:52Z",
"nvd_published_at": "2025-05-20T18:15:46Z",
"severity": "HIGH"
},
"details": "### Summary\n[LanceDocChatAgent](https://github.com/langroid/langroid/blob/main/langroid/agent/special/lance_doc_chat_agent.py#L158) uses pandas eval() through `compute_from_docs()`:\nhttps://github.com/langroid/langroid/blob/18667ec7e971efc242505196f6518eb19a0abc1c/langroid/vector_store/base.py#L136-L150\n\nAs a result, an attacker may be able to make the agent run malicious commands through [QueryPlan.dataframe_calc](https://github.com/langroid/langroid/blob/main/langroid/agent/special/lance_tools.py#L16) compromising the host system.\n\n### Fix \nLangroid 0.53.15 sanitizes input to the affected function by default to tackle the most common attack vectors, and added several warnings about the risky behavior in the project documentation.",
"id": "GHSA-22c2-9gwg-mj59",
"modified": "2025-05-20T20:56:51Z",
"published": "2025-05-20T18:01:52Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/langroid/langroid/security/advisories/GHSA-22c2-9gwg-mj59"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-46725"
},
{
"type": "WEB",
"url": "https://github.com/langroid/langroid/commit/0d9e4a7bb3ae2eef8d38f2e970ff916599a2b2a6"
},
{
"type": "PACKAGE",
"url": "https://github.com/langroid/langroid"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U",
"type": "CVSS_V4"
}
],
"summary": "Langroid has a Code Injection vulnerability in LanceDocChatAgent through vector_store"
}
GHSA-22C6-PMF5-543M
Vulnerability from github – Published: 2022-05-17 05:06 – Updated: 2022-05-17 05:06CRLF injection vulnerability in Request Tracker (RT) 3.8.x before 3.8.17 and 4.0.x before 4.0.13 allows remote attackers to inject arbitrary HTTP headers and conduct HTTP response splitting attacks via a MIME header.
{
"affected": [],
"aliases": [
"CVE-2013-3373"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2013-08-23T16:55:00Z",
"severity": "MODERATE"
},
"details": "CRLF injection vulnerability in Request Tracker (RT) 3.8.x before 3.8.17 and 4.0.x before 4.0.13 allows remote attackers to inject arbitrary HTTP headers and conduct HTTP response splitting attacks via a MIME header.",
"id": "GHSA-22c6-pmf5-543m",
"modified": "2022-05-17T05:06:03Z",
"published": "2022-05-17T05:06:03Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2013-3373"
},
{
"type": "WEB",
"url": "http://lists.bestpractical.com/pipermail/rt-announce/2013-May/000226.html"
},
{
"type": "WEB",
"url": "http://lists.bestpractical.com/pipermail/rt-announce/2013-May/000227.html"
},
{
"type": "WEB",
"url": "http://lists.bestpractical.com/pipermail/rt-announce/2013-May/000228.html"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/53505"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/53522"
},
{
"type": "WEB",
"url": "http://www.debian.org/security/2012/dsa-2670"
},
{
"type": "WEB",
"url": "http://www.osvdb.org/93606"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-22J2-46V6-F42V
Vulnerability from github – Published: 2022-05-01 18:39 – Updated: 2022-05-01 18:39PHP remote file inclusion vulnerability in index.php in meBiblio 0.4.5 allows remote attackers to execute arbitrary PHP code via a URL in the action parameter.
{
"affected": [],
"aliases": [
"CVE-2007-6089"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2007-11-22T00:46:00Z",
"severity": "HIGH"
},
"details": "PHP remote file inclusion vulnerability in index.php in meBiblio 0.4.5 allows remote attackers to execute arbitrary PHP code via a URL in the action parameter.",
"id": "GHSA-22j2-46v6-f42v",
"modified": "2022-05-01T18:39:31Z",
"published": "2022-05-01T18:39:31Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2007-6089"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/38540"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/4630"
},
{
"type": "WEB",
"url": "http://osvdb.org/38743"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/27722"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/26480"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2007/3909"
}
],
"schema_version": "1.4.0",
"severity": []
}
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.