Skip to content
Heist/ feed
Back to feed
MediumFix available

lighttpd — security advisory

Type: advisorySources: OSVAdvisory ID: ALPINE-CVE-2022-22707

In lighttpd 1.4.46 through 1.4.63, the mod_extforward_Forwarded function of the mod_extforward plugin has a stack-based buffer overflow (4 bytes representing -1), as demonstrated by remote denial of service (daemon crash) in a non-default configuration. The non-default configuration requires handling of the Forwarded header in a somewhat unusual manner. Also, a 32-bit system is much more likely to be affected than a 64-bit system.

Products
lighttpd
Affected versions
Not specified
Fixed versions
1.4.64-r0
CVEs
CVE-2022-22707
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 14:10 UTC · Revision 1

Source evidence

ALPINE-CVE-2022-22707

core-osv · Original source

Published 6 Jan 2022, 06:15 UTC

In lighttpd 1.4.46 through 1.4.63, the mod_extforward_Forwarded function of the mod_extforward plugin has a stack-based buffer overflow (4 bytes representing -1), as demonstrated by remote denial of service (daemon crash) in a non-default configuration. The non-default configuration requires handling of the Forwarded header in a somewhat unusual manner. Also, a 32-bit system is much more likely to be affected than a 64-bit system.

osv:ALPINE-CVE-2022-22707

lighttpd

Fixed versions: 1.4.64-r0

lighttpd

Fixed versions: 1.4.64-r0

lighttpd

Fixed versions: 1.4.64-r0

lighttpd

Fixed versions: 1.4.64-r0

lighttpd

Fixed versions: 1.4.64-r0

lighttpd

Fixed versions: 1.4.64-r0

lighttpd

Fixed versions: 1.4.64-r0

lighttpd

Fixed versions: 1.4.64-r0

lighttpd

Fixed versions: 1.4.64-r0

lighttpd

Fixed versions: 1.4.64-r0

lighttpd

Fixed versions: 1.4.64-r0

lighttpd

Fixed versions: 1.4.64-r0

Complete source record
{
  "id": "d9a7bf9549cfa1db43e8962e2fb778150c5f49cc43b777d91301df020749d7c2",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2022-22707",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-CVE-2022-22707",
    "summary": "In lighttpd 1.4.46 through 1.4.63, the mod_extforward_Forwarded function of the mod_extforward plugin has a stack-based buffer overflow (4 bytes representing -1), as demonstrated by remote denial of service (daemon crash) in a non-default configuration. The non-default configuration requires handling of the Forwarded header in a somewhat unusual manner. Also, a 32-bit system is much more likely to be affected than a 64-bit system.",
    "evidence": "osv:ALPINE-CVE-2022-22707",
    "products": [
      {
        "name": {
          "value": "lighttpd",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.4.64-r0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lighttpd",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.4.64-r0",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lighttpd",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.4.64-r0",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lighttpd",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.4.64-r0",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lighttpd",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.4.64-r0",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lighttpd",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.4.64-r0",
            "evidence": "/affected/5/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lighttpd",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.4.64-r0",
            "evidence": "/affected/6/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lighttpd",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.4.64-r0",
            "evidence": "/affected/7/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lighttpd",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.4.64-r0",
            "evidence": "/affected/8/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lighttpd",
          "evidence": "/affected/9/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.4.64-r0",
            "evidence": "/affected/9/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lighttpd",
          "evidence": "/affected/10/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.4.64-r0",
            "evidence": "/affected/10/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lighttpd",
          "evidence": "/affected/11/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.4.64-r0",
            "evidence": "/affected/11/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "ALPINE-CVE-2022-22707",
      "aliases": [
        "ALPINE-CVE-2022-22707"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "1.4.46"
                },
                {
                  "fixed": "1.4.64-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "lighttpd",
            "purl": "pkg:apk/alpine/lighttpd?arch=source",
            "ecosystem": "Alpine:v3.13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-22707.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "1.4.46"
                },
                {
                  "fixed": "1.4.64-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "lighttpd",
            "purl": "pkg:apk/alpine/lighttpd?arch=source",
            "ecosystem": "Alpine:v3.14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-22707.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "1.4.46"
                },
                {
                  "fixed": "1.4.64-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "lighttpd",
            "purl": "pkg:apk/alpine/lighttpd?arch=source",
            "ecosystem": "Alpine:v3.15"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-22707.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "1.4.46"
                },
                {
                  "fixed": "1.4.64-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "lighttpd",
            "purl": "pkg:apk/alpine/lighttpd?arch=source",
            "ecosystem": "Alpine:v3.16"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-22707.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "1.4.46"
                },
                {
                  "fixed": "1.4.64-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "lighttpd",
            "purl": "pkg:apk/alpine/lighttpd?arch=source",
            "ecosystem": "Alpine:v3.17"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-22707.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "1.4.46"
                },
                {
                  "fixed": "1.4.64-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "lighttpd",
            "purl": "pkg:apk/alpine/lighttpd?arch=source",
            "ecosystem": "Alpine:v3.18"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-22707.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "1.4.46"
                },
                {
                  "fixed": "1.4.64-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "lighttpd",
            "purl": "pkg:apk/alpine/lighttpd?arch=source",
            "ecosystem": "Alpine:v3.19"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-22707.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "1.4.46"
                },
                {
                  "fixed": "1.4.64-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "lighttpd",
            "purl": "pkg:apk/alpine/lighttpd?arch=source",
            "ecosystem": "Alpine:v3.20"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-22707.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "1.4.46"
                },
                {
                  "fixed": "1.4.64-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "lighttpd",
            "purl": "pkg:apk/alpine/lighttpd?arch=source",
            "ecosystem": "Alpine:v3.21"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-22707.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "1.4.46"
                },
                {
                  "fixed": "1.4.64-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "lighttpd",
            "purl": "pkg:apk/alpine/lighttpd?arch=source",
            "ecosystem": "Alpine:v3.22"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-22707.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "1.4.46"
                },
                {
                  "fixed": "1.4.64-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "lighttpd",
            "purl": "pkg:apk/alpine/lighttpd?arch=source",
            "ecosystem": "Alpine:v3.23"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-22707.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "1.4.46"
                },
                {
                  "fixed": "1.4.64-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "lighttpd",
            "purl": "pkg:apk/alpine/lighttpd?arch=source",
            "ecosystem": "Alpine:v3.24"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-22707.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-15T07:17:54.160675272Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-22707"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2022-22707"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-22707",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 321679,
  "published_at": "2022-01-06T06:15:07.243+00:00"
}