Common Weakness Enumeration

CWE-94

Allowed-with-Review

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

8378 vulnerabilities reference this CWE, most recent first.

GHSA-4WF2-V7F9-H3WP

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

Unspecified vulnerability in HP OpenView Network Node Manager (OV NNM) 7.01, 7.51, and 7.53 allows remote attackers to execute arbitrary code via unknown vectors.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2009-0720"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-94"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2009-05-05T17:30:00Z",
    "severity": "HIGH"
  },
  "details": "Unspecified vulnerability in HP OpenView Network Node Manager (OV NNM) 7.01, 7.51, and 7.53 allows remote attackers to execute arbitrary code via unknown vectors.",
  "id": "GHSA-4wf2-v7f9-h3wp",
  "modified": "2022-05-02T03:17:49Z",
  "published": "2022-05-02T03:17:49Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2009-0720"
    },
    {
      "type": "WEB",
      "url": "http://marc.info/?l=bugtraq\u0026m=124146030732511\u0026w=2"
    },
    {
      "type": "WEB",
      "url": "http://osvdb.org/54222"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/34942"
    },
    {
      "type": "WEB",
      "url": "http://www.securitytracker.com/id?1022163"
    },
    {
      "type": "WEB",
      "url": "http://www.vupen.com/english/advisories/2009/1250"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}

GHSA-4WFV-333G-2W8X

Vulnerability from github – Published: 2022-05-01 07:02 – Updated: 2025-04-03 04:33
VLAI
Details

Mozilla Firefox and Thunderbird before 1.5.0.4 allow remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via (1) nested tags in a select tag, (2) a DOMNodeRemoved mutation event, (3) "Content-implemented tree views," (4) BoxObjects, (5) the XBL implementation, (6) an iframe that attempts to remove itself, which leads to memory corruption.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2006-2779"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-94"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2006-06-02T19:02:00Z",
    "severity": "HIGH"
  },
  "details": "Mozilla Firefox and Thunderbird before 1.5.0.4 allow remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via (1) nested \u003coption\u003e tags in a select tag, (2) a DOMNodeRemoved mutation event, (3) \"Content-implemented tree views,\" (4) BoxObjects, (5) the XBL implementation, (6) an iframe that attempts to remove itself, which leads to memory corruption.",
  "id": "GHSA-4wfv-333g-2w8x",
  "modified": "2025-04-03T04:33:47Z",
  "published": "2022-05-01T07:02:30Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2006-2779"
    },
    {
      "type": "WEB",
      "url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/26843"
    },
    {
      "type": "WEB",
      "url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9762"
    },
    {
      "type": "WEB",
      "url": "https://usn.ubuntu.com/296-1"
    },
    {
      "type": "WEB",
      "url": "https://usn.ubuntu.com/296-2"
    },
    {
      "type": "WEB",
      "url": "https://usn.ubuntu.com/297-1"
    },
    {
      "type": "WEB",
      "url": "https://usn.ubuntu.com/297-3"
    },
    {
      "type": "WEB",
      "url": "https://usn.ubuntu.com/323-1"
    },
    {
      "type": "WEB",
      "url": "http://rhn.redhat.com/errata/RHSA-2006-0609.html"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/20376"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/20382"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/20561"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/20709"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/21134"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/21176"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/21178"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/21183"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/21188"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/21210"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/21269"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/21270"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/21324"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/21336"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/21532"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/21607"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/21631"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/21634"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/21654"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/22065"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/22066"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/27216"
    },
    {
      "type": "WEB",
      "url": "http://securitytracker.com/id?1016202"
    },
    {
      "type": "WEB",
      "url": "http://securitytracker.com/id?1016214"
    },
    {
      "type": "WEB",
      "url": "http://sunsolve.sun.com/search/document.do?assetkey=1-26-102943-1"
    },
    {
      "type": "WEB",
      "url": "http://sunsolve.sun.com/search/document.do?assetkey=1-66-200387-1"
    },
    {
      "type": "WEB",
      "url": "http://www.debian.org/security/2006/dsa-1118"
    },
    {
      "type": "WEB",
      "url": "http://www.debian.org/security/2006/dsa-1120"
    },
    {
      "type": "WEB",
      "url": "http://www.debian.org/security/2006/dsa-1134"
    },
    {
      "type": "WEB",
      "url": "http://www.debian.org/security/2006/dsa-1159"
    },
    {
      "type": "WEB",
      "url": "http://www.debian.org/security/2006/dsa-1160"
    },
    {
      "type": "WEB",
      "url": "http://www.gentoo.org/security/en/glsa/glsa-200606-12.xml"
    },
    {
      "type": "WEB",
      "url": "http://www.gentoo.org/security/en/glsa/glsa-200606-21.xml"
    },
    {
      "type": "WEB",
      "url": "http://www.kb.cert.org/vuls/id/466673"
    },
    {
      "type": "WEB",
      "url": "http://www.mandriva.com/security/advisories?name=MDKSA-2006:143"
    },
    {
      "type": "WEB",
      "url": "http://www.mandriva.com/security/advisories?name=MDKSA-2006:145"
    },
    {
      "type": "WEB",
      "url": "http://www.mandriva.com/security/advisories?name=MDKSA-2006:146"
    },
    {
      "type": "WEB",
      "url": "http://www.mozilla.org/security/announce/2006/mfsa2006-32.html"
    },
    {
      "type": "WEB",
      "url": "http://www.novell.com/linux/security/advisories/2006_35_mozilla.html"
    },
    {
      "type": "WEB",
      "url": "http://www.redhat.com/support/errata/RHSA-2006-0578.html"
    },
    {
      "type": "WEB",
      "url": "http://www.redhat.com/support/errata/RHSA-2006-0594.html"
    },
    {
      "type": "WEB",
      "url": "http://www.redhat.com/support/errata/RHSA-2006-0610.html"
    },
    {
      "type": "WEB",
      "url": "http://www.redhat.com/support/errata/RHSA-2006-0611.html"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/archive/1/435795/100/0/threaded"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/archive/1/446657/100/200/threaded"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/archive/1/446658/100/200/threaded"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/bid/18228"
    },
    {
      "type": "WEB",
      "url": "http://www.us-cert.gov/cas/techalerts/TA06-153A.html"
    },
    {
      "type": "WEB",
      "url": "http://www.vupen.com/english/advisories/2006/2106"
    },
    {
      "type": "WEB",
      "url": "http://www.vupen.com/english/advisories/2006/3748"
    },
    {
      "type": "WEB",
      "url": "http://www.vupen.com/english/advisories/2006/3749"
    },
    {
      "type": "WEB",
      "url": "http://www.vupen.com/english/advisories/2007/3488"
    },
    {
      "type": "WEB",
      "url": "http://www.vupen.com/english/advisories/2008/0083"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}

