nday
CVE-2012-2311

PHP : SQL injectionTitre composé par nday ; la fiche CVE n’en comporte pas.

Preuve de concept publique parue 7 jours avant la publication de la fiche CVE. nday n’a encore aucune trace de correctif ; cela ne veut pas dire qu’il n’en existe pas. Cette vulnérabilité figure dans une seule des 4 sources de PoC : exploitdb. Aucune inscription au catalogue KEV de la CISA à ce jour.

tags weakness typeSQL injection accessnetworkno authentication required exploitationExploit-DB productPHP product typeopen-source library / framework
why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

SQL injection
CWE-89, stated by NVD's analysts
network
AV:N in AV:N/AC:L/Au:N/C:P/I:P/A:P (CVSS 2.0) from NVD's analysts
no authentication required
Au:N in AV:N/AC:L/Au:N/C:P/I:P/A:P (CVSS 2.0) from NVD's analysts
Exploit-DB
Exploit-DB entries 18834, 18836, 29290, 29316
PHP
CPE names NVD's analysts give as vulnerable: a:php:php
open-source library / framework
CPE names NVD's analysts give as vulnerable: a:php:phpthe product type of PHP in nday's product registry

CVSS 2.0 has no user-interaction metric, so “no user interaction” and “remote, unauthenticated” are never assigned from a CVSS 2.0 vector.

étape actuelle
POC
divulgation
CVSS
pas encore de score

Cycle de vie

Axe en UTC ; point = minute exacte, barre large = date seule, creux = inconnue ou déduite.
date inconnue
DISdivulguée
2012-05-11T10:00Z
PATcorrectif
aucune donnée
ANAanalyse
aucune donnée
POCPoC
2012-05-04, date seule +3 autres
ITWexploitée
aucune donnée
KEVKEV
aucune donnée

Résumé

sapi/cgi/cgi_main.c in PHP before 5.3.13 and 5.4.x before 5.4.3, when configured as a CGI script (aka php-cgi), does not properly handle query strings that contain a %3D sequence but no = (equals sign) character, which allows remote attackers to execute arbitrary code by placing command-line options in the query string, related to lack of skipping a certain php_getopt for the 'd' case. NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-1823.

Original text of the CVE record (cvelist), shown as published.

Journal des événements

2012-05-04date seule, selon la source
+POCPoC publique

Exploit-DB recense un code d’exploitation public : « PHP 5.3.12/5.4.2 - CGI Argument Injection (Metasploit) » (EDB-18834). Code vérifié par Exploit-DB.

source exploitdb 18834 · importé en masse par nday le · brut
{
  "id": 28755,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/18834",
  "occurred_at": "2012-05-04T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "18834",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/18834",
    "file": "exploits/php/remote/18834.rb",
    "kind": "exploit",
    "tags": [
      "Metasploit Framework (MSF)"
    ],
    "type": "remote",
    "title": "PHP 5.3.12/5.4.2 - CGI Argument Injection (Metasploit)",
    "author": "Metasploit",
    "edb_id": 18834,
    "cve_ids": [
      "CVE-2012-2336",
      "CVE-2012-2311",
      "CVE-2012-1823"
    ],
    "platform": "php",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2012-05-05",
    "date_updated": "2016-12-01",
    "date_published": "2012-05-04"
  }
}
2012-05-05date seule, selon la source
+POCPoC publique

Exploit-DB recense un code d’exploitation public : « PHP < 5.3.12 / < 5.4.2 - CGI Argument Injection » (EDB-18836). Code vérifié par Exploit-DB.

source exploitdb 18836 · importé en masse par nday le · brut
{
  "id": 28765,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/18836",
  "occurred_at": "2012-05-05T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "18836",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/18836",
    "file": "exploits/php/remote/18836.py",
    "kind": "exploit",
    "tags": [],
    "type": "remote",
    "title": "PHP < 5.3.12 / < 5.4.2 - CGI Argument Injection",
    "author": "rayh4c",
    "edb_id": 18836,
    "cve_ids": [
      "CVE-2012-2336",
      "CVE-2012-2311",
      "CVE-2012-1823"
    ],
    "platform": "php",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2012-05-05",
    "date_updated": "2012-05-08",
    "date_published": "2012-05-05"
  }
}
+DISdivulgation

Fiche CVE publiée par redhat.

source cvelist · importé en masse par nday le · brut
{
  "id": 71890,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2012-2311",
  "occurred_at": "2012-05-11T10:00:00Z",
  "observed_at": "2026-11-13T05:04:30.424475Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "PUBLISHED",
    "date_published": "2012-05-11T10:00:00.000Z",
    "assigner_short_name": "redhat"
  }
}
2013-10-29date seule, selon la source
+POCPoC publique

Exploit-DB recense un code d’exploitation public : « Apache + PHP < 5.3.12 / < 5.4.2 - cgi-bin Remote Code Execution (RCE) » (EDB-29290). Code vérifié par Exploit-DB.

source exploitdb 29290 · importé en masse par nday le · brut
{
  "id": 28659,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/29290",
  "occurred_at": "2013-10-29T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "29290",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/29290",
    "file": "exploits/php/remote/29290.c",
    "kind": "exploit",
    "tags": [],
    "type": "remote",
    "title": "Apache + PHP < 5.3.12 / < 5.4.2 - cgi-bin Remote Code Execution (RCE)",
    "author": "kingcope",
    "edb_id": 29290,
    "cve_ids": [
      "CVE-2012-2336",
      "CVE-2012-2311",
      "CVE-2012-1823"
    ],
    "platform": "php",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2013-10-29",
    "date_updated": "2014-05-16",
    "date_published": "2013-10-29"
  }
}
2013-10-31date seule, selon la source
+POCPoC publique

Exploit-DB recense un code d’exploitation public : « Apache + PHP < 5.3.12 / < 5.4.2 - Remote Code Execution (RCE) + Scanner » (EDB-29316).

source exploitdb 29316 · importé en masse par nday le · brut
{
  "id": 28662,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/29316",
  "occurred_at": "2013-10-31T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "29316",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/29316",
    "file": "exploits/php/remote/29316.py",
    "kind": "exploit",
    "tags": [],
    "type": "remote",
    "title": "Apache + PHP < 5.3.12 / < 5.4.2 - Remote Code Execution (RCE) + Scanner",
    "author": "noptrix",
    "edb_id": 29316,
    "cve_ids": [
      "CVE-2012-2336",
      "CVE-2012-2311",
      "CVE-2012-1823"
    ],
    "platform": "php",
    "verified": false,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2013-10-31",
    "date_updated": "2013-11-12",
    "date_published": "2013-10-31"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Échanges entre chercheurs

0 chercheur en a parlé ces 7 derniers jours

Publications sur X de chercheurs suivis par nday citant cette CVE, telles que publiées. nday ne les vérifie pas.

nday n’a encore recueilli aucune publication sur X d’un chercheur de sa liste citant cette CVE.

Discussion

0 comments

No comments yet.