CVE-2012-4465 (GCVE-0-2012-4465)

Vulnerability from cvelistv5 – Published: 2012-10-10 18:00 – Updated: 2024-08-06 20:35
VLAI
Summary
Heap-based buffer overflow in the substr function in parsing.c in cgit 0.9.0.3 and earlier allows remote authenticated users to cause a denial of service (crash) and possibly execute arbitrary code via an empty username in the "Author" field in a commit.
Severity
No CVSS data available.
CWE
  • n/a
References
Date Public
2012-04-23 00:00
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-06T20:35:09.804Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "name": "[oss-security] 20120930 cgit: heap buffer overflow",
            "tags": [
              "mailing-list",
              "x_refsource_MLIST",
              "x_transferred"
            ],
            "url": "http://www.openwall.com/lists/oss-security/2012/09/30/1"
          },
          {
            "tags": [
              "x_refsource_CONFIRM",
              "x_transferred"
            ],
            "url": "http://git.zx2c4.com/cgit/commit/?id=7757d1b046ecb67b830151d20715c658867df1ec"
          },
          {
            "name": "[cgit] 20120703 avoid stack-smash when processing unusual commit",
            "tags": [
              "mailing-list",
              "x_refsource_MLIST",
              "x_transferred"
            ],
            "url": "http://hjemli.net/pipermail/cgit/2012-July/000652.html"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=820733"
          },
          {
            "name": "50734",
            "tags": [
              "third-party-advisory",
              "x_refsource_SECUNIA",
              "x_transferred"
            ],
            "url": "http://secunia.com/advisories/50734"
          },
          {
            "name": "55724",
            "tags": [
              "vdb-entry",
              "x_refsource_BID",
              "x_transferred"
            ],
            "url": "http://www.securityfocus.com/bid/55724"
          },
          {
            "name": "[oss-security] 20121003 Re: cgit: heap buffer overflow",
            "tags": [
              "mailing-list",
              "x_refsource_MLIST",
              "x_transferred"
            ],
            "url": "http://www.openwall.com/lists/oss-security/2012/10/03/7"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "product": "n/a",
          "vendor": "n/a",
          "versions": [
            {
              "status": "affected",
              "version": "n/a"
            }
          ]
        }
      ],
      "datePublic": "2012-04-23T00:00:00.000Z",
      "descriptions": [
        {
          "lang": "en",
          "value": "Heap-based buffer overflow in the substr function in parsing.c in cgit 0.9.0.3 and earlier allows remote authenticated users to cause a denial of service (crash) and possibly execute arbitrary code via an empty username in the \"Author\" field in a commit."
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "description": "n/a",
              "lang": "en",
              "type": "text"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2013-01-29T10:00:00.000Z",
        "orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
        "shortName": "redhat"
      },
      "references": [
        {
          "name": "[oss-security] 20120930 cgit: heap buffer overflow",
          "tags": [
            "mailing-list",
            "x_refsource_MLIST"
          ],
          "url": "http://www.openwall.com/lists/oss-security/2012/09/30/1"
        },
        {
          "tags": [
            "x_refsource_CONFIRM"
          ],
          "url": "http://git.zx2c4.com/cgit/commit/?id=7757d1b046ecb67b830151d20715c658867df1ec"
        },
        {
          "name": "[cgit] 20120703 avoid stack-smash when processing unusual commit",
          "tags": [
            "mailing-list",
            "x_refsource_MLIST"
          ],
          "url": "http://hjemli.net/pipermail/cgit/2012-July/000652.html"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=820733"
        },
        {
          "name": "50734",
          "tags": [
            "third-party-advisory",
            "x_refsource_SECUNIA"
          ],
          "url": "http://secunia.com/advisories/50734"
        },
        {
          "name": "55724",
          "tags": [
            "vdb-entry",
            "x_refsource_BID"
          ],
          "url": "http://www.securityfocus.com/bid/55724"
        },
        {
          "name": "[oss-security] 20121003 Re: cgit: heap buffer overflow",
          "tags": [
            "mailing-list",
            "x_refsource_MLIST"
          ],
          "url": "http://www.openwall.com/lists/oss-security/2012/10/03/7"
        }
      ]
    }
  },
  "cveMetadata": {
    "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
    "assignerShortName": "redhat",
    "cveId": "CVE-2012-4465",
    "datePublished": "2012-10-10T18:00:00.000Z",
    "dateReserved": "2012-08-21T00:00:00.000Z",
    "dateUpdated": "2024-08-06T20:35:09.804Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2012-4465",
      "date": "2026-10-03",
      "epss": "0.03383",
      "percentile": "0.8841"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "product": "n/a",
                "vendor": "n/a",
                "versions": [
                  {
                    "status": "affected",
                    "version": "n/a"
                  }
                ]
              }
            ],
            "source": "secalert@redhat.com"
          }
        ],
        "configurations": [
          {
            "nodes": [
              {
                "cpeMatch": [
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "7A82FD8B-D714-411C-9DF4-A9BCE9465E6B",
                    "versionEndIncluding": "0.9.0.3",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.1:*:*:*:*:*:*:*",
                    "matchCriteriaId": "EED1FFDD-4C04-415A-A6D6-8DAB2998A8AA",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.2:*:*:*:*:*:*:*",
                    "matchCriteriaId": "23F704C1-4129-47D9-B844-B3E20696E36D",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.3:*:*:*:*:*:*:*",
                    "matchCriteriaId": "434FAA85-D943-4E63-85C9-F0883CEB53E1",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.4:*:*:*:*:*:*:*",
                    "matchCriteriaId": "6DF1115A-A47F-4A4F-8AED-F24302A0DF4C",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.5:*:*:*:*:*:*:*",
                    "matchCriteriaId": "374B218F-A4D0-4704-A2A8-74F8A7D5759A",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.6:*:*:*:*:*:*:*",
                    "matchCriteriaId": "ED123524-4D31-469E-9B2A-504033ACFE46",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.6.1:*:*:*:*:*:*:*",
                    "matchCriteriaId": "EE0D9623-3291-4DD1-9966-2307F7BB20B1",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.6.2:*:*:*:*:*:*:*",
                    "matchCriteriaId": "ED6865FF-0102-46FA-8A2A-23FAC59CF1FB",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.6.3:*:*:*:*:*:*:*",
                    "matchCriteriaId": "F8F178CE-4D7E-41CE-AA63-78E516063A7D",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.7:*:*:*:*:*:*:*",
                    "matchCriteriaId": "1FE3007F-6BDA-42FC-84E0-19E271E6577D",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.7.1:*:*:*:*:*:*:*",
                    "matchCriteriaId": "69087A94-2220-4F10-ACF4-337541661A1A",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.7.2:*:*:*:*:*:*:*",
                    "matchCriteriaId": "7B0D564C-2F88-42E9-AF86-821DB37C8FD6",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.8:*:*:*:*:*:*:*",
                    "matchCriteriaId": "3BD8D272-6729-4AEC-8058-6C6644165947",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.8.1:*:*:*:*:*:*:*",
                    "matchCriteriaId": "73FBD314-B417-4E83-827D-CC91861629B6",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.8.1.1:*:*:*:*:*:*:*",
                    "matchCriteriaId": "9AE4ADD1-765B-4E83-A918-CE0DC1B30948",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.8.2:*:*:*:*:*:*:*",
                    "matchCriteriaId": "79FE9604-158B-4272-8DD2-A43CEC9885BB",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.8.2.1:*:*:*:*:*:*:*",
                    "matchCriteriaId": "545A1C08-F649-4226-852F-7AC7FFCA41ED",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.8.2.2:*:*:*:*:*:*:*",
                    "matchCriteriaId": "783F5116-FD04-4D42-8EAA-C1CEF41A0C00",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.8.3:*:*:*:*:*:*:*",
                    "matchCriteriaId": "6B6063B5-BA90-407C-9068-A853E27C76BB",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.8.3.1:*:*:*:*:*:*:*",
                    "matchCriteriaId": "4AD828C7-AC59-412C-A560-D5B944D357A5",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.8.3.2:*:*:*:*:*:*:*",
                    "matchCriteriaId": "59943A07-8B85-4EB5-B8E7-E4587D472D31",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.8.3.3:*:*:*:*:*:*:*",
                    "matchCriteriaId": "AF02DFB4-BA4D-4A36-9F0A-E0D04727A206",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.8.3.4:*:*:*:*:*:*:*",
                    "matchCriteriaId": "1D953ABA-EE07-4796-9B3A-516C3B8E198D",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.8.3.5:*:*:*:*:*:*:*",
                    "matchCriteriaId": "F1211001-96A0-4686-A718-E1F6FE0FB520",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.9:*:*:*:*:*:*:*",
                    "matchCriteriaId": "8BFB6787-0F9E-45C1-B967-0E2A7CEC1F14",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.9.0.1:*:*:*:*:*:*:*",
                    "matchCriteriaId": "1C6EE19E-B467-430F-A53E-FD4A1D3ED753",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:lars_hjemli:cgit:0.9.0.2:*:*:*:*:*:*:*",
                    "matchCriteriaId": "9C8A8CDF-4730-49E5-9181-C462E9EF2CE9",
                    "vulnerable": true
                  }
                ],
                "negate": false,
                "operator": "OR"
              }
            ]
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "Heap-based buffer overflow in the substr function in parsing.c in cgit 0.9.0.3 and earlier allows remote authenticated users to cause a denial of service (crash) and possibly execute arbitrary code via an empty username in the \"Author\" field in a commit."
          },
          {
            "lang": "es",
            "value": "Desbordamiento de b\u00fafer basado en memoria din\u00e1mica  en la funci\u00f3n substr en parsing.c en cgit v0.9.0.3, permite a atacantes remotos provocar una denegaci\u00f3n de servicio (ca\u00edda) y posiblemente ejecutar c\u00f3digo a trav\u00e9s de un nombre vac\u00edo en el campo \"Author\" en una solicitud."
          }
        ],
        "id": "CVE-2012-4465",
        "lastModified": "2026-06-16T23:45:09.120",
        "metrics": {
          "cvssMetricV2": [
            {
              "acInsufInfo": false,
              "baseSeverity": "MEDIUM",
              "cvssData": {
                "accessComplexity": "LOW",
                "accessVector": "NETWORK",
                "authentication": "SINGLE",
                "availabilityImpact": "PARTIAL",
                "baseScore": 6.5,
                "confidentialityImpact": "PARTIAL",
                "integrityImpact": "PARTIAL",
                "vectorString": "AV:N/AC:L/Au:S/C:P/I:P/A:P",
                "version": "2.0"
              },
              "exploitabilityScore": 8.0,
              "impactScore": 6.4,
              "obtainAllPrivilege": false,
              "obtainOtherPrivilege": false,
              "obtainUserPrivilege": false,
              "source": "nvd@nist.gov",
              "type": "Primary",
              "userInteractionRequired": false
            }
          ]
        },
        "published": "2012-10-10T18:55:05.207",
        "references": [
          {
            "source": "secalert@redhat.com",
            "url": "http://git.zx2c4.com/cgit/commit/?id=7757d1b046ecb67b830151d20715c658867df1ec"
          },
          {
            "source": "secalert@redhat.com",
            "url": "http://hjemli.net/pipermail/cgit/2012-July/000652.html"
          },
          {
            "source": "secalert@redhat.com",
            "tags": [
              "Vendor Advisory"
            ],
            "url": "http://secunia.com/advisories/50734"
          },
          {
            "source": "secalert@redhat.com",
            "url": "http://www.openwall.com/lists/oss-security/2012/09/30/1"
          },
          {
            "source": "secalert@redhat.com",
            "url": "http://www.openwall.com/lists/oss-security/2012/10/03/7"
          },
          {
            "source": "secalert@redhat.com",
            "url": "http://www.securityfocus.com/bid/55724"
          },
          {
            "source": "secalert@redhat.com",
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=820733"
          },
          {
            "source": "af854a3a-2127-422b-91ae-364da2661108",
            "url": "http://git.zx2c4.com/cgit/commit/?id=7757d1b046ecb67b830151d20715c658867df1ec"
          },
          {
            "source": "af854a3a-2127-422b-91ae-364da2661108",
            "url": "http://hjemli.net/pipermail/cgit/2012-July/000652.html"
          },
          {
            "source": "af854a3a-2127-422b-91ae-364da2661108",
            "tags": [
              "Vendor Advisory"
            ],
            "url": "http://secunia.com/advisories/50734"
          },
          {
            "source": "af854a3a-2127-422b-91ae-364da2661108",
            "url": "http://www.openwall.com/lists/oss-security/2012/09/30/1"
          },
          {
            "source": "af854a3a-2127-422b-91ae-364da2661108",
            "url": "http://www.openwall.com/lists/oss-security/2012/10/03/7"
          },
          {
            "source": "af854a3a-2127-422b-91ae-364da2661108",
            "url": "http://www.securityfocus.com/bid/55724"
          },
          {
            "source": "af854a3a-2127-422b-91ae-364da2661108",
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=820733"
          }
        ],
        "sourceIdentifier": "secalert@redhat.com",
        "vulnStatus": "Modified",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-119"
              }
            ],
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ]
      }
    },
    "redhat_vex": {
      "current_release_date": "2025-11-21T12:50:04+00:00",
      "cve": "CVE-2012-4465",
      "id": "CVE-2012-4465",
      "initial_release_date": "2012-05-10T00:00:00+00:00",
      "product_status:known_not_affected": "1",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "cgit: specially-crafted commit can trigger a heap-based buffer overflow",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2012/cve-2012-4465.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…