GHSA-4WH3-FP8F-X8C9

Vulnerability from github – Published: 2022-05-02 06:20 – Updated: 2022-05-02 06:20
VLAI
Details

Unspecified vulnerability in Microsoft Office Excel 2002 SP3 and Office 2004 for Mac allows remote attackers to execute arbitrary code via a crafted Excel file, aka "Excel Record Stack Corruption Vulnerability."

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2010-1251"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-94"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2010-06-08T20:30:00Z",
    "severity": "HIGH"
  },
  "details": "Unspecified vulnerability in Microsoft Office Excel 2002 SP3 and Office 2004 for Mac allows remote attackers to execute arbitrary code via a crafted Excel file, aka \"Excel Record Stack Corruption Vulnerability.\"",
  "id": "GHSA-4wh3-fp8f-x8c9",
  "modified": "2022-05-02T06:20:39Z",
  "published": "2022-05-02T06:20:39Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2010-1251"
    },
    {
      "type": "WEB",
      "url": "https://docs.microsoft.com/en-us/security-updates/securitybulletins/2010/ms10-038"
    },
    {
      "type": "WEB",
      "url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6761"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/bid/40529"
    },
    {
      "type": "WEB",
      "url": "http://www.us-cert.gov/cas/techalerts/TA10-159B.html"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}

GHSA-4WH4-4QWC-3JQG

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

In Ambari 1.2.0 through 2.2.2, it may be possible to execute arbitrary system commands on the Ambari Server host while generating SSL certificates for hosts in an Ambari cluster.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2014-3582"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-94"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2017-03-29T20:59:00Z",
    "severity": "CRITICAL"
  },
  "details": "In Ambari 1.2.0 through 2.2.2, it may be possible to execute arbitrary system commands on the Ambari Server host while generating SSL certificates for hosts in an Ambari cluster.",
  "id": "GHSA-4wh4-4qwc-3jqg",
  "modified": "2022-05-17T02:43:14Z",
  "published": "2022-05-17T02:43:14Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2014-3582"
    },
    {
      "type": "WEB",
      "url": "https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Vulnerabilities#AmbariVulnerabilities-FixedinAmbari2.4.0"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}

GHSA-4WHV-MHHP-7QCJ

Vulnerability from github – Published: 2025-08-13 21:30 – Updated: 2025-08-14 18:31
VLAI
Details

myBB version 1.6.4 was distributed with an unauthorized backdoor embedded in the source code. The backdoor allowed remote attackers to execute arbitrary PHP code by injecting payloads into a specially crafted collapsed cookie. This vulnerability was introduced during packaging and was not part of the intended application logic. Exploitation requires no authentication and results in full compromise of the web server under the context of the web application.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2011-10018"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-94"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2025-08-13T21:15:29Z",
    "severity": "CRITICAL"
  },
  "details": "myBB version 1.6.4 was distributed with an unauthorized backdoor embedded in the source code. The backdoor allowed remote attackers to execute arbitrary PHP code by injecting payloads into a specially crafted collapsed cookie. This vulnerability was introduced during packaging and was not part of the intended application logic. Exploitation requires no authentication and results in full compromise of the web server under the context of the web application.",
  "id": "GHSA-4whv-mhhp-7qcj",
  "modified": "2025-08-14T18:31:27Z",
  "published": "2025-08-13T21:30:30Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2011-10018"
    },
    {
      "type": "WEB",
      "url": "https://blog.mybb.com/2011/10/06/1-6-4-security-vulnerabilit"
    },
    {
      "type": "WEB",
      "url": "https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/unix/webapp/mybb_backdoor.rb"
    },
    {
      "type": "WEB",
      "url": "https://web.archive.org/web/20111015224948/http://secunia.com/advisories/46300"
    },
    {
      "type": "WEB",
      "url": "https://www.exploit-db.com/exploits/17949"
    },
    {
      "type": "WEB",
      "url": "https://www.vulncheck.com/advisories/mybb-backdoor-arbitrary-command-execution"
    }
  ],
  "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"
    },
    {
      "score": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
      "type": "CVSS_V4"
    }
  ]
}

GHSA-4WHV-V32X-QRPG

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

Eval injection vulnerability in the fillpdf_form_export_decode function in fillpdf.admin.inc in the Fill PDF module 6.x-1.x before 6.x-1.16 and 7.x-1.x before 7.x-1.2 for Drupal allows remote authenticated users with administer PDFs privileges to execute arbitrary PHP code via unspecified vectors. NOTE: Some of these details are obtained from third party information.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2012-1625"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-94"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2012-09-20T03:46:00Z",
    "severity": "MODERATE"
  },
  "details": "Eval injection vulnerability in the fillpdf_form_export_decode function in fillpdf.admin.inc in the Fill PDF module 6.x-1.x before 6.x-1.16 and 7.x-1.x before 7.x-1.2 for Drupal allows remote authenticated users with administer PDFs privileges to execute arbitrary PHP code via unspecified vectors.  NOTE: Some of these details are obtained from third party information.",
  "id": "GHSA-4whv-v32x-qrpg",
  "modified": "2022-05-17T05:22:06Z",
  "published": "2022-05-17T05:22:06Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2012-1625"
    },
    {
      "type": "WEB",
      "url": "http://drupal.org/node/1394428"
    },
    {
      "type": "WEB",
      "url": "http://osvdb.org/78182"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/47418"
    },
    {
      "type": "WEB",
      "url": "http://www.openwall.com/lists/oss-security/2012/04/07/1"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/bid/51288"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}

GHSA-4WM9-3QMV-GVXJ

Vulnerability from github – Published: 2024-07-01 15:32 – Updated: 2024-07-12 19:08
VLAI
Summary
jsonic was discovered to contain a prototype pollution via the function empty.
Details

rjrodger jsonic-next v2.12.1 was discovered to contain a prototype pollution via the function empty. This vulnerability allows attackers to execute arbitrary code or cause a Denial of Service (DoS) via injecting arbitrary properties.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "jsonic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "2.12.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2024-38993"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-1321",
      "CWE-94"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2024-07-01T21:52:44Z",
    "nvd_published_at": "2024-07-01T13:15:04Z",
    "severity": "CRITICAL"
  },
  "details": "rjrodger jsonic-next v2.12.1 was discovered to contain a prototype pollution via the function empty. This vulnerability allows attackers to execute arbitrary code or cause a Denial of Service (DoS) via injecting arbitrary properties.",
  "id": "GHSA-4wm9-3qmv-gvxj",
  "modified": "2024-07-12T19:08:25Z",
  "published": "2024-07-01T15:32:13Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-38993"
    },
    {
      "type": "WEB",
      "url": "https://gist.github.com/mestrtee/9a2b522d59c53f31f45c1edb96459693"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/jsonicjs/jsonic"
    }
  ],
  "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"
    }
  ],
  "summary": "jsonic was discovered to contain a prototype pollution via the function empty.",
  "withdrawn": "2024-07-12T19:08:25Z"
}

GHSA-4WRJ-QHHF-3C55

Vulnerability from github – Published: 2024-08-13 15:31 – Updated: 2024-08-22 15:31
VLAI
Details

An issue in D3D Security D3D IP Camera (D8801) v.V9.1.17.1.4-20180428 allows a local attacker to execute arbitrary code via a crafted payload

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2024-41623"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-94"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2024-08-13T14:15:12Z",
    "severity": "CRITICAL"
  },
  "details": "An issue in D3D Security D3D IP Camera (D8801) v.V9.1.17.1.4-20180428 allows a local attacker to execute arbitrary code via a crafted payload",
  "id": "GHSA-4wrj-qhhf-3c55",
  "modified": "2024-08-22T15:31:18Z",
  "published": "2024-08-13T15:31:35Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-41623"
    },
    {
      "type": "WEB",
      "url": "https://github.com/Anonymous120386/Anonymous"
    },
    {
      "type": "WEB",
      "url": "http://d3d.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-4WRR-9H5R-M92W

Vulnerability from github – Published: 2022-05-04 00:29 – Updated: 2026-04-24 21:11
VLAI
Summary
Apache Struts Remote Java Code Execution
Details

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during certain exception handling for mismatched data types of properties, which allows remote attackers to execute arbitrary Java code via a crafted parameter.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "Maven",
        "name": "org.apache.struts:struts2-core"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.2.3.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Maven",
        "name": "org.apache.struts.xwork:xwork-core"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.2.3.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2012-0391"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-20",
      "CWE-94"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2023-08-29T20:37:05Z",
    "nvd_published_at": "2012-01-08T15:55:00Z",
    "severity": "CRITICAL"
  },
  "details": "The `ExceptionDelegator` component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during certain exception handling for mismatched data types of properties, which allows remote attackers to execute arbitrary Java code via a crafted parameter.",
  "id": "GHSA-4wrr-9h5r-m92w",
  "modified": "2026-04-24T21:11:43Z",
  "published": "2022-05-04T00:29:43Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2012-0391"
    },
    {
      "type": "WEB",
      "url": "https://github.com/apache/struts/commit/25e50069d60434a30395e3a98357ffba2bed427e"
    },
    {
      "type": "WEB",
      "url": "https://github.com/apache/struts/commit/5f54b8d087f5125d96838aafa5f64c2190e6885b"
    },
    {
      "type": "WEB",
      "url": "https://github.com/apache/struts/commit/b4265d369dc29d57a9f2846a85b26598e83f3892"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/apache/struts"
    },
    {
      "type": "WEB",
      "url": "https://issues.apache.org/jira/browse/WW-3668"
    },
    {
      "type": "WEB",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-0391"
    },
    {
      "type": "WEB",
      "url": "https://www.sec-consult.com/files/20120104-0_Apache_Struts2_Multiple_Critical_Vulnerabilities.txt"
    },
    {
      "type": "WEB",
      "url": "http://archives.neohapsis.com/archives/bugtraq/2012-01/0031.html"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/47393"
    },
    {
      "type": "WEB",
      "url": "http://struts.apache.org/2.x/docs/s2-008.html"
    },
    {
      "type": "WEB",
      "url": "http://struts.apache.org/2.x/docs/version-notes-2311.html"
    },
    {
      "type": "WEB",
      "url": "http://www.exploit-db.com/exploits/18329"
    }
  ],
  "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"
    }
  ],
  "summary": "Apache Struts Remote Java Code Execution"
}

GHSA-4WV4-MGFQ-598V

Vulnerability from github – Published: 2021-03-12 23:00 – Updated: 2021-03-12 19:13
VLAI
Summary
Code injection in nobelprizeparser
Details

Code injection through use of eval.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "nobelprizeparser"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.0.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-94"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2021-03-12T19:13:27Z",
    "nvd_published_at": null,
    "severity": "CRITICAL"
  },
  "details": "Code injection through use of eval.",
  "id": "GHSA-4wv4-mgfq-598v",
  "modified": "2021-03-12T19:13:27Z",
  "published": "2021-03-12T23:00:19Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/AnneTheDev/nobelprize/security/advisories/GHSA-4wv4-mgfq-598v"
    },
    {
      "type": "WEB",
      "url": "https://github.com/AnneTheDev/nobelprize/commit/00639d375b0efd097bc1eca18d9dc021691b9286"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/package/nobelprizeparser"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [],
  "summary": "Code injection in nobelprizeparser"
}

Mitigation
Architecture and Design

Strategy: Refactoring

Refactor your program so that you do not have to dynamically generate code.

Mitigation
Architecture and Design
  • 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
Implementation

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
Testing

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
Operation

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
Operation

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
Implementation

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